From 7168ecc363f4f205c81c777e44cc6659f36e2821 Mon Sep 17 00:00:00 2001 From: "senorblanco@chromium.org" Date: Thu, 25 Jul 2013 18:08:13 +0000 Subject: Transpose the samples in imagefilterscropped, and add a 1x1 blur. The latter exercises a different path in the GPU backend, and the former is because my tiny brain gets confused between the results of this test and imagefiltersbase. R=reed@google.com BUG= Review URL: https://codereview.chromium.org/20315002 git-svn-id: http://skia.googlecode.com/svn/trunk@10366 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/imagefilterscropped.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gm/imagefilterscropped.cpp') diff --git a/gm/imagefilterscropped.cpp b/gm/imagefilterscropped.cpp index f6045f61a4..b21131c362 100644 --- a/gm/imagefilterscropped.cpp +++ b/gm/imagefilterscropped.cpp @@ -107,7 +107,7 @@ protected: return SkString("imagefilterscropped"); } - virtual SkISize onISize() { return SkISize::Make(700, 460); } + virtual SkISize onISize() { return SkISize::Make(400, 640); } void draw_frame(SkCanvas* canvas, const SkRect& r) { SkPaint paint; @@ -137,6 +137,7 @@ protected: SkImageFilter* filters[] = { NULL, SkColorFilterImageFilter::Create(cf, NULL, &cropRect), + new SkBlurImageFilter(1.0f, 1.0f, NULL, &cropRect), new SkBlurImageFilter(8.0f, 0.0f, NULL, &cropRect), new SkBlurImageFilter(0.0f, 8.0f, NULL, &cropRect), new SkBlurImageFilter(8.0f, 8.0f, NULL, &cropRect), @@ -151,9 +152,9 @@ protected: SkScalar DY = r.height() + MARGIN; canvas->translate(MARGIN, MARGIN); - for (size_t i = 0; i < SK_ARRAY_COUNT(filters); ++i) { + for (size_t j = 0; j < SK_ARRAY_COUNT(drawProc); ++j) { canvas->save(); - for (size_t j = 0; j < SK_ARRAY_COUNT(drawProc); ++j) { + for (size_t i = 0; i < SK_ARRAY_COUNT(filters); ++i) { drawProc[j](canvas, r, filters[i]); canvas->translate(0, DY); } -- cgit v1.2.3