Index: src/gpu/GrBitmapTextContext.cpp |
diff --git a/src/gpu/GrBitmapTextContext.cpp b/src/gpu/GrBitmapTextContext.cpp |
index 8620e97b190fce128573576a03345490ba499a76..fa70d3270ba1fe6999138d63127be59f71b2841d 100755 |
--- a/src/gpu/GrBitmapTextContext.cpp |
+++ b/src/gpu/GrBitmapTextContext.cpp |
@@ -407,6 +407,9 @@ void GrBitmapTextContext::appendGlyph(GrGlyph::PackedID packed, |
glyph->fPath = path; |
} |
+ // flush any accumulated draws before drawing this glyph as a path. |
+ this->flush(); |
+ |
GrContext::AutoMatrix am; |
SkMatrix translate; |
translate.setTranslate(SkFixedToScalar(vx - SkIntToFixed(glyph->fBounds.fLeft)), |