aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ImageFilterTest.cpp
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2014-06-25 14:39:05 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-25 14:39:06 -0700
commit7bf106847304840526a3e722b5ff5ce7322a2826 (patch)
tree281f0b6c33d80f62e48acccb5e40cd92a1bd9023 /tests/ImageFilterTest.cpp
parentf372321de3d4183de5b9ca436e677e471e358f31 (diff)
Remove SkBicubicImageFilter, and all related tests.
Now that we have SkResizeImageFilter, and the bicubic resizing is part of skia proper, there's no need for a specialized image filter. BUG=skia: R=bsalomon@google.com Author: senorblanco@chromium.org Review URL: https://codereview.chromium.org/357793002
Diffstat (limited to 'tests/ImageFilterTest.cpp')
-rw-r--r--tests/ImageFilterTest.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp
index 3a38eea483..d3471ad019 100644
--- a/tests/ImageFilterTest.cpp
+++ b/tests/ImageFilterTest.cpp
@@ -5,7 +5,6 @@
* found in the LICENSE file.
*/
-#include "SkBicubicImageFilter.h"
#include "SkBitmap.h"
#include "SkBitmapDevice.h"
#include "SkBitmapSource.h"
@@ -184,22 +183,6 @@ DEF_TEST(ImageFilter, reporter) {
SkIntToScalar(kBitmapSize));
canvas.drawRect(r, paint);
}
-
- {
- // This tests for scale bringing width to 0
- SkSize scale = SkSize::Make(-0.001f, SK_Scalar1);
- SkAutoTUnref<SkImageFilter> bmSrc(SkBitmapSource::Create(bitmap));
- SkAutoTUnref<SkBicubicImageFilter> bicubic(
- SkBicubicImageFilter::CreateMitchell(scale, bmSrc));
- SkBitmapDevice device(bitmap);
- SkDeviceImageFilterProxy proxy(&device);
- SkIPoint loc = SkIPoint::Make(0, 0);
- // An empty input should early return and return false
- SkAutoTUnref<SkImageFilter::Cache> cache(SkImageFilter::Cache::Create(2));
- SkImageFilter::Context ctx(SkMatrix::I(), SkIRect::MakeEmpty(), cache.get());
- REPORTER_ASSERT(reporter,
- !bicubic->filterImage(&proxy, bitmap, ctx, &result, &loc));
- }
}
}