Index: src/gpu/GrFontScaler.cpp |
diff --git a/src/gpu/GrFontScaler.cpp b/src/gpu/GrFontScaler.cpp |
index a9d5abff4e72eefcc4ce79ca4751d6568115fead..b4ec1beed35106026cbe6055395e5e5758c17ab3 100644 |
--- a/src/gpu/GrFontScaler.cpp |
+++ b/src/gpu/GrFontScaler.cpp |
@@ -64,12 +64,22 @@ GrMaskFormat GrFontScaler::getPackedGlyphMaskFormat(const SkGlyph& glyph) const |
} |
bool GrFontScaler::getPackedGlyphBounds(const SkGlyph& glyph, SkIRect* bounds) { |
+#if 1 |
+ // crbug:510931 |
+ // Retrieving the image from the cache can actually change the mask format. |
+ fStrike->findImage(glyph); |
+#endif |
bounds->setXYWH(glyph.fLeft, glyph.fTop, glyph.fWidth, glyph.fHeight); |
return true; |
} |
bool GrFontScaler::getPackedGlyphDFBounds(const SkGlyph& glyph, SkIRect* bounds) { |
+#if 1 |
jvanverth1
2015/07/30 19:28:24
Once we get into this routine isn't it too late? T
|
+ // crbug:510931 |
+ // Retrieving the image from the cache can actually change the mask format. |
+ fStrike->findImage(glyph); |
+#endif |
bounds->setXYWH(glyph.fLeft, glyph.fTop, glyph.fWidth, glyph.fHeight); |
bounds->outset(SK_DistanceFieldPad, SK_DistanceFieldPad); |