OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Intel Inc. | 3 * Copyright 2012 Intel Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "gm.h" | 8 #include "gm.h" |
9 #include "SkTArray.h" | 9 #include "SkTArray.h" |
10 #include "SkRandom.h" | 10 #include "SkRandom.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 { | 77 { |
78 // AA with blur | 78 // AA with blur |
79 SkPaint p; | 79 SkPaint p; |
80 p.setAntiAlias(true); | 80 p.setAntiAlias(true); |
81 SkBlurDrawLooper* shadowLooper = | 81 SkBlurDrawLooper* shadowLooper = |
82 new SkBlurDrawLooper (SkIntToScalar(10), SkIntToScalar(5), | 82 new SkBlurDrawLooper (SkIntToScalar(10), SkIntToScalar(5), |
83 SkIntToScalar(10), 0xFF0000FF, | 83 SkIntToScalar(10), 0xFF0000FF, |
84 SkBlurDrawLooper::kIgnoreTransform_BlurFlag | | 84 SkBlurDrawLooper::kIgnoreTransform_BlurFlag | |
85 SkBlurDrawLooper::kOverrideColor_BlurFlag | | 85 SkBlurDrawLooper::kOverrideColor_BlurFlag | |
86 SkBlurDrawLooper::kHighQuality_BlurFlag ); | 86 SkBlurDrawLooper::kHighQuality_BlurFlag); |
87 SkAutoUnref aurL0(shadowLooper); | 87 SkAutoUnref aurL0(shadowLooper); |
88 p.setLooper(shadowLooper); | 88 p.setLooper(shadowLooper); |
89 fPaints.push_back(p); | 89 fPaints.push_back(p); |
90 } | 90 } |
91 | 91 |
92 { | 92 { |
93 // AA with stroke style | 93 // AA with stroke style |
94 SkPaint p; | 94 SkPaint p; |
95 p.setAntiAlias(true); | 95 p.setAntiAlias(true); |
96 p.setStyle(SkPaint::kStroke_Style); | 96 p.setStyle(SkPaint::kStroke_Style); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 SkTArray<SkPaint> fPaints; | 196 SkTArray<SkPaint> fPaints; |
197 SkTArray<SkMatrix> fMatrices; | 197 SkTArray<SkMatrix> fMatrices; |
198 }; | 198 }; |
199 | 199 |
200 ////////////////////////////////////////////////////////////////////////////// | 200 ////////////////////////////////////////////////////////////////////////////// |
201 | 201 |
202 static GM* MyFactory(void*) { return new CircleGM; } | 202 static GM* MyFactory(void*) { return new CircleGM; } |
203 static GMRegistry reg(MyFactory); | 203 static GMRegistry reg(MyFactory); |
204 | 204 |
205 } | 205 } |
OLD | NEW |