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

Commit 4527b919 authored by Mathias Agopian's avatar Mathias Agopian Committed by The Android Automerger
Browse files

only disable hwc when alpha < 1.0

Bug: 8149181
Change-Id: Ib3c7a44f04871e020adceeae16d002141ac758d4
parent 1c09c92f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -808,9 +808,11 @@ public:
        if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_2)) {
            getLayer()->planeAlpha = alpha;
        } else {
            if (alpha < 0xFF) {
                getLayer()->flags |= HWC_SKIP_LAYER;
            }
        }
    }
    virtual void setDefaultState() {
        hwc_layer_1_t* const l = getLayer();
        l->compositionType = HWC_FRAMEBUFFER;