Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index dcc7047dbcee58ecf56d9d914a09b109afa3baeb..9957cc0aa603c03fb26c367391285ca8d8cf7bf8 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -2140,11 +2140,13 @@ |
void SkCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], |
const SkPaint& paint) { |
+ SkPoint textOffset = SkPoint::Make(0, 0); |
+ |
LOOPER_BEGIN(paint, SkDrawFilter::kText_Type, NULL) |
while (iter.next()) { |
SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); |
- iter.fDevice->drawPosText(iter, text, byteLength, &pos->fX, 0, 2, |
+ iter.fDevice->drawPosText(iter, text, byteLength, &pos->fX, 2, textOffset, |
dfp.paint()); |
} |
@@ -2153,11 +2155,14 @@ |
void SkCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], |
SkScalar constY, const SkPaint& paint) { |
+ |
+ SkPoint textOffset = SkPoint::Make(0, constY); |
+ |
LOOPER_BEGIN(paint, SkDrawFilter::kText_Type, NULL) |
while (iter.next()) { |
SkDeviceFilteredPaint dfp(iter.fDevice, looper.paint()); |
- iter.fDevice->drawPosText(iter, text, byteLength, xpos, constY, 1, |
+ iter.fDevice->drawPosText(iter, text, byteLength, xpos, 1, textOffset, |
dfp.paint()); |
} |