aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkCanvas.cpp
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2018-07-11 16:07:01 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-12 20:59:19 +0000
commitc434ade20eba4a62c450b7ce33a89966fac9df62 (patch)
tree99430be42012ee0c664974bb9f4ba564392e80fc /src/core/SkCanvas.cpp
parent04aa393045c6172f78d96f9f5a02c6f1cc0da445 (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/core/SkCanvas.cpp')
-rw-r--r--src/core/SkCanvas.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index afdb4f9940..367105ddda 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -2429,7 +2429,7 @@ void SkCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkSca
LOOPER_BEGIN(paint, nullptr)
while (iter.next()) {
- fScratchGlyphRunBuilder->prepareDrawText(
+ fScratchGlyphRunBuilder->drawText(
looper.paint(), text, byteLength, SkPoint::Make(x, y));
auto glyphRun = fScratchGlyphRunBuilder->useGlyphRun();
iter.fDevice->drawGlyphRun(looper.paint(), glyphRun);
@@ -2444,7 +2444,7 @@ void SkCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPoint
LOOPER_BEGIN(paint, nullptr)
while (iter.next()) {
- fScratchGlyphRunBuilder->prepareDrawPosText(looper.paint(), text, byteLength, pos);
+ fScratchGlyphRunBuilder->drawPosText(looper.paint(), text, byteLength, pos);
auto glyphRun = fScratchGlyphRunBuilder->useGlyphRun();
iter.fDevice->drawGlyphRun(looper.paint(), glyphRun);
}
@@ -2458,7 +2458,7 @@ void SkCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkScala
LOOPER_BEGIN(paint, nullptr)
while (iter.next()) {
- fScratchGlyphRunBuilder->prepareDrawPosTextH(
+ fScratchGlyphRunBuilder->drawPosTextH(
looper.paint(), text, byteLength, xpos, constY);
const auto& glyphRun = fScratchGlyphRunBuilder->useGlyphRun();
iter.fDevice->drawGlyphRun(looper.paint(), glyphRun);