remove GrAllocPool
BUG=skia:
Review URL: https://codereview.chromium.org/742253002
diff --git a/src/gpu/GrTextStrike.cpp b/src/gpu/GrTextStrike.cpp
index 0186af1..aa5cd94 100644
--- a/src/gpu/GrTextStrike.cpp
+++ b/src/gpu/GrTextStrike.cpp
@@ -227,7 +227,7 @@
atlas and a position within that texture.
*/
-GrTextStrike::GrTextStrike(GrFontCache* cache, const GrFontDescKey* key) : fPool(64) {
+GrTextStrike::GrTextStrike(GrFontCache* cache, const GrFontDescKey* key) {
fFontScalerKey = key;
fFontScalerKey->ref();
@@ -267,7 +267,7 @@
}
GrMaskFormat format = scaler->getPackedGlyphMaskFormat(packed);
- GrGlyph* glyph = fPool.alloc();
+ GrGlyph* glyph = (GrGlyph*)fPool.alloc(sizeof(GrGlyph), SK_MALLOC_THROW);
glyph->init(packed, bounds, format);
fCache.add(glyph);
return glyph;