aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkCanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkCanvas.cpp')
-rw-r--r--src/core/SkCanvas.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 3c5ec347c7..c1f81188ce 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -2432,7 +2432,7 @@ void SkCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkSca
fScratchGlyphRunBuilder->drawText(
looper.paint(), text, byteLength, SkPoint::Make(x, y));
auto glyphRunList = fScratchGlyphRunBuilder->useGlyphRunList();
- iter.fDevice->drawGlyphRunList(looper.paint(), glyphRunList);
+ iter.fDevice->drawGlyphRunList(glyphRunList);
}
LOOPER_END
@@ -2446,7 +2446,7 @@ void SkCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPoint
while (iter.next()) {
fScratchGlyphRunBuilder->drawPosText(looper.paint(), text, byteLength, pos);
auto glyphRunList = fScratchGlyphRunBuilder->useGlyphRunList();
- iter.fDevice->drawGlyphRunList(looper.paint(), glyphRunList);
+ iter.fDevice->drawGlyphRunList(glyphRunList);
}
LOOPER_END
@@ -2461,7 +2461,7 @@ void SkCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkScala
fScratchGlyphRunBuilder->drawPosTextH(
looper.paint(), text, byteLength, xpos, constY);
auto glyphRunList = fScratchGlyphRunBuilder->useGlyphRunList();
- iter.fDevice->drawGlyphRunList(looper.paint(), glyphRunList);
+ iter.fDevice->drawGlyphRunList(glyphRunList);
}
LOOPER_END
@@ -2511,7 +2511,8 @@ void SkCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
LOOPER_BEGIN(paint, bounds)
while (iter.next()) {
- iter.fDevice->drawTextBlob(blob, x, y, looper.paint());
+ fScratchGlyphRunBuilder->drawTextBlob(looper.paint(), *blob, SkPoint::Make(x, y));
+ iter.fDevice->drawGlyphRunList(fScratchGlyphRunBuilder->useGlyphRunList());
}
LOOPER_END