Index: src/gpu/GrBatchFontCache.h |
diff --git a/src/gpu/GrBatchFontCache.h b/src/gpu/GrBatchFontCache.h |
index 6300fbe212f1260308a8203fb5fbca9497eb7ea2..4ed11b5c4e92b7152596acf1fb8fc7d553910eaa 100644 |
--- a/src/gpu/GrBatchFontCache.h |
+++ b/src/gpu/GrBatchFontCache.h |
@@ -97,8 +97,15 @@ public: |
bool hasGlyph(GrGlyph* glyph); |
// To ensure the GrBatchAtlas does not evict the Glyph Mask from its texture backing store, |
- // the client must pass in the currentToken from the GrBatchTarget along with the GrGlyph |
- void setGlyphRefToken(GrGlyph*, GrBatchAtlas::BatchToken); |
+ // the client must pass in the currentToken from the GrBatchTarget along with the GrGlyph. |
robertphillips
2015/04/07 12:18:33
typo: BulUse... -> BulkUse...
|
+ // A BulUseTokenUpdater is used to manage bulk last use token updating in the Atlas. |
+ // For convenience, this function will also set the use token for the current glyph if required |
+ // NOTE: the bulk uploader is only valid if the subrun has a valid atlasGeneration |
+ void addGlyphToBulkAndSetUseToken(GrBatchAtlas::BulkUseTokenUpdater*, GrGlyph*, |
+ GrBatchAtlas::BatchToken); |
+ |
+ void setUseTokenBulk(const GrBatchAtlas::BulkUseTokenUpdater&, GrBatchAtlas::BatchToken, |
+ GrMaskFormat); |
// add to texture atlas that matches this format |
bool addToAtlas(GrBatchTextStrike*, GrBatchAtlas::AtlasID*, GrBatchTarget*, |