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

Commit 1768bd22 authored by Ana Krulec's avatar Ana Krulec
Browse files

Respect LayerSettings::alpha in Skia-RE for buffer layers

Test: Manual. Open notification. Check whether the alpha of
      the shade is correct.
      Bug: 173418499

Change-Id: I66c184ec1328647311fa1e342b4f0cd3d1bb7aed
parent b7b28b2e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -677,6 +677,8 @@ status_t SkiaGLRenderEngine::drawLayers(const DisplaySettings& display,
            } else {
                paint.setShader(shader);
            }
            // Make sure to take into the account the alpha set on the layer.
            paint.setAlphaf(layer->alpha);
        } else {
            ATRACE_NAME("DrawColor");
            const auto color = layer->source.solidColor;