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

Commit 1bdedb30 authored by Lyn Han's avatar Lyn Han
Browse files

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

This reverts commit 0559ca76.

Reason for revert: DroidMonitor: Potential culprit for b/174062136 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: I7dbd7f9ff2c0abfcd2b200b35110727c143201dc
parent 0559ca76
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -678,8 +678,6 @@ 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;
@@ -826,7 +824,7 @@ void SkiaGLRenderEngine::drawBlurRegion(SkCanvas* canvas, const BlurRegion& effe
    ATRACE_CALL();

    SkPaint paint;
    paint.setAlphaf(effectRegion.alpha);
    paint.setAlpha(static_cast<int>(effectRegion.alpha * 255));
    const auto matrix = mBlurFilter->getShaderMatrix();
    paint.setShader(blurredSurface->makeImageSnapshot()->makeShader(matrix));