Index: bench/BlurBench.cpp |
diff --git a/bench/BlurBench.cpp b/bench/BlurBench.cpp |
index e7811d643d0ecde4b8d016566de6488f64a541f4..ae31804deb4d0f6fa92b87c449e493c223c10dbb 100644 |
--- a/bench/BlurBench.cpp |
+++ b/bench/BlurBench.cpp |
@@ -28,12 +28,12 @@ static const char* gStyleName[] = { |
class BlurBench : public SkBenchmark { |
SkScalar fRadius; |
- SkBlurMaskFilter::BlurStyle fStyle; |
- uint32_t fFlags; |
+ SkBlurStyle fStyle; |
+ uint32_t fFlags; |
SkString fName; |
public: |
- BlurBench(SkScalar rad, SkBlurMaskFilter::BlurStyle bs, uint32_t flags = 0) { |
+ BlurBench(SkScalar rad, SkBlurStyle bs, uint32_t flags = 0) { |
fRadius = rad; |
fStyle = bs; |
fFlags = flags; |
@@ -78,32 +78,32 @@ private: |
typedef SkBenchmark INHERITED; |
}; |
-DEF_BENCH(return new BlurBench(SMALL, SkBlurMaskFilter::kNormal_BlurStyle);) |
-DEF_BENCH(return new BlurBench(SMALL, SkBlurMaskFilter::kSolid_BlurStyle);) |
-DEF_BENCH(return new BlurBench(SMALL, SkBlurMaskFilter::kOuter_BlurStyle);) |
-DEF_BENCH(return new BlurBench(SMALL, SkBlurMaskFilter::kInner_BlurStyle);) |
+DEF_BENCH(return new BlurBench(SMALL, kNormal_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(SMALL, kSolid_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(SMALL, kOuter_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(SMALL, kInner_SkBlurStyle);) |
-DEF_BENCH(return new BlurBench(BIG, SkBlurMaskFilter::kNormal_BlurStyle);) |
-DEF_BENCH(return new BlurBench(BIG, SkBlurMaskFilter::kSolid_BlurStyle);) |
-DEF_BENCH(return new BlurBench(BIG, SkBlurMaskFilter::kOuter_BlurStyle);) |
-DEF_BENCH(return new BlurBench(BIG, SkBlurMaskFilter::kInner_BlurStyle);) |
+DEF_BENCH(return new BlurBench(BIG, kNormal_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(BIG, kSolid_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(BIG, kOuter_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(BIG, kInner_SkBlurStyle);) |
-DEF_BENCH(return new BlurBench(REALBIG, SkBlurMaskFilter::kNormal_BlurStyle);) |
-DEF_BENCH(return new BlurBench(REALBIG, SkBlurMaskFilter::kSolid_BlurStyle);) |
-DEF_BENCH(return new BlurBench(REALBIG, SkBlurMaskFilter::kOuter_BlurStyle);) |
-DEF_BENCH(return new BlurBench(REALBIG, SkBlurMaskFilter::kInner_BlurStyle);) |
+DEF_BENCH(return new BlurBench(REALBIG, kNormal_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(REALBIG, kSolid_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(REALBIG, kOuter_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(REALBIG, kInner_SkBlurStyle);) |
-DEF_BENCH(return new BlurBench(REAL, SkBlurMaskFilter::kNormal_BlurStyle);) |
-DEF_BENCH(return new BlurBench(REAL, SkBlurMaskFilter::kSolid_BlurStyle);) |
-DEF_BENCH(return new BlurBench(REAL, SkBlurMaskFilter::kOuter_BlurStyle);) |
-DEF_BENCH(return new BlurBench(REAL, SkBlurMaskFilter::kInner_BlurStyle);) |
+DEF_BENCH(return new BlurBench(REAL, kNormal_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(REAL, kSolid_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(REAL, kOuter_SkBlurStyle);) |
+DEF_BENCH(return new BlurBench(REAL, kInner_SkBlurStyle);) |
-DEF_BENCH(return new BlurBench(SMALL, SkBlurMaskFilter::kNormal_BlurStyle, SkBlurMaskFilter::kHighQuality_BlurFlag);) |
+DEF_BENCH(return new BlurBench(SMALL, kNormal_SkBlurStyle, SkBlurMaskFilter::kHighQuality_BlurFlag);) |
-DEF_BENCH(return new BlurBench(BIG, SkBlurMaskFilter::kNormal_BlurStyle, SkBlurMaskFilter::kHighQuality_BlurFlag);) |
+DEF_BENCH(return new BlurBench(BIG, kNormal_SkBlurStyle, SkBlurMaskFilter::kHighQuality_BlurFlag);) |
-DEF_BENCH(return new BlurBench(REALBIG, SkBlurMaskFilter::kNormal_BlurStyle, SkBlurMaskFilter::kHighQuality_BlurFlag);) |
+DEF_BENCH(return new BlurBench(REALBIG, kNormal_SkBlurStyle, SkBlurMaskFilter::kHighQuality_BlurFlag);) |
-DEF_BENCH(return new BlurBench(REAL, SkBlurMaskFilter::kNormal_BlurStyle, SkBlurMaskFilter::kHighQuality_BlurFlag);) |
+DEF_BENCH(return new BlurBench(REAL, kNormal_SkBlurStyle, SkBlurMaskFilter::kHighQuality_BlurFlag);) |
-DEF_BENCH(return new BlurBench(0, SkBlurMaskFilter::kNormal_BlurStyle);) |
+DEF_BENCH(return new BlurBench(0, kNormal_SkBlurStyle);) |