Index: src/gpu/GrTextContext.cpp |
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp |
index 5a6183965cf6422585baa7befa56299138c90488..8178032ae7a6351d9e4c714ef05b04cc0f3b5721 100644 |
--- a/src/gpu/GrTextContext.cpp |
+++ b/src/gpu/GrTextContext.cpp |
@@ -153,15 +153,14 @@ void GrTextContext::drawPackedGlyph(GrGlyph::PackedID packed, |
} |
} |
- GrDrawTarget::DrawToken drawToken = fDrawTarget->getCurrentDrawToken(); |
if (NULL == glyph->fPlot) { |
- if (fStrike->getGlyphAtlas(glyph, scaler, drawToken)) { |
+ if (fStrike->getGlyphAtlas(glyph, scaler)) { |
goto HAS_ATLAS; |
} |
// try to clear out an unused plot before we flush |
fContext->getFontCache()->freePlotExceptFor(fStrike); |
- if (fStrike->getGlyphAtlas(glyph, scaler, drawToken)) { |
+ if (fStrike->getGlyphAtlas(glyph, scaler)) { |
goto HAS_ATLAS; |
} |
@@ -178,7 +177,7 @@ void GrTextContext::drawPackedGlyph(GrGlyph::PackedID packed, |
// try to purge |
fContext->getFontCache()->purgeExceptFor(fStrike); |
// need to use new flush count here |
- if (fStrike->getGlyphAtlas(glyph, scaler, drawToken)) { |
+ if (fStrike->getGlyphAtlas(glyph, scaler)) { |
goto HAS_ATLAS; |
} |
@@ -205,6 +204,8 @@ void GrTextContext::drawPackedGlyph(GrGlyph::PackedID packed, |
HAS_ATLAS: |
SkASSERT(glyph->fPlot); |
+ GrDrawTarget::DrawToken drawToken = fDrawTarget->getCurrentDrawToken(); |
+ glyph->fPlot->setDrawToken(drawToken); |
// now promote them to fixed (TODO: Rethink using fixed pt). |
width = SkIntToFixed(width); |