summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Arthur Hung <arthurhung@google.com> 2022-03-21 14:43:18 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-03-21 14:43:18 +0000
commitf4b49765605223dba7b804c351a98a3c6bb676f9 (patch)
treee038d12ff5cecb59503672e9beab5fa24fbaa1f5 /libs/gui/LayerState.cpp
parent4cfcc51b866fbd8dc8f2946f814770c00252a688 (diff)
parent91b346a484de18fa4bb3809629fb23060fe74625 (diff)
Merge "Merge ColorSpaceAgnosticChanged property in a transactioin" into tm-dev
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp
index 338ff1114f..49b669eb3f 100644
--- a/libs/gui/LayerState.cpp
+++ b/libs/gui/LayerState.cpp
@@ -594,6 +594,10 @@ void layer_state_t::merge(const layer_state_t& other) {
what |= eColorChanged;
color = other.color;
}
+ if (other.what & eColorSpaceAgnosticChanged) {
+ what |= eColorSpaceAgnosticChanged;
+ colorSpaceAgnostic = other.colorSpaceAgnostic;
+ }
if ((other.what & what) != other.what) {
ALOGE("Unmerged SurfaceComposer Transaction properties. LayerState::merge needs updating? "
"other.what=0x%" PRIX64 " what=0x%" PRIX64 " unmerged flags=0x%" PRIX64,