Loading libs/hwui/SkiaCanvas.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -746,7 +746,10 @@ void SkiaCanvas::drawGlyphs(ReadGlyphFunc glyphFunc, int count, const Paint& pai glyphFunc(buffer.glyphs, buffer.pos); sk_sp<SkTextBlob> textBlob(builder.make()); mCanvas->drawTextBlob(textBlob, 0, 0, paintCopy); apply_looper(&paintCopy, [&](const SkPaint& p) { mCanvas->drawTextBlob(textBlob, 0, 0, p); }); drawTextDecorations(x, y, totalAdvance, paintCopy); } Loading Loading @@ -783,8 +786,10 @@ void SkiaCanvas::drawLayoutOnPath(const minikin::Layout& layout, float hOffset, xform[i - start].fTx = pos.x() - tan.y() * y - halfWidth * tan.x(); xform[i - start].fTy = pos.y() + tan.x() * y - halfWidth * tan.y(); } this->asSkCanvas()->drawTextBlob(builder.make(), 0, 0, paintCopy); auto* finalCanvas = this->asSkCanvas(); apply_looper(&paintCopy, [&](const SkPaint& p) { finalCanvas->drawTextBlob(builder.make(), 0, 0, paintCopy); }); } // ---------------------------------------------------------------------------- Loading Loading
libs/hwui/SkiaCanvas.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -746,7 +746,10 @@ void SkiaCanvas::drawGlyphs(ReadGlyphFunc glyphFunc, int count, const Paint& pai glyphFunc(buffer.glyphs, buffer.pos); sk_sp<SkTextBlob> textBlob(builder.make()); mCanvas->drawTextBlob(textBlob, 0, 0, paintCopy); apply_looper(&paintCopy, [&](const SkPaint& p) { mCanvas->drawTextBlob(textBlob, 0, 0, p); }); drawTextDecorations(x, y, totalAdvance, paintCopy); } Loading Loading @@ -783,8 +786,10 @@ void SkiaCanvas::drawLayoutOnPath(const minikin::Layout& layout, float hOffset, xform[i - start].fTx = pos.x() - tan.y() * y - halfWidth * tan.x(); xform[i - start].fTy = pos.y() + tan.x() * y - halfWidth * tan.y(); } this->asSkCanvas()->drawTextBlob(builder.make(), 0, 0, paintCopy); auto* finalCanvas = this->asSkCanvas(); apply_looper(&paintCopy, [&](const SkPaint& p) { finalCanvas->drawTextBlob(builder.make(), 0, 0, paintCopy); }); } // ---------------------------------------------------------------------------- Loading