summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorTom Hudson <tomhudson@google.com>2015-04-14 11:34:39 -0400
committerTom Hudson <tomhudson@google.com>2015-04-14 11:34:39 -0400
commit34e79c1e570673148e3e0bbd91df3180a00eeff1 (patch)
treee049700bf2c38278465ece1a0840ae4d8d8fb111 /libs
parent4fc266bbef6129b5cefc910f0680eb9d61794faf (diff)
downloadframeworks_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.cpp2
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