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

Commit 62490bd3 authored by Michael Jurka's avatar Michael Jurka
Browse files

Re-add performance optimization in View

- undoing change 79897

Change-Id: I52eb1247c4fead5e4203d7e7200129aa815e7c9b
parent 0b44476a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -6430,6 +6430,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
            }
            final AttachInfo ai = mAttachInfo;
            final ViewParent p = mParent;
            if (p != null && ai != null && ai.mHardwareAccelerated) {
                // fast-track for GL-enabled applications; just invalidate the whole hierarchy
                // with a null dirty rect, which tells the ViewRoot to redraw everything
                p.invalidateChild(this, null);
                return;
            }

            if (p != null && ai != null) {
                final Rect r = ai.mTmpInvalRect;