diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2010-12-22 22:16:59 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2010-12-22 22:16:59 +0000 |
commit | 313e403583a74c96f14d4b8dcb14fa9cea920a7d (patch) | |
tree | e9a8dc42ac88d0a76549e659ea551d864b351349 | |
parent | 88b019bc77af6bda452bb4a964aced616b9a5586 (diff) |
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
-rw-r--r-- | gpu/src/GrTextContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gpu/src/GrTextContext.cpp b/gpu/src/GrTextContext.cpp index d5fa1ccc65..1374a26639 100644 --- a/gpu/src/GrTextContext.cpp +++ b/gpu/src/GrTextContext.cpp @@ -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)) { |