diff options
author | Herb Derby <herb@google.com> | 2018-07-11 16:07:01 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-12 20:59:19 +0000 |
commit | c434ade20eba4a62c450b7ce33a89966fac9df62 (patch) | |
tree | 99430be42012ee0c664974bb9f4ba564392e80fc /src/gpu | |
parent | 04aa393045c6172f78d96f9f5a02c6f1cc0da445 (diff) |
Move to using pointers in simplifyDraw*
Move to using pointers into buffers. This will allow
multiple runs from blobs to share buffers.
Change-Id: I6ebed2e490c5fe71077ddc921ead145ce17c5ebd
Reviewed-on: https://skia-review.googlesource.com/141049
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/text/GrTextContext.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/text/GrTextContext.cpp b/src/gpu/text/GrTextContext.cpp index 28204eb7af..04d92aef39 100644 --- a/src/gpu/text/GrTextContext.cpp +++ b/src/gpu/text/GrTextContext.cpp @@ -211,8 +211,8 @@ void GrTextContext::regenerateTextBlob(GrTextBlob* cacheBlob, case SkTextBlob::kDefault_Positioning: { auto origin = SkPoint::Make(x + offset.x(), y + offset.y()); SkGlyphRunBuilder builder; - builder.prepareDrawText(runPaint.skPaint(), - (const char*)it.glyphs(), textLen, origin); + builder.drawText(runPaint.skPaint(), + (const char*) it.glyphs(), textLen, origin); auto glyphRun = builder.useGlyphRun(); @@ -246,8 +246,8 @@ void GrTextContext::regenerateTextBlob(GrTextBlob* cacheBlob, case SkTextBlob::kDefault_Positioning: { auto origin = SkPoint::Make(x + offset.x(), y + offset.y()); SkGlyphRunBuilder builder; - builder.prepareDrawText(runPaint.skPaint(), - (const char*)it.glyphs(), textLen, origin); + builder.drawText(runPaint.skPaint(), + (const char*) it.glyphs(), textLen, origin); auto glyphRun = builder.useGlyphRun(); @@ -780,7 +780,7 @@ std::unique_ptr<GrDrawOp> GrTextContext::createOp_TestingOnly(GrContext* context auto origin = SkPoint::Make(x, y); SkGlyphRunBuilder builder; - builder.prepareDrawText(skPaint, text, textLen, origin); + builder.drawText(skPaint, text, textLen, origin); sk_sp<GrTextBlob> blob; auto glyphRun = builder.useGlyphRun(); |