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 "SkBlurDrawLooper.h" | 9 #include "SkBlurDrawLooper.h" |
10 #include "SkBlurMask.h" | 10 #include "SkBlurMask.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 SkPaint p; | 45 SkPaint p; |
46 p.setAntiAlias(true); | 46 p.setAntiAlias(true); |
47 fPaints.push_back(p); | 47 fPaints.push_back(p); |
48 } | 48 } |
49 | 49 |
50 { | 50 { |
51 // AA with mask filter | 51 // AA with mask filter |
52 SkPaint p; | 52 SkPaint p; |
53 p.setAntiAlias(true); | 53 p.setAntiAlias(true); |
54 SkMaskFilter* mf = SkBlurMaskFilter::Create( | 54 SkMaskFilter* mf = SkBlurMaskFilter::Create( |
55 SkBlurMaskFilter::kNormal_BlurStyle, | 55 kNormal_SkBlurStyle, |
56 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)
), | 56 SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)
), |
57 SkBlurMaskFilter::kHighQuality_BlurFlag); | 57 SkBlurMaskFilter::kHighQuality_BlurFlag); |
58 p.setMaskFilter(mf)->unref(); | 58 p.setMaskFilter(mf)->unref(); |
59 fPaints.push_back(p); | 59 fPaints.push_back(p); |
60 } | 60 } |
61 | 61 |
62 { | 62 { |
63 // AA with radial shader | 63 // AA with radial shader |
64 SkPaint p; | 64 SkPaint p; |
65 p.setAntiAlias(true); | 65 p.setAntiAlias(true); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 SkTArray<SkPaint> fPaints; | 198 SkTArray<SkPaint> fPaints; |
199 SkTArray<SkMatrix> fMatrices; | 199 SkTArray<SkMatrix> fMatrices; |
200 }; | 200 }; |
201 | 201 |
202 ////////////////////////////////////////////////////////////////////////////// | 202 ////////////////////////////////////////////////////////////////////////////// |
203 | 203 |
204 static GM* MyFactory(void*) { return new CircleGM; } | 204 static GM* MyFactory(void*) { return new CircleGM; } |
205 static GMRegistry reg(MyFactory); | 205 static GMRegistry reg(MyFactory); |
206 | 206 |
207 } | 207 } |
OLD | NEW |