Skip to content

Commit

Permalink
Simplify blob's appendGlyph interface
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
herbderby authored and Skia Commit-Bot committed Aug 7, 2018
1 parent 4f599a9 commit ae64e49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/gpu/text/GrTextBlob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/gpu/text/GrTextBlob.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ class GrTextBlob : public SkNVRefCnt<GrTextBlob> {
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,
Expand Down
3 changes: 1 addition & 2 deletions src/gpu/text/GrTextContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit ae64e49

Please sign in to comment.