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

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

Merge "Always apply surface insets" into lmp-dev

parents 2cfeb1ac ac89416c
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -468,13 +468,8 @@ public final class ViewRootImpl implements ViewParent,

                // Compute surface insets required to draw at specified Z value.
                // TODO: Use real shadow insets for a constant max Z.
                if (view.isHardwareAccelerated()) {
                final int surfaceInset = (int) Math.ceil(view.getZ() * 2);
                attrs.surfaceInsets.set(surfaceInset, surfaceInset, surfaceInset, surfaceInset);
                } else {
                    // Software accelerated windows can't use insets.
                    attrs.surfaceInsets.setEmpty();
                }

                CompatibilityInfo compatibilityInfo = mDisplayAdjustments.getCompatibilityInfo();
                mTranslator = compatibilityInfo.getTranslator();