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

Commit c3166e15 authored by Romain Guy's avatar Romain Guy
Browse files

Don't draw more than what we need.

Change-Id: Ifeac66d379a48e8a1124188125e029421eb24226
parent 4974bc1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1779,7 +1779,7 @@ public final class ViewRootImpl extends Handler implements ViewParent,

        if (fullRedrawNeeded) {
            mAttachInfo.mIgnoreDirtyState = true;
            dirty.union(0, 0, (int) (mWidth * appScale + 0.5f), (int) (mHeight * appScale + 0.5f));
            dirty.set(0, 0, (int) (mWidth * appScale + 0.5f), (int) (mHeight * appScale + 0.5f));
        }

        if (mAttachInfo.mHardwareRenderer != null && mAttachInfo.mHardwareRenderer.isEnabled()) {