summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.cpp
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2021-07-08 10:19:34 -0700
committerRobert Carr <racarr@google.com>2021-07-08 13:23:33 -0700
commita93fcc9e3391beb48caa45074b1b4b6d967b5d1a (patch)
tree68b876894493036b00aa92a7e236d7e3657ce873 /libs/hwui/renderthread/DrawFrameTask.cpp
parent74c65d260033ea16787adaf8a415bda0b75a163d (diff)
ViewRootImpl: Fix issue with early draw report in seamless rotation
When we receive RELAYOUT_RES_BLAST_SYNC from the WindowManager, we trigger reportNextDraw, incrementing the pending draw count by one. At the moment we unfortunately do this after dispatching callbacks to SurfaceView. In the span of these callbacks, SurfaceView may increment and decrement pending draw count, once it reaches zero we will notify the WM of draw early, terminating the sync operation without ever waiting for the ViewRootImpl to draw. By processing RELAYOUT_RES_BLAST_SYNC before emitting the SurfaceView callbacks we can avoid this issue. Bug: 191921061 Test: Existing tests pass Change-Id: I2f1096c9cdc79b89413c3f0bfd9b3054ef45f2d2
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions