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

Commit d4a833aa authored by Derek Sollenberger's avatar Derek Sollenberger Committed by Automerger Merge Worker
Browse files

Merge "Eliminate offscreen buffer for some blurs." into sc-dev am: 2cdc76b8

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/13700275

Change-Id: I438f28236bc0f20e8e0779f890fc53049432e257
parents f163b5e5 2cdc76b8
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -651,9 +651,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) {