Skip to content
Commit 0cf58183 authored by Robert Carr's avatar Robert Carr
Browse files

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
parent f2a595df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment