OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SkBlurImageFilter.h" | 9 #include "SkBlurImageFilter.h" |
10 #include "SkRandom.h" | 10 #include "SkRandom.h" |
11 | 11 |
12 // TODO deprecate imageblur | 12 // TODO deprecate imageblur |
13 | 13 |
14 #define WIDTH 500 | 14 #define WIDTH 500 |
15 #define HEIGHT 500 | 15 #define HEIGHT 500 |
16 | 16 |
17 static const float kBlurSigmas[] = { | 17 constexpr float kBlurSigmas[] = { |
18 0.0, 0.3f, 0.5f, 2.0f, 32.0f, 80.0f }; | 18 0.0, 0.3f, 0.5f, 2.0f, 32.0f, 80.0f }; |
19 | 19 |
20 const char* kTestStrings[] = { | 20 const char* kTestStrings[] = { |
21 "The quick`~", | 21 "The quick`~", |
22 "brown fox[]", | 22 "brown fox[]", |
23 "jumped over", | 23 "jumped over", |
24 "the lazy@#$", | 24 "the lazy@#$", |
25 "dog.{}!%^&", | 25 "dog.{}!%^&", |
26 "*()+=-\\'\"/", | 26 "*()+=-\\'\"/", |
27 }; | 27 }; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 SkString fName; | 84 SkString fName; |
85 | 85 |
86 typedef GM INHERITED; | 86 typedef GM INHERITED; |
87 }; | 87 }; |
88 | 88 |
89 ////////////////////////////////////////////////////////////////////////////// | 89 ////////////////////////////////////////////////////////////////////////////// |
90 | 90 |
91 DEF_GM(return new BlurImageFilter;) | 91 DEF_GM(return new BlurImageFilter;) |
92 | 92 |
93 } | 93 } |
OLD | NEW |