diff options
| author | 2018-09-12 16:34:49 -0700 | |
|---|---|---|
| committer | 2018-09-12 16:34:49 -0700 | |
| commit | 217d8e69dcdb217b331fa46e3650924e774a5ac7 (patch) | |
| tree | c257c76a95f695965f7b7add71e78ff8de17ee88 /libs/gui/LayerState.cpp | |
| parent | f7c32f3f5caa6a2aee3ad70b794de8a804ebaed9 (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.cpp | 8 |
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); } } |