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 "SkTArray.h" | 9 #include "SkTArray.h" |
10 #include "SkMatrix.h" | 10 #include "SkMatrix.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 { | 81 { |
82 // AA with blur | 82 // AA with blur |
83 SkPaint p; | 83 SkPaint p; |
84 p.setColor(SK_ColorWHITE); | 84 p.setColor(SK_ColorWHITE); |
85 p.setAntiAlias(true); | 85 p.setAntiAlias(true); |
86 SkBlurDrawLooper* shadowLooper = | 86 SkBlurDrawLooper* shadowLooper = |
87 new SkBlurDrawLooper (SkIntToScalar(10), SkIntToScalar(5), | 87 new SkBlurDrawLooper (SkIntToScalar(10), SkIntToScalar(5), |
88 SkIntToScalar(10), SK_ColorWHITE, | 88 SkIntToScalar(10), SK_ColorWHITE, |
89 SkBlurDrawLooper::kIgnoreTransform_BlurFla
g | | 89 SkBlurDrawLooper::kIgnoreTransform_BlurFla
g | |
90 SkBlurDrawLooper::kOverrideColor_BlurFlag
| | 90 SkBlurDrawLooper::kOverrideColor_BlurFlag
| |
91 SkBlurDrawLooper::kHighQuality_BlurFlag ); | 91 SkBlurDrawLooper::kHighQuality_BlurFlag); |
92 SkAutoUnref aurL0(shadowLooper); | 92 SkAutoUnref aurL0(shadowLooper); |
93 p.setLooper(shadowLooper); | 93 p.setLooper(shadowLooper); |
94 fPaints.push_back(p); | 94 fPaints.push_back(p); |
95 } | 95 } |
96 | 96 |
97 { | 97 { |
98 // AA with stroke style | 98 // AA with stroke style |
99 SkPaint p; | 99 SkPaint p; |
100 p.setColor(SK_ColorWHITE); | 100 p.setColor(SK_ColorWHITE); |
101 p.setAntiAlias(true); | 101 p.setAntiAlias(true); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 248 |
249 typedef GM INHERITED; | 249 typedef GM INHERITED; |
250 }; | 250 }; |
251 | 251 |
252 ////////////////////////////////////////////////////////////////////////////// | 252 ////////////////////////////////////////////////////////////////////////////// |
253 | 253 |
254 static GM* MyFactory(void*) { return new RectsGM; } | 254 static GM* MyFactory(void*) { return new RectsGM; } |
255 static GMRegistry reg(MyFactory); | 255 static GMRegistry reg(MyFactory); |
256 | 256 |
257 } | 257 } |
OLD | NEW |