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

Commit 91b346a4 authored by Arthur Hung's avatar Arthur Hung
Browse files

Merge ColorSpaceAgnosticChanged property in a transactioin

Make sure ColorSpaceAgnosticChanged could be merged.

Test: manual
Fixes: 224493490
Change-Id: Ie47968698c3500ab3c1ad7a37a84b5dbe82eac95
parent e1c6809d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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,