[graphite] Default to approx fit textures for layers/filters Chrome switched to setting this define explicitly in https://chromium-review.googlesource.com/c/chromium/src/+/5527566 so we can make it the default now and then remove the define in Chrome. Bug: b/323886653 Change-Id: If2b381e7fe298d5fa72b68ad08558fe788bf7971 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/853099 Commit-Queue: Michael Ludwig <michaelludwig@google.com> Reviewed-by: James Godfrey-Kittle <jamesgk@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/graphite/Device.cpp b/src/gpu/graphite/Device.cpp index 1f99008..809b03c 100644 --- a/src/gpu/graphite/Device.cpp +++ b/src/gpu/graphite/Device.cpp
@@ -394,11 +394,7 @@ info.fInfo, skgpu::Budgeted::kYes, Mipmapped::kNo, -#if defined(GRAPHITE_USE_APPROX_FIT_FOR_FILTERS) SkBackingFit::kApprox, -#else - SkBackingFit::kExact, -#endif props, initialLoadOp, "ChildDevice");
diff --git a/src/gpu/graphite/TextureUtils.cpp b/src/gpu/graphite/TextureUtils.cpp index ca439cc..fcd6c57 100644 --- a/src/gpu/graphite/TextureUtils.cpp +++ b/src/gpu/graphite/TextureUtils.cpp
@@ -120,11 +120,7 @@ outII, Budgeted::kYes, Mipmapped::kNo, -#if defined(GRAPHITE_USE_APPROX_FIT_FOR_FILTERS) SkBackingFit::kApprox, -#else - SkBackingFit::kExact, -#endif outProps, LoadOp::kDiscard, "EvalBlurTexture"); @@ -884,11 +880,7 @@ imageInfo, skgpu::Budgeted::kYes, skgpu::Mipmapped::kNo, -#if defined(GRAPHITE_USE_APPROX_FIT_FOR_FILTERS) SkBackingFit::kApprox, -#else - SkBackingFit::kExact, -#endif props ? *props : this->surfaceProps(), skgpu::graphite::LoadOp::kDiscard, "ImageFilterResult");