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
diff --git a/gpu/src/GrTextContext.cpp b/gpu/src/GrTextContext.cpp
index d5fa1cc..1374a26 100644
--- a/gpu/src/GrTextContext.cpp
+++ b/gpu/src/GrTextContext.cpp
@@ -137,6 +137,9 @@
         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)) {