From 7bf106847304840526a3e722b5ff5ce7322a2826 Mon Sep 17 00:00:00 2001 From: senorblanco Date: Wed, 25 Jun 2014 14:39:05 -0700 Subject: 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 --- tests/ImageFilterTest.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'tests') 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 bmSrc(SkBitmapSource::Create(bitmap)); - SkAutoTUnref 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 cache(SkImageFilter::Cache::Create(2)); - SkImageFilter::Context ctx(SkMatrix::I(), SkIRect::MakeEmpty(), cache.get()); - REPORTER_ASSERT(reporter, - !bicubic->filterImage(&proxy, bitmap, ctx, &result, &loc)); - } } } -- cgit v1.2.3