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

Commit dda1fa34 authored by radhakrishna's avatar radhakrishna Committed by Gerrit - the friendly Code Review server
Browse files

sf: Make sure HWC_BLENDING_NONE is set for opaque layer

Before configuring the layers to HWC, make sure
HWC_BLENDING_NONE is set if the layer is opaque.

Change-Id: Ie84aa9d93e98a244692a0cffc2de653a9079f8b4
parent b801c8ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -477,7 +477,7 @@ void Layer::setGeometry(

    // this gives us only the "orientation" component of the transform
    const State& s(getDrawingState());
    if (!isOpaque(s) || s.alpha != 0xFF) {
    if (!isOpaque(s)) {
        layer.setBlending(mPremultipliedAlpha ?
                HWC_BLENDING_PREMULT :
                HWC_BLENDING_COVERAGE);