Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34e79c1e authored by Tom Hudson's avatar Tom Hudson
Browse files

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
parent 4fc266bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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