Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 217d8e69 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

SF: Fix incorrect LayerState logs

Bug: 115559277
Test: logcat
Change-Id: If924c60298a0d8fc433d45cdb71d229b57227385
parent f7c32f3f
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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);
    }
}