summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2021-07-14 10:53:04 -0700
committer Vishnu Nair <vishnun@google.com> 2021-07-14 17:55:47 +0000
commit0e8168799b93bdce8bc67c97885e7d2dac32a1b4 (patch)
tree9e5b1a982909c428c57d48ab64935f1c76c6f085 /libs/gui/LayerState.cpp
parent27039bdf16e77721028820c2b48671ecf68de7d9 (diff)
Add missing flag to transaction merge
Test: presubmit Change-Id: Idd2195d627f3aece845a704c16ca5f8c7f339da3
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp
index 17d614eab2..d73470dd0b 100644
--- a/libs/gui/LayerState.cpp
+++ b/libs/gui/LayerState.cpp
@@ -553,10 +553,13 @@ void layer_state_t::merge(const layer_state_t& other) {
what |= eDestinationFrameChanged;
destinationFrame = other.destinationFrame;
}
+ if (other.what & eProducerDisconnect) {
+ what |= eProducerDisconnect;
+ }
if ((other.what & what) != other.what) {
ALOGE("Unmerged SurfaceComposer Transaction properties. LayerState::merge needs updating? "
- "other.what=0x%" PRIu64 " what=0x%" PRIu64,
- other.what, what);
+ "other.what=0x%" PRIX64 " what=0x%" PRIX64 " unmerged flags=0x%" PRIX64,
+ other.what, what, (other.what & what) ^ other.what);
}
}