Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: tests/ImageFilterTest.cpp

Issue 357793002: Remove SkBicubicImageFilter, and all related tests. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove all expected results for now-deleted GM Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ports/SkGlobalInitialization_default.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ImageFilterTest.cpp
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp
index 3a38eea483ab396d3eb57ad81719cb49e5da0ee6..d3471ad019e46820a423b156fa3f7d8b6b176bb4 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));
- }
}
}
« no previous file with comments | « src/ports/SkGlobalInitialization_default.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698