diff --git a/include/core/SkImage.h b/include/core/SkImage.h index 621f11ef75..635f6cfbd6 100644 --- a/include/core/SkImage.h +++ b/include/core/SkImage.h @@ -1249,12 +1249,6 @@ public: const SkIRect& clipBounds, SkIRect* outSubset, SkIPoint* offset) const; -#ifdef SK_IMAGE_MAKE_WITH_FILTER_LEGACY_API - sk_sp makeWithFilter(const SkImageFilter* filter, const SkIRect& subset, - const SkIRect& clipBounds, SkIRect* outSubset, - SkIPoint* offset) const; -#endif - /** Defines a callback function, taking one parameter of type GrBackendTexture with no return value. Function is called when back-end texture is to be released. */ diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp index 5abd4aceb3..e89df7d213 100644 --- a/src/image/SkImage.cpp +++ b/src/image/SkImage.cpp @@ -410,18 +410,6 @@ sk_sp SkImage::makeWithFilter(GrRecordingContext* rContext, const SkIma return result->asImage(); } -#ifdef SK_IMAGE_MAKE_WITH_FILTER_LEGACY_API -sk_sp SkImage::makeWithFilter(const SkImageFilter* filter, const SkIRect& subset, - const SkIRect& clipBounds, SkIRect* outSubset, - SkIPoint* offset) const { - GrRecordingContext* rContext = nullptr; -#if SK_SUPPORT_GPU - rContext = as_IB(this)->context(); -#endif - return this->makeWithFilter(rContext, filter, subset, clipBounds, outSubset, offset); -} -#endif - bool SkImage::isLazyGenerated() const { return as_IB(this)->onIsLazyGenerated(); }