| Index: src/gpu/GrBatchFontCache.cpp
|
| diff --git a/src/gpu/GrBatchFontCache.cpp b/src/gpu/GrBatchFontCache.cpp
|
| index c429d539b83abebcbbae2589aeba63a9ca86ce3f..76c65d8e34049da1507f93b58e43133732ac014d 100644
|
| --- a/src/gpu/GrBatchFontCache.cpp
|
| +++ b/src/gpu/GrBatchFontCache.cpp
|
| @@ -128,10 +128,16 @@ bool GrBatchFontCache::hasGlyph(GrGlyph* glyph) {
|
| return this->getAtlas(glyph->fMaskFormat)->hasID(glyph->fID);
|
| }
|
|
|
| -void GrBatchFontCache::setGlyphRefToken(GrGlyph* glyph, GrBatchAtlas::BatchToken batchToken) {
|
| +void GrBatchFontCache::setGlyphRefToken(GrBatchAtlas::BulkTokenReffer* reffer, GrGlyph* glyph,
|
| + GrBatchAtlas::BatchToken batchToken) {
|
| SkASSERT(glyph);
|
| SkASSERT(this->getAtlas(glyph->fMaskFormat)->hasID(glyph->fID));
|
| - this->getAtlas(glyph->fMaskFormat)->setLastRefToken(glyph->fID, batchToken);
|
| + reffer->setRefToken(this->getAtlas(glyph->fMaskFormat), glyph->fID, batchToken);
|
| +}
|
| +
|
| +void GrBatchFontCache::setRefTokenBulk(const GrBatchAtlas::BulkTokenReffer& reffer,
|
| + GrMaskFormat format) {
|
| + this->getAtlas(format)->setLastRefTokenBulk(reffer);
|
| }
|
|
|
| bool GrBatchFontCache::addToAtlas(GrBatchTextStrike* strike, GrBatchAtlas::AtlasID* id,
|
|
|