Reduce reporting resize when the window is in relayout
Since commit 23c07add that changes the order of createSurfaceControl and performSurfacePlacement, the window in relayout will have mHasSurface=true. And because isLastConfigReportedToClient is not set yet at the end of relayout, that causes to report resize for config change. In relayoutWindow, the latest merged configuration will be returned from fillClientWindowFramesAndConfiguration that sets mLastConfigReportedToClient(isLastConfigReportedToClient), so the resize is usually unnecessary. Actually most of cases, the client receives the resize message and just skip because nothing is different from its states. Bug: 189915038 Test: CtsWindowManagerDeviceTestCases Test: Check trace of adding a new simple window. There won't be a MSG_RESIZED after the first relayout. Change-Id: Ieaf709907342780e4458c9c3c27902c86068de6e
Loading
Please register or sign in to comment