aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDistanceFieldTextContext.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-14 10:52:00 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-14 10:52:00 -0700
commitec87dc64dd40c1a4f80088023c94764caca79bf9 (patch)
tree2201a1ae32f8ee33f3696018faca03ca514e7500 /src/gpu/GrDistanceFieldTextContext.cpp
parent585a5fc243e290ad9055ae1439a5e505d1ce7368 (diff)
Flush text contexts before drawing text as path
Diffstat (limited to 'src/gpu/GrDistanceFieldTextContext.cpp')
-rwxr-xr-xsrc/gpu/GrDistanceFieldTextContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp
index e10fa4fe7b..9fa0c1d7b8 100755
--- a/src/gpu/GrDistanceFieldTextContext.cpp
+++ b/src/gpu/GrDistanceFieldTextContext.cpp
@@ -487,6 +487,9 @@ void GrDistanceFieldTextContext::appendGlyph(GrGlyph::PackedID packed,
glyph->fPath = path;
}
+ // flush any accumulated draws before drawing this glyph as a path.
+ this->flush();
+
GrContext::AutoMatrix am;
SkMatrix ctm;
ctm.setScale(fTextRatio, fTextRatio);