Bug 937978 - Make SetPermitSubpixelAA a nop with --enable-system-cairo (like bug 623797). r=mattwoodrow
authorJaroslav Kopecký <jaro@pluto.invalid>
Wed, 13 Nov 2013 08:23:19 -0500
changeset 154664 5d4d2a7ffe3abdcf0d88ec2b34f216bda4faf2da
parent 154663 ee57a684f9f2b1557cc568903bd772899a725fe7
child 154665 5122cc6ac04197388fe875074b44e2156a06f120
push id2387
push userryanvm@gmail.com
push dateWed, 13 Nov 2013 13:24:20 +0000
treeherderb2g-inbound@74d558e2ab34 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs937978, 623797
milestone28.0a1
Bug 937978 - Make SetPermitSubpixelAA a nop with --enable-system-cairo (like bug 623797). r=mattwoodrow
gfx/2d/DrawTargetCairo.cpp
--- a/gfx/2d/DrawTargetCairo.cpp
+++ b/gfx/2d/DrawTargetCairo.cpp
@@ -847,18 +847,20 @@ DrawTargetCairo::Fill(const Path *aPath,
 
   DrawPattern(aPattern, StrokeOptions(), aOptions, DRAW_FILL);
 }
 
 void
 DrawTargetCairo::SetPermitSubpixelAA(bool aPermitSubpixelAA)
 {
   DrawTarget::SetPermitSubpixelAA(aPermitSubpixelAA);
+#ifdef MOZ_TREE_CAIRO
   cairo_surface_set_subpixel_antialiasing(mSurface,
     aPermitSubpixelAA ? CAIRO_SUBPIXEL_ANTIALIASING_ENABLED : CAIRO_SUBPIXEL_ANTIALIASING_DISABLED);
+#endif
 }
 
 void
 DrawTargetCairo::FillGlyphs(ScaledFont *aFont,
                             const GlyphBuffer &aBuffer,
                             const Pattern &aPattern,
                             const DrawOptions &aOptions,
                             const GlyphRenderingOptions*)