diff options
author | 2013-02-04 22:57:21 +0000 | |
---|---|---|
committer | 2013-02-04 22:57:21 +0000 | |
commit | 377c14a1e648f4427bd11474fad8ac264d98aff2 (patch) | |
tree | 57451f699ed100c774bc37644aee2e124001d72e /src | |
parent | 3d5b998bd7415d23469360425b0d5ddbf3f284cc (diff) |
Nuke SkSingleInputImageFilter. 99% of its functionality was refactored into SkImageFilterUtils in https://code.google.com/p/skia/source/detail?r=7467, so it has outlived its usefulness.
Review URL: https://codereview.appspot.com/7277055
git-svn-id: http://skia.googlecode.com/svn/trunk@7563 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/effects/SkBicubicImageFilter.cpp | 2 | ||||
-rw-r--r-- | src/effects/SkBlurImageFilter.cpp | 2 | ||||
-rwxr-xr-x | src/effects/SkColorFilterImageFilter.cpp | 2 | ||||
-rw-r--r-- | src/effects/SkMatrixConvolutionImageFilter.cpp | 4 | ||||
-rw-r--r-- | src/effects/SkMorphologyImageFilter.cpp | 4 | ||||
-rw-r--r-- | src/effects/SkOffsetImageFilter.cpp | 2 | ||||
-rw-r--r-- | src/effects/SkSingleInputImageFilter.cpp | 32 |
7 files changed, 8 insertions, 40 deletions
diff --git a/src/effects/SkBicubicImageFilter.cpp b/src/effects/SkBicubicImageFilter.cpp index 0670c4d3dc..1d8de0743d 100644 --- a/src/effects/SkBicubicImageFilter.cpp +++ b/src/effects/SkBicubicImageFilter.cpp @@ -78,7 +78,7 @@ bool SkBicubicImageFilter::onFilterImage(Proxy* proxy, const SkMatrix& matrix, SkBitmap* result, SkIPoint* loc) { - SkBitmap src = this->getInputResult(proxy, source, matrix, loc); + SkBitmap src = this->getInputResult(0, proxy, source, matrix, loc); if (src.config() != SkBitmap::kARGB_8888_Config) { return false; } diff --git a/src/effects/SkBlurImageFilter.cpp b/src/effects/SkBlurImageFilter.cpp index 78359d2130..4885070264 100644 --- a/src/effects/SkBlurImageFilter.cpp +++ b/src/effects/SkBlurImageFilter.cpp @@ -137,7 +137,7 @@ static void getBox3Params(SkScalar s, int *kernelSize, int* kernelSize3, int *lo bool SkBlurImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& source, const SkMatrix& ctm, SkBitmap* dst, SkIPoint* offset) { - SkBitmap src = this->getInputResult(proxy, source, ctm, offset); + SkBitmap src = this->getInputResult(0, proxy, source, ctm, offset); if (src.config() != SkBitmap::kARGB_8888_Config) { return false; } diff --git a/src/effects/SkColorFilterImageFilter.cpp b/src/effects/SkColorFilterImageFilter.cpp index 369f782d18..549a6867df 100755 --- a/src/effects/SkColorFilterImageFilter.cpp +++ b/src/effects/SkColorFilterImageFilter.cpp @@ -97,7 +97,7 @@ bool SkColorFilterImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& sourc const SkMatrix& matrix, SkBitmap* result, SkIPoint* loc) { - SkBitmap src = this->getInputResult(proxy, source, matrix, loc); + SkBitmap src = this->getInputResult(0, proxy, source, matrix, loc); SkAutoTUnref<SkDevice> device(proxy->createDevice(src.width(), src.height())); SkCanvas canvas(device.get()); SkPaint paint; diff --git a/src/effects/SkMatrixConvolutionImageFilter.cpp b/src/effects/SkMatrixConvolutionImageFilter.cpp index 5a97ec4fae..97af7ad737 100644 --- a/src/effects/SkMatrixConvolutionImageFilter.cpp +++ b/src/effects/SkMatrixConvolutionImageFilter.cpp @@ -173,7 +173,7 @@ void SkMatrixConvolutionImageFilter::filterBorderPixels(const SkBitmap& src, SkB } } -// FIXME: This should be refactored to SkSingleInputImageFilter for +// FIXME: This should be refactored to SkImageFilterUtils for // use by other filters. For now, we assume the input is always // premultiplied and unpremultiply it static SkBitmap unpremultiplyBitmap(const SkBitmap& src) @@ -203,7 +203,7 @@ bool SkMatrixConvolutionImageFilter::onFilterImage(Proxy* proxy, const SkMatrix& matrix, SkBitmap* result, SkIPoint* loc) { - SkBitmap src = this->getInputResult(proxy, source, matrix, loc); + SkBitmap src = this->getInputResult(0, proxy, source, matrix, loc); if (src.config() != SkBitmap::kARGB_8888_Config) { return false; } diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp index 09d79265ca..801003430d 100644 --- a/src/effects/SkMorphologyImageFilter.cpp +++ b/src/effects/SkMorphologyImageFilter.cpp @@ -136,7 +136,7 @@ static void dilateY(const SkBitmap& src, SkBitmap* dst, int radiusY) bool SkErodeImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& source, const SkMatrix& ctm, SkBitmap* dst, SkIPoint* offset) { - SkBitmap src = this->getInputResult(proxy, source, ctm, offset); + SkBitmap src = this->getInputResult(0, proxy, source, ctm, offset); if (src.config() != SkBitmap::kARGB_8888_Config) { return false; } @@ -181,7 +181,7 @@ bool SkErodeImageFilter::onFilterImage(Proxy* proxy, bool SkDilateImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& source, const SkMatrix& ctm, SkBitmap* dst, SkIPoint* offset) { - SkBitmap src = this->getInputResult(proxy, source, ctm, offset); + SkBitmap src = this->getInputResult(0, proxy, source, ctm, offset); if (src.config() != SkBitmap::kARGB_8888_Config) { return false; } diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp index fb39aa8e41..2a4f71c0b2 100644 --- a/src/effects/SkOffsetImageFilter.cpp +++ b/src/effects/SkOffsetImageFilter.cpp @@ -14,7 +14,7 @@ bool SkOffsetImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& source, const SkMatrix& matrix, SkBitmap* result, SkIPoint* loc) { - SkBitmap src = this->getInputResult(proxy, source, matrix, loc); + SkBitmap src = this->getInputResult(0, proxy, source, matrix, loc); SkVector vec; matrix.mapVectors(&vec, &fOffset, 1); diff --git a/src/effects/SkSingleInputImageFilter.cpp b/src/effects/SkSingleInputImageFilter.cpp deleted file mode 100644 index 9e45c35055..0000000000 --- a/src/effects/SkSingleInputImageFilter.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2012 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "SkSingleInputImageFilter.h" -#include "SkBitmap.h" -#include "SkFlattenableBuffers.h" -#include "SkMatrix.h" - -SkSingleInputImageFilter::SkSingleInputImageFilter(SkImageFilter* input) : INHERITED(input) { -} - -SkSingleInputImageFilter::~SkSingleInputImageFilter() { -} - -SkSingleInputImageFilter::SkSingleInputImageFilter(SkFlattenableReadBuffer& rb) - : INHERITED(rb) { -} - -void SkSingleInputImageFilter::flatten(SkFlattenableWriteBuffer& wb) const { - this->INHERITED::flatten(wb); -} - -SkBitmap SkSingleInputImageFilter::getInputResult(Proxy* proxy, - const SkBitmap& src, - const SkMatrix& ctm, - SkIPoint* offset) { - return this->INHERITED::getInputResult(0, proxy, src, ctm, offset); -} |