summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Robert Carr <racarr@google.com> 2021-04-07 13:12:36 -0700
committer Robert Carr <racarr@google.com> 2021-04-07 13:12:36 -0700
commite163dbc742f7f542765f2ce3ea0d4bd5fec7a0b7 (patch)
tree560164cee70d4772486210f3da78ff2aa4b8a608 /libs/gui/BufferQueueThreadState.cpp
parenta7e6c7c5940cd4b04b499990fede0bbcd8fcd08e (diff)
SurfaceFlinger: Peek in current state for transform hint
Imagine a sequence like this: 1. Apply transaction to rotate display 2. Create surface 3. Transaction to rotate display processed From a client perspective we executed 2 after 1 and would expect it to observe the new transform hint, but it may not due so due to the waiting for current->drawing state swap. Since we hold the lock on the binder thread we can peek in the current state and return the most recent hint. Bug: 184584284 Test: Existing tests pass Change-Id: Ic4927f517757c3c3dcfc1570e66b40ed370496de
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions