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

Commit ff8df72c authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Remove unnecessary bounding box calculation

Bug: 297488345
Test: TreeHugger
Change-Id: I5728b0a18d76fc0518822676813e7188a4128b1a
parent b472a2f4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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());
        }