summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-04-06 23:53:24 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-04-06 23:57:35 +0800
commitad62bda3cf679e4da3c689784d20c6bb4d4305ff (patch)
treeccc2d8a677a58246d4ee229a4a287006dc8d9cba /libs/androidfw/StringPool.cpp
parent7b0f4e57e4859d175a2cefe3dfa2ff0292b4055c (diff)
Do not set report-orientation-changed for window without surface
Otherwise the state may remain to the next new surface when the window becomes visible, and it will get ViewRootImpl #mForceNextWindowRelayout=true from WindowState#resize. And then its pre-allocated buffers from ThreadedRenderer#allocateBuffers will be dropped by ThreadedRenderer#updateSurface. And then allocate again in each frame, which is very wasteful. Bug: 228223340 Test: 1. Launch a landscape app from portrait launcher. 2. Use command "record_android_trace sched view wm am gfx". 3. Swipe up to return to launcher. 4. The trace of launcher should not show "setSurface". And there should not have "allocateHelper" in "DrawFrames". Change-Id: If66cde35837b0362ca51eee018d8828416d118ec
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions