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

Commit baa0ab02 authored by Robert Carr's avatar Robert Carr
Browse files

WSA: Remove dead inset adjustment code.

We see the translation values of the matrix are totally ignored
and so this line was already a no-op.

Bug: 161937501
Test: Existing tests pass
Change-Id: I77811818d04cd5ef0f02c16038b103b6febf2884
parent d23ee155
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -695,12 +695,6 @@ class WindowStateAnimator {

            tmpMatrix.postScale(mWin.mGlobalScale, mWin.mGlobalScale);

            // WindowState.prepareSurfaces expands for surface insets (in order they don't get
            // clipped by the WindowState surface), so we need to go into the other direction here.
            tmpMatrix.postTranslate(mWin.mAttrs.surfaceInsets.left,
                    mWin.mAttrs.surfaceInsets.top);


            // "convert" it into SurfaceFlinger's format
            // (a 2x2 matrix + an offset)
            // Here we must not transform the position of the surface