Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ae64e49

Browse files
herbderbySkia Commit-Bot
authored andcommitted
Simplify blob's appendGlyph interface
Change-Id: I62fcaef94570982d46e678b8e128b02e2514a96a Reviewed-on: https://skia-review.googlesource.com/145528 Reviewed-by: Jim Van Verth <[email protected]> Commit-Queue: Herb Derby <[email protected]>
1 parent 4f599a9 commit ae64e49

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/gpu/text/GrTextBlob.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ void GrTextBlob::appendGlyph(int runIndex,
7272
const SkRect& positions,
7373
GrColor color,
7474
sk_sp<GrTextStrike> strike,
75-
GrGlyph* glyph,
76-
SkGlyphCache* cache, const SkGlyph& skGlyph,
77-
SkScalar x, SkScalar y, SkScalar scale, bool preTransformed) {
75+
GrGlyph* glyph, bool preTransformed) {
7876

7977
Run& run = fRuns[runIndex];
8078
GrMaskFormat format = glyph->fMaskFormat;

src/gpu/text/GrTextBlob.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@ class GrTextBlob : public SkNVRefCnt<GrTextBlob> {
177177
const SkRect& positions,
178178
GrColor color,
179179
sk_sp<GrTextStrike> strike,
180-
GrGlyph* glyph,
181-
SkGlyphCache*, const SkGlyph& skGlyph,
182-
SkScalar x, SkScalar y, SkScalar scale, bool preTransformed);
180+
GrGlyph* glyph, bool preTransformed);
183181

184182
// Appends a glyph to the blob as a path only.
185183
void appendPathGlyph(int runIndex, const SkPath& path,

src/gpu/text/GrTextContext.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,7 @@ void GrTextContext::AppendGlyph(GrTextBlob* blob, int runIndex,
290290
SkRect glyphRect = rect_to_draw(skGlyph, {sx, sy}, textRatio, maskStyle);
291291

292292
if (!glyphRect.isEmpty()) {
293-
blob->appendGlyph(runIndex, glyphRect, color, *strike, glyph,
294-
skGlyphCache, skGlyph, sx, sy, textRatio, !needsTransform);
293+
blob->appendGlyph(runIndex, glyphRect, color, *strike, glyph, !needsTransform);
295294
}
296295
}
297296

0 commit comments

Comments
 (0)