diff options
Diffstat (limited to 'src/gpu/GrTextStrike.cpp')
-rw-r--r-- | src/gpu/GrTextStrike.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrTextStrike.cpp b/src/gpu/GrTextStrike.cpp index e61c46e3b8..aebaaf81b7 100644 --- a/src/gpu/GrTextStrike.cpp +++ b/src/gpu/GrTextStrike.cpp @@ -36,10 +36,11 @@ GrFontCache::~GrFontCache() { GrTextStrike* GrFontCache::generateStrike(GrFontScaler* scaler, const Key& key) { if (NULL == fAtlasMgr) { - fAtlasMgr = new GrAtlasMgr(fGpu); + fAtlasMgr = SkNEW_ARGS(GrAtlasMgr, (fGpu)); } - GrTextStrike* strike = new GrTextStrike(this, scaler->getKey(), - scaler->getMaskFormat(), fAtlasMgr); + GrTextStrike* strike = SkNEW_ARGS(GrTextStrike, + (this, scaler->getKey(), + scaler->getMaskFormat(), fAtlasMgr)); fCache.insert(key, strike); if (fHead) { |