diff options
author | 2024-10-23 22:01:28 +0000 | |
---|---|---|
committer | 2024-10-23 22:01:28 +0000 | |
commit | b2e1d4abc635314169f2c97a7f585d9c1123c57f (patch) | |
tree | f61442951d15075522515f1f295cc00b3cd82679 /libs/gui/LayerState.cpp | |
parent | 266ad0c9c9c0d19e2d35b77bbe0ce1aec070cac5 (diff) | |
parent | 0abc4a5897fdd556f2a618400eff4f9677649024 (diff) |
Merge "[Lut HAL backend] implementation 2nd patch" into main
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r-- | libs/gui/LayerState.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index 422c57bc87..4b531345b0 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -664,6 +664,10 @@ void layer_state_t::merge(const layer_state_t& other) { what |= eShadowRadiusChanged; shadowRadius = other.shadowRadius; } + if (other.what & eLutsChanged) { + what |= eLutsChanged; + luts = other.luts; + } if (other.what & eDefaultFrameRateCompatibilityChanged) { what |= eDefaultFrameRateCompatibilityChanged; defaultFrameRateCompatibility = other.defaultFrameRateCompatibility; @@ -821,6 +825,8 @@ uint64_t layer_state_t::diff(const layer_state_t& other) const { CHECK_DIFF(diff, eColorSpaceAgnosticChanged, other, colorSpaceAgnostic); CHECK_DIFF(diff, eDimmingEnabledChanged, other, dimmingEnabled); if (other.what & eBufferReleaseChannelChanged) diff |= eBufferReleaseChannelChanged; + if (other.what & eLutsChanged) diff |= eLutsChanged; + return diff; } |