Use WindowRelayoutResult for all WM->Client layout
The interface between client and WM has multiple methods passing around the same set of information. It turns out that WindowRelayoutResult encapsulates this pretty well and is parcelable which makes it work well as a binder `out` parameter. Take the existing APIs which are passing layout information and have them all use this one. This includes pulling the SurfaceControl out of WindowRelayoutResult since it is only used for relayout -- in other words, common stuff stays in WindowRelayoutResult while each API's unique parameters don't. Bug: 385976595 Test: Existing tests Flag: EXEMPT mechanical refactor Change-Id: I62aeebf16296b3c4af3c51582bceded21cf593c8
Loading
Please register or sign in to comment