diff options
| author | 2023-08-28 16:26:53 +0900 | |
|---|---|---|
| committer | 2023-08-28 16:27:50 +0900 | |
| commit | ff8df72c8341a12b51eaa3650c8d2a6fafd4da96 (patch) | |
| tree | 7d958b2386a9fc71706994ef4cf5e10a18b3b264 | |
| parent | b472a2f498d624f82abe33d7f4ce96e993a066dd (diff) | |
Remove unnecessary bounding box calculation
Bug: 297488345
Test: TreeHugger
Change-Id: I5728b0a18d76fc0518822676813e7188a4128b1a
| -rw-r--r-- | libs/hwui/jni/Paint.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/jni/Paint.cpp b/libs/hwui/jni/Paint.cpp index a17f2f776739..7aef7a51b90c 100644 --- a/libs/hwui/jni/Paint.cpp +++ b/libs/hwui/jni/Paint.cpp @@ -203,10 +203,9 @@ namespace PaintGlue { if (advances) { advancesArray.reset(new jfloat[count]); } - minikin::MinikinRect bounds; const float advance = MinikinUtils::measureText( paint, static_cast<minikin::Bidi>(bidiFlags), typeface, text, start, count, - contextCount, advancesArray.get(), &bounds); + contextCount, advancesArray.get(), nullptr); if (advances) { env->SetFloatArrayRegion(advances, advancesIndex, count, advancesArray.get()); } |