summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-06-02 18:55:30 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-06-02 19:50:20 +0800
commit5ffdaf032a0074f6814bc938b9980a73bbe9f7fd (patch)
tree32a0de90d0a5beb4ab88934a8c7e2e4ec98fdc1f /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent0a40c03eb1a0583c7cac687d679d281683fae293 (diff)
Reduce reporting resize when the window is in relayout
Since commit 23c07ad 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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions