Skip to content
Commit 5ffdaf03 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 0a40c03e
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