flush inorder drawtarget (i.e. flushText) before we purge the atlas/cache

git-svn-id: http://skia.googlecode.com/svn/trunk@651 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2010-12-22 22:16:59 +00:00
parent 88b019bc77
commit 313e403583

View File

@ -137,6 +137,9 @@ void GrTextContext::drawPackedGlyph(GrGlyph::PackedID packed,
if (fStrike->getGlyphAtlas(glyph, scaler)) {
goto HAS_ATLAS;
}
// must do this to flush inorder buffering before we purge
fContext->flushText();
// try to purge
fContext->getFontCache()->purgeExceptFor(fStrike);
if (fStrike->getGlyphAtlas(glyph, scaler)) {