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

Unified Diff: gm/bigblurs.cpp

Issue 253833002: move common blur types into central header (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 6 years, 8 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 | « bench/RectoriBench.cpp ('k') | gm/bitmapmatrix.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bigblurs.cpp
diff --git a/gm/bigblurs.cpp b/gm/bigblurs.cpp
index b885f4fe7f64cf6e6dbfddca9dcd8bc1b0c5a5c4..788111497a857c4224b89b65eebce62b9495bad8 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;
};
« no previous file with comments | « bench/RectoriBench.cpp ('k') | gm/bitmapmatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698