diff options
author | Mike Reed <reed@google.com> | 2019-01-28 13:31:36 -0500 |
---|---|---|
committer | Mike Reed <reed@google.com> | 2019-01-29 14:03:49 -0500 |
commit | 2e204fc46857bb5702350ea7da9948b58c897726 (patch) | |
tree | ff3423f3836671c2761162251cb9589c4c1adbb5 | |
parent | 7447f3bda99c200f5c9853615aab1ae8e72e6d8e (diff) |
don't pass bounds to textblobbuilder
Rely on builder to compute it
Test: make
Change-Id: Ib04b5a79d4e94e269761dd23171ca517e5aebed9
-rw-r--r-- | libs/hwui/SkiaCanvas.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/hwui/SkiaCanvas.cpp b/libs/hwui/SkiaCanvas.cpp index 54a91f4ec06f..f328a5399cbb 100644 --- a/libs/hwui/SkiaCanvas.cpp +++ b/libs/hwui/SkiaCanvas.cpp @@ -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()); |