From e396455d2d60ddf8e625b5037254f3c09fbcdcf5 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Mon, 28 Apr 2014 16:25:35 +0000 Subject: move common blur types into central header BUG=skia: R=scroggo@google.com, djsollen@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/253833002 git-svn-id: http://skia.googlecode.com/svn/trunk@14411 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/bigblurs.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gm/bigblurs.cpp') diff --git a/gm/bigblurs.cpp b/gm/bigblurs.cpp index b885f4fe7f..788111497a 100644 --- a/gm/bigblurs.cpp +++ b/gm/bigblurs.cpp @@ -69,9 +69,8 @@ protected: int desiredX = 0, desiredY = 0; for (int i = 0; i < 2; ++i) { - for (int j = 0; j < SkBlurMaskFilter::kBlurStyleCount; ++j) { - SkMaskFilter* mf = SkBlurMaskFilter::Create((SkBlurMaskFilter::BlurStyle)j, - kSigma); + for (int j = 0; j <= kLastEnum_SkBlurStyle; ++j) { + SkMaskFilter* mf = SkBlurMaskFilter::Create((SkBlurStyle)j, kSigma); blurPaint.setMaskFilter(mf)->unref(); for (int k = 0; k < (int)SK_ARRAY_COUNT(origins); ++k) { @@ -107,7 +106,7 @@ protected: private: static const int kCloseUpSize = 64; static const int kWidth = 5 * kCloseUpSize; - static const int kHeight = 2 * SkBlurMaskFilter::kBlurStyleCount * kCloseUpSize; + static const int kHeight = 2 * (kLastEnum_SkBlurStyle + 1) * kCloseUpSize; typedef GM INHERITED; }; -- cgit v1.2.3