Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 9957cc0aa603c03fb26c367391285ca8d8cf7bf8..dcc7047dbcee58ecf56d9d914a09b109afa3baeb 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -2140,13 +2140,11 @@ |
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, 2, textOffset, |
+ iter.fDevice->drawPosText(iter, text, byteLength, &pos->fX, 0, 2, |
dfp.paint()); |
} |
@@ -2155,14 +2153,11 @@ |
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, 1, textOffset, |
+ iter.fDevice->drawPosText(iter, text, byteLength, xpos, constY, 1, |
dfp.paint()); |
} |