diff options
Diffstat (limited to 'src/core/SkCanvas.cpp')
-rw-r--r-- | src/core/SkCanvas.cpp | 6 |
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); |