Nuke WindowState#mShownPosition. Rework mXOffset/mYOffset.
Ignoring Wallpaper Offsets, the WindowStateAnimator is now always positioned at (0,0), so we don't need to calculate or store this. For Wallpaper Offsets we can manipulate the position of the WindowStateAnimator surface directly. This seems to be a nice level to model the concept of scrolling a buffer larger than the "Window" to which it is assigned. Everything on top of WSA can ignore the offsets by only interacting with the WS and above. Seamless rotation may mess with the position so we need to be sure to reset it to 0,0. Test: Manual. go/wm-smoke Bug: 72038766 Change-Id: I961d190d1f1ee71faaede095617092a0ad32e16f
Loading
Please register or sign in to comment