diff options
| -rw-r--r-- | libs/hwui/SkiaCanvasProxy.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/SkiaCanvasProxy.cpp b/libs/hwui/SkiaCanvasProxy.cpp index ec1bb909e6f9..8a6c8c50d30d 100644 --- a/libs/hwui/SkiaCanvasProxy.cpp +++ b/libs/hwui/SkiaCanvasProxy.cpp @@ -289,6 +289,7 @@ void SkiaCanvasProxy::onDrawPosText(const void* text, size_t byteLength, const S // but even more conservative bounds if this is too slow. SkRect bounds; glyphs.paint.measureText(glyphs.glyphIDs, glyphs.count << 1, &bounds); + bounds.offset(x, y); SK_COMPILE_ASSERT(sizeof(SkPoint) == sizeof(float)*2, SkPoint_is_no_longer_2_floats); mCanvas->drawText(glyphs.glyphIDs, &posArray[0].fX, glyphs.count, glyphs.paint, x, y, |