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

Commit 3134ec3f authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

Eliminate offscreen buffer for some blurs.

For blurs that don't need to crossfade with the original input
we should not need to render the initial input into an offscreen
buffer for sampling.

Test: `atest renderengine_test` and tracing SysUI blurs
Bug: 176903027
Change-Id: I3c6b2782b6d20c260af0077877ebf4720b0e54cc
parent ec169127
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -631,9 +631,8 @@ status_t SkiaGLRenderEngine::drawLayers(const DisplaySettings& display,
    if (mBlurFilter) {
        bool requiresCompositionLayer = false;
        for (const auto& layer : layers) {
            if (layer->backgroundBlurRadius > 0) {
                // when skbug.com/11208 and b/176903027 are resolved we can add the additional
                // restriction for layer->backgroundBlurRadius < BlurFilter::kMaxCrossFadeRadius
            if (layer->backgroundBlurRadius > 0 &&
                layer->backgroundBlurRadius < BlurFilter::kMaxCrossFadeRadius) {
                requiresCompositionLayer = true;
            }
            for (auto region : layer->blurRegions) {