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

Commit 70079e5a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[native] SkBudgeted -> skgpu::Budgeted"

parents 623fede8 4397733f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include <SkSize.h>
#include <SkString.h>
#include <SkSurface.h>
#include "include/gpu/GpuTypes.h" // from Skia
#include <log/log.h>
#include <utils/Trace.h>

@@ -44,7 +45,8 @@ sk_sp<SkImage> GaussianBlurFilter::generate(GrRecordingContext* context, const u
    // Create blur surface with the bit depth and colorspace of the original surface
    SkImageInfo scaledInfo = input->imageInfo().makeWH(std::ceil(blurRect.width() * kInputScale),
                                                       std::ceil(blurRect.height() * kInputScale));
    sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, scaledInfo);
    sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(context,
                                                           skgpu::Budgeted::kNo, scaledInfo);

    SkPaint paint;
    paint.setBlendMode(SkBlendMode::kSrc);