diff options
author | Wiwit Rifa'i <wiwitrifai@google.com> | 2023-06-06 16:55:51 +0800 |
---|---|---|
committer | Wiwit Rifa'i <wiwitrifai@google.com> | 2023-06-07 14:56:39 +0800 |
commit | 8c34de5710be7e0cc2b4a2d919ae546d176f9776 (patch) | |
tree | 3a972b57c11a30c31c38f4095ff95e4cfc0ad86d /libhwc2.1/pixel-display.cpp | |
parent | ba60527e79815ed03f2760728a0778a2ab6eabba (diff) |
libhwc2.1: use mRequestedCompositionType to check indicator layer
Instead of checking (mCompositionType == REFRESH_RATE_INDICATOR), we
should check mRequestedCompositionType to check whether a layer is for
refresh rate indicator or not. This is because mCompositionType can be
changed to CLIENT when acceptDisplayChanges() is called. Thus, we should
use mRequestedCompositionType that will only be changed by
setLayerCompositionType().
Bug: 283352279
Test: refresh rate indicator can enter idle after play HDR video on YT
Change-Id: I5381157107550ed380c9671fe712285b1b53f814
Diffstat (limited to 'libhwc2.1/pixel-display.cpp')
0 files changed, 0 insertions, 0 deletions