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:
Herb Derby 2018-08-06 14:58:25 -04:00 committed by Skia Commit-Bot
parent 4f599a952f
commit ae64e49812
3 changed files with 3 additions and 8 deletions

View File

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

View File

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

View File

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