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

Commit 84fbba9c authored by Robert Phillips's avatar Robert Phillips
Browse files

Create a Protected RenderTarget when blurring a Protected Image

Test: manual - testing on Netflix app

Bug: 242266174
Change-Id: I03c8f6159fdf6885bb55c1a14652234d4f3525e6
parent 18f8c58c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -111,9 +111,9 @@ sk_sp<SkImage> KawaseBlurFilter::generate(GrRecordingContext* context,
    constexpr int kSampleCount = 1;
    constexpr bool kMipmapped = false;
    constexpr SkSurfaceProps* kProps = nullptr;
    sk_sp<SkSurface> surface =
            SkSurfaces::RenderTarget(context, skgpu::Budgeted::kYes, scaledInfo, kSampleCount,
                                     kTopLeft_GrSurfaceOrigin, kProps, kMipmapped);
    sk_sp<SkSurface> surface = SkSurfaces::RenderTarget(context, skgpu::Budgeted::kYes, scaledInfo,
                                                        kSampleCount, kTopLeft_GrSurfaceOrigin,
                                                        kProps, kMipmapped, input->isProtected());
    LOG_ALWAYS_FATAL_IF(!surface, "%s: Failed to create surface for blurring!", __func__);
    sk_sp<SkImage> tmpBlur = makeImage(surface.get(), &blurBuilder);