diff options
author | Tom Hudson <tomhudson@google.com> | 2015-04-14 11:34:39 -0400 |
---|---|---|
committer | Tom Hudson <tomhudson@google.com> | 2015-04-14 11:34:39 -0400 |
commit | 34e79c1e570673148e3e0bbd91df3180a00eeff1 (patch) | |
tree | e049700bf2c38278465ece1a0840ae4d8d8fb111 /libs | |
parent | 4fc266bbef6129b5cefc910f0680eb9d61794faf (diff) | |
download | frameworks_base-34e79c1e570673148e3e0bbd91df3180a00eeff1.zip frameworks_base-34e79c1e570673148e3e0bbd91df3180a00eeff1.tar.gz frameworks_base-34e79c1e570673148e3e0bbd91df3180a00eeff1.tar.bz2 |
Convert from glyph count to byte length
Canvas drawText* APIs are inconsistent, and this mismatch snuck through
our tests.
BUG=skia:3636
R=djsollen@google.com
Change-Id: Ibaab512c3f19df8445d582633b2748f1ec4d2902
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/SkiaCanvas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/SkiaCanvas.cpp b/libs/hwui/SkiaCanvas.cpp index 71088b7..8b11757 100644 --- a/libs/hwui/SkiaCanvas.cpp +++ b/libs/hwui/SkiaCanvas.cpp @@ -709,7 +709,7 @@ void SkiaCanvas::drawPosText(const uint16_t* text, const float* positions, int c void SkiaCanvas::drawTextOnPath(const uint16_t* glyphs, int count, const SkPath& path, float hOffset, float vOffset, const SkPaint& paint) { - mCanvas->drawTextOnPathHV(glyphs, count, path, hOffset, vOffset, paint); + mCanvas->drawTextOnPathHV(glyphs, count << 1, path, hOffset, vOffset, paint); } } // namespace android |