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

Commit 685206cb authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Optimize gatherTransparentRegions to account for transparent bg"

parents bdb899d7 2b45a16b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -17497,7 +17497,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                getLocationInWindow(location);
                region.op(location[0], location[1], location[0] + mRight - mLeft,
                        location[1] + mBottom - mTop, Region.Op.DIFFERENCE);
            } else if ((pflags & PFLAG_ONLY_DRAWS_BACKGROUND) != 0 && mBackground != null) {
            } else if ((pflags & PFLAG_ONLY_DRAWS_BACKGROUND) != 0 && mBackground != null &&
                    mBackground.getOpacity() != PixelFormat.TRANSPARENT) {
                // The ONLY_DRAWS_BACKGROUND flag IS set and the background drawable
                // exists, so we remove the background drawable's non-transparent
                // parts from this transparent region.