diff options
author | Long Ling <longling@google.com> | 2022-03-08 13:31:59 -0800 |
---|---|---|
committer | Long Ling <longling@google.com> | 2022-03-21 12:00:29 -0700 |
commit | 57dcdb46e31de9bfd2fabd8f14361a931bc26c3f (patch) | |
tree | 055e7094d623a620a074d5af3fea7d40e7554076 /hwc3/impl/HalImpl.cpp | |
parent | 3f5b9ebd17e2e8b4bc4324b09b54f981233efd0e (diff) |
libhwc2.1: ensure displaycolor get correct lhbm state
setLhbmState call will trigger display validation (by calling
SF refresh). But the call could happen during a presentDisplay call.
The lhbm request will go with current presentDisplay but displaycolor
Update is not called, the LHBM compensation is skipped.
We don't want to delay the setLhbmState to next frame if not necessary.
So we need to move lhbm related scene update to UpdatePresent.
And setLhbmState call should not happpen between Lhbm scene update
and lhbm adjusted dbv query. Re-use current brightness mutex for protection.
If setLhbmState happens after prepareFrameCommit call, it has
to wait for next frame.
Bug: 223249884
Change-Id: Idf5eff48a8392e57e6c48d7babeb9f53e2ce7e18
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
0 files changed, 0 insertions, 0 deletions