Flush text contexts before drawing text as path

BUG=416289

Review URL: https://codereview.chromium.org/636233008
This commit is contained in:
bsalomon 2014-10-14 10:52:00 -07:00 committed by Commit bot
parent 585a5fc243
commit ec87dc64dd
2 changed files with 6 additions and 0 deletions

View File

@ -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)),

View File

@ -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);