WM/SurfacePackage: Forward insets to WindowContainer overlays
We add support for forwarding InsetsState over SurfacePackage to reach embedded ViewRootImpl. As a next step we hook up forwarding of insets from the main visible window of a task with overlays, to said overlays. We provide a frame so that the remote ViewRootImpl can interpret the insets relative to this frame. In the TaskOverlay case everything in the remote SurfaceControlViewHost is in a world relative to the task bounds, and so we send the task bounds. Transient insets are also forwarded via this channel. This is due to the specific requirements of game service overlay, but seems to make sense in general for overlays, who will need to be able to intelligently handle immersive mode. Bug: 213603716 Bug: 214239892 Test: SurfaceControlWindowInsetsTest Change-Id: I22e22050a5dec71d8120ef4fea4a1c9bc452e02f
Loading
Please register or sign in to comment