diff options
| author | 2021-05-10 11:36:43 -0700 | |
|---|---|---|
| committer | 2021-05-10 12:16:26 -0700 | |
| commit | 82d07c9e4561ec7adc9340207d25b59b7926c3c9 (patch) | |
| tree | 280ad61cc77069cf3325c86ef306efd5d655c6e9 /libs/gui/DisplayLuts.cpp | |
| parent | 272e1621ce7eda67b38373f960a4b37c0f79207c (diff) | |
BBQSurface: Give client a chance to observe transform hint earlier
The client may be observing the transform hint through the Surface.cpp
codepath however Surface#mTransformHint will only be updated on
queueBuffer. However imagine a scenario like this:
1. transform hint changes on server
2. queue buffer
2. repeat queue buffer
3. callback for queue buffer 1 and 2, updates transform hint on
client
4. queue buffer 4
5. Client now observes transform hint
6. Queue buffer 5(!) will finally contain the transform hint.
With this change we give the client a chance to observe the tranform
hint in this scenario before queue buffer 4. In the case of the
ScreenDecorOverlay's which rarely redraw, this seems to fix some
persistent pre-rotation issues.
Bug: 184842607
Test: Existing tests pass.
Change-Id: I34524ee40c6076f497bb0c60af901e9c93798a48
Diffstat (limited to 'libs/gui/DisplayLuts.cpp')
0 files changed, 0 insertions, 0 deletions