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>
diff --git a/src/gpu/text/GrTextBlob.cpp b/src/gpu/text/GrTextBlob.cpp
index 6545f84..783d36f 100644
--- a/src/gpu/text/GrTextBlob.cpp
+++ b/src/gpu/text/GrTextBlob.cpp
@@ -72,9 +72,7 @@
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;
diff --git a/src/gpu/text/GrTextBlob.h b/src/gpu/text/GrTextBlob.h
index 686dac4..3c16fa9 100644
--- a/src/gpu/text/GrTextBlob.h
+++ b/src/gpu/text/GrTextBlob.h
@@ -177,9 +177,7 @@
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,
diff --git a/src/gpu/text/GrTextContext.cpp b/src/gpu/text/GrTextContext.cpp
index 943ce8c..876179b 100644
--- a/src/gpu/text/GrTextContext.cpp
+++ b/src/gpu/text/GrTextContext.cpp
@@ -290,8 +290,7 @@
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);
}
}