Index: src/gpu/GrTextStrike.cpp |
diff --git a/src/gpu/GrTextStrike.cpp b/src/gpu/GrTextStrike.cpp |
index 9f9ea130f647d57ca319b595f0d6b72c6992d351..7333c0b033fe80e3eb33699dedb4ec364a8d7898 100644 |
--- a/src/gpu/GrTextStrike.cpp |
+++ b/src/gpu/GrTextStrike.cpp |
@@ -306,7 +306,12 @@ bool GrTextStrike::addGlyphToAtlas(GrGlyph* glyph, GrFontScaler* scaler) { |
int bytesPerPixel = GrMaskFormatBytesPerPixel(fMaskFormat); |
size_t size = glyph->fBounds.area() * bytesPerPixel; |
+#if GR_ALWAYS_ALLOCATE_ON_HEAP |
bsalomon
2014/08/12 13:43:53
How about we stick this somewhere:
#if GR_ALWAYS_
|
+ SkAutoMalloc storage(size); |
+#else |
SkAutoSMalloc<1024> storage(size); |
+#endif |
+ |
if (fUseDistanceField) { |
if (!scaler->getPackedGlyphDFImage(glyph->fPackedID, glyph->width(), |
glyph->height(), |