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

Commit a446195b authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Fix hasSurfaceInsets check when creating hardware renderer" into lmp-mr1-dev

parents 67198830 2cd23e6b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -728,8 +728,8 @@ public final class ViewRootImpl implements ViewParent,
                }

                final Rect insets = attrs.surfaceInsets;
                final boolean hasSurfaceInsets = insets.left == 0 || insets.right == 0
                        || insets.top == 0 || insets.bottom == 0;
                final boolean hasSurfaceInsets = insets.left != 0 || insets.right != 0
                        || insets.top != 0 || insets.bottom != 0;
                final boolean translucent = attrs.format != PixelFormat.OPAQUE || hasSurfaceInsets;
                mAttachInfo.mHardwareRenderer = HardwareRenderer.create(mContext, translucent);
                if (mAttachInfo.mHardwareRenderer != null) {