Flush text contexts before drawing text as path
BUG=416289 Review URL: https://codereview.chromium.org/636233008
This commit is contained in:
parent
585a5fc243
commit
ec87dc64dd
@ -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)),
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user