Simplify blob's appendGlyph interface
Change-Id: I62fcaef94570982d46e678b8e128b02e2514a96a Reviewed-on: https://skia-review.googlesource.com/145528 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
parent
4f599a952f
commit
ae64e49812
@ -72,9 +72,7 @@ void GrTextBlob::appendGlyph(int runIndex,
|
||||
const SkRect& positions,
|
||||
GrColor color,
|
||||
sk_sp<GrTextStrike> strike,
|
||||
GrGlyph* glyph,
|
||||
SkGlyphCache* cache, const SkGlyph& skGlyph,
|
||||
SkScalar x, SkScalar y, SkScalar scale, bool preTransformed) {
|
||||
GrGlyph* glyph, bool preTransformed) {
|
||||
|
||||
Run& run = fRuns[runIndex];
|
||||
GrMaskFormat format = glyph->fMaskFormat;
|
||||
|
@ -177,9 +177,7 @@ public:
|
||||
const SkRect& positions,
|
||||
GrColor color,
|
||||
sk_sp<GrTextStrike> strike,
|
||||
GrGlyph* glyph,
|
||||
SkGlyphCache*, const SkGlyph& skGlyph,
|
||||
SkScalar x, SkScalar y, SkScalar scale, bool preTransformed);
|
||||
GrGlyph* glyph, bool preTransformed);
|
||||
|
||||
// Appends a glyph to the blob as a path only.
|
||||
void appendPathGlyph(int runIndex, const SkPath& path,
|
||||
|
@ -290,8 +290,7 @@ void GrTextContext::AppendGlyph(GrTextBlob* blob, int runIndex,
|
||||
SkRect glyphRect = rect_to_draw(skGlyph, {sx, sy}, textRatio, maskStyle);
|
||||
|
||||
if (!glyphRect.isEmpty()) {
|
||||
blob->appendGlyph(runIndex, glyphRect, color, *strike, glyph,
|
||||
skGlyphCache, skGlyph, sx, sy, textRatio, !needsTransform);
|
||||
blob->appendGlyph(runIndex, glyphRect, color, *strike, glyph, !needsTransform);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user