Remove dead matrixfilter factory

Bug: skia:7650
Change-Id: I340d3072f23fc9ca275ac4b0f00919938b39b5dc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/387516
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
Mike Reed 2021-03-21 09:05:04 -04:00 committed by Skia Commit-Bot
parent 1a4fae1a5f
commit 501ca219f6
3 changed files with 0 additions and 17 deletions

View File

@ -8,7 +8,6 @@
#ifndef SkImageFilter_DEFINED
#define SkImageFilter_DEFINED
#include "include/core/SkFilterQuality.h"
#include "include/core/SkFlattenable.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkRect.h"

View File

@ -10,7 +10,6 @@
#include "include/core/SkBlendMode.h"
#include "include/core/SkColor.h"
#include "include/core/SkFilterQuality.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageFilter.h"
#include "include/core/SkPicture.h"
@ -263,12 +262,6 @@ public:
static sk_sp<SkImageFilter> MatrixTransform(const SkMatrix& matrix,
const SkSamplingOptions& sampling,
sk_sp<SkImageFilter> input);
#ifdef SK_SUPPORT_LEGACY_MATRIX_IMAGEFILTER
// DEPRECATED
static sk_sp<SkImageFilter> MatrixTransform(const SkMatrix& matrix,
SkFilterQuality filterQuality,
sk_sp<SkImageFilter> input);
#endif
/**
* Create a filter that merges the 'count' filters together by drawing their results in order

View File

@ -39,15 +39,6 @@ sk_sp<SkImageFilter> SkImageFilters::MatrixTransform(
return SkMatrixImageFilter::Make(transform, sampling, std::move(input));
}
#ifdef SK_SUPPORT_LEGACY_MATRIX_IMAGEFILTER
sk_sp<SkImageFilter> SkImageFilters::MatrixTransform(
const SkMatrix& transform, SkFilterQuality filterQuality, sk_sp<SkImageFilter> input) {
auto sampling = SkSamplingOptions(filterQuality,
SkSamplingOptions::kMedium_asMipmapLinear);
return SkMatrixImageFilter::Make(transform, sampling, std::move(input));
}
#endif
sk_sp<SkFlattenable> SkMatrixImageFilter::CreateProc(SkReadBuffer& buffer) {
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1);
SkMatrix matrix;