WindowStateAnimator: Remove mSurfaceResized
This is a part of moving Surface size control to the client. We currently see there are only two uses of mSurfaceResized: 1. In WindowState to emit MSG_RESIZED. However for many releases now we have only resized surfaces from within relayoutWindow, so the client will already receive the result here and there is no need to emit MSG_RESIZED. 2. In WindowStateAnimator to set REDO_WALLPAPER. The original meaning of this code is perhaps lost to archaeology. However I think the cases where resizing would be linked to wallpaper should be limited to rotation. This seems to match the idea that the historical meaning of "mSurfaceResized" was more or less "orientation changing" (back before multi-window). We also add this REDO_WALLPAPER flag from WindowManagerService#finishDrawingWindow, and so I think it should be added anyway in these sort of rotation cases (assuming it's still necessary) Bug: 161937501 Test: Existing tests pass Change-Id: I2f85b6a81d24eec5c4aaca205e92a5fe82aff41e
Loading
Please register or sign in to comment