summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2018-09-12 16:34:49 -0700
committer Vishnu Nair <vishnun@google.com> 2018-09-12 16:34:49 -0700
commit217d8e69dcdb217b331fa46e3650924e774a5ac7 (patch)
treec257c76a95f695965f7b7add71e78ff8de17ee88 /libs/gui/LayerState.cpp
parentf7c32f3f5caa6a2aee3ad70b794de8a804ebaed9 (diff)
SF: Fix incorrect LayerState logs
Bug: 115559277 Test: logcat Change-Id: If924c60298a0d8fc433d45cdb71d229b57227385
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp
index deb8ea8f7e..5a8d8dbc81 100644
--- a/libs/gui/LayerState.cpp
+++ b/libs/gui/LayerState.cpp
@@ -14,6 +14,8 @@
* limitations under the License.
*/
+#define LOG_TAG "LayerState"
+
#include <utils/Errors.h>
#include <binder/Parcel.h>
#include <gui/ISurfaceComposerClient.h>
@@ -313,8 +315,10 @@ void layer_state_t::merge(const layer_state_t& other) {
sidebandStream = other.sidebandStream;
}
- if (other.what != what) {
- ALOGE("Unmerged SurfaceComposer Transaction properties. LayerState::merge needs updating?");
+ if ((other.what & what) != other.what) {
+ ALOGE("Unmerged SurfaceComposer Transaction properties. LayerState::merge needs updating? "
+ "other.what=0x%X what=0x%X",
+ other.what, what);
}
}