Index: src/gpu/GrTextContext.cpp |
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp |
index 8f0f1cfde6a0848136be2c75f2b6afd7c53c8b95..f4a3df6429e05fb31bcf5bdedb87776a70ae3a01 100644 |
--- a/src/gpu/GrTextContext.cpp |
+++ b/src/gpu/GrTextContext.cpp |
@@ -148,14 +148,15 @@ void GrTextContext::drawPackedGlyph(GrGlyph::PackedID packed, |
} |
} |
+ GrDrawTarget::DrawToken drawToken = fDrawTarget->getCurrentDrawToken(); |
if (NULL == glyph->fAtlas) { |
- if (fStrike->getGlyphAtlas(glyph, scaler)) { |
+ if (fStrike->getGlyphAtlas(glyph, scaler, drawToken)) { |
goto HAS_ATLAS; |
} |
// try to clear out an unused atlas before we flush |
fContext->getFontCache()->freeAtlasExceptFor(fStrike); |
- if (fStrike->getGlyphAtlas(glyph, scaler)) { |
+ if (fStrike->getGlyphAtlas(glyph, scaler, drawToken)) { |
goto HAS_ATLAS; |
} |
@@ -165,7 +166,8 @@ void GrTextContext::drawPackedGlyph(GrGlyph::PackedID packed, |
// try to purge |
fContext->getFontCache()->purgeExceptFor(fStrike); |
- if (fStrike->getGlyphAtlas(glyph, scaler)) { |
+ // need to use new flush count here |
+ if (fStrike->getGlyphAtlas(glyph, scaler, drawToken)) { |
goto HAS_ATLAS; |
} |