OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "gm.h" | 8 #include "gm.h" |
9 #include "SkBlurMask.h" | 9 #include "SkBlurMask.h" |
10 #include "SkBlurMaskFilter.h" | 10 #include "SkBlurMaskFilter.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 } | 119 } |
120 | 120 |
121 // Simpler blurred RR test cases where all the radii are the same. | 121 // Simpler blurred RR test cases where all the radii are the same. |
122 class SimpleBlurRoundRectGM : public skiagm::GM { | 122 class SimpleBlurRoundRectGM : public skiagm::GM { |
123 public: | 123 public: |
124 SimpleBlurRoundRectGM() | 124 SimpleBlurRoundRectGM() |
125 : fName("simpleblurroundrect") { | 125 : fName("simpleblurroundrect") { |
126 } | 126 } |
127 | 127 |
128 protected: | 128 protected: |
129 uint32_t onGetFlags() const SK_OVERRIDE { | |
130 return kSkipTiled_Flag; | |
131 } | |
132 | 129 |
133 SkString onShortName() SK_OVERRIDE { | 130 SkString onShortName() SK_OVERRIDE { |
134 return fName; | 131 return fName; |
135 } | 132 } |
136 | 133 |
137 SkISize onISize() SK_OVERRIDE { | 134 SkISize onISize() SK_OVERRIDE { |
138 return SkISize::Make(1000, 500); | 135 return SkISize::Make(1000, 500); |
139 } | 136 } |
140 | 137 |
141 void onDraw(SkCanvas* canvas) SK_OVERRIDE { | 138 void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // TODO(scroggo): Disabled in an attempt to rememdy | 180 // TODO(scroggo): Disabled in an attempt to rememdy |
184 // https://code.google.com/p/skia/issues/detail?id=1801 ('Win7 Test bots all fai
ling GenerateGMs: | 181 // https://code.google.com/p/skia/issues/detail?id=1801 ('Win7 Test bots all fai
ling GenerateGMs: |
185 // ran wrong number of tests') | 182 // ran wrong number of tests') |
186 //DEF_GM(return new BlurRoundRectGM(600, 5514, 6);) | 183 //DEF_GM(return new BlurRoundRectGM(600, 5514, 6);) |
187 | 184 |
188 // Rounded rect with two opposite corners with large radii, the other two | 185 // Rounded rect with two opposite corners with large radii, the other two |
189 // small. | 186 // small. |
190 DEF_GM(return new BlurRoundRectGM(100, 100);) | 187 DEF_GM(return new BlurRoundRectGM(100, 100);) |
191 | 188 |
192 DEF_GM(return new SimpleBlurRoundRectGM();) | 189 DEF_GM(return new SimpleBlurRoundRectGM();) |
OLD | NEW |