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

Commit 2e204fc4 authored by Mike Reed's avatar Mike Reed
Browse files

don't pass bounds to textblobbuilder

Rely on builder to compute it

Test: make

Change-Id: Ib04b5a79d4e94e269761dd23171ca517e5aebed9
parent 7447f3bd
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -694,11 +694,8 @@ void SkiaCanvas::drawGlyphs(ReadGlyphFunc glyphFunc, int count, const Paint& pai
        paintCopy.setStyle(SkPaint::kFill_Style);
    }

    SkRect bounds =
            SkRect::MakeLTRB(boundsLeft + x, boundsTop + y, boundsRight + x, boundsBottom + y);

    SkTextBlobBuilder builder;
    const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(font, count, &bounds);
    const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(font, count);
    glyphFunc(buffer.glyphs, buffer.pos);

    sk_sp<SkTextBlob> textBlob(builder.make());