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 "SkBlurMaskFilter.h" | 9 #include "SkBlurMaskFilter.h" |
10 #include "SkColorFilter.h" | 10 #include "SkColorFilter.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 drawPath.setFillType(SkPath::kEvenOdd_FillType); | 58 drawPath.setFillType(SkPath::kEvenOdd_FillType); |
59 | 59 |
60 SkPaint paint; | 60 SkPaint paint; |
61 paint.setAntiAlias(true); | 61 paint.setAntiAlias(true); |
62 paint.setColor(0xFF000000); | 62 paint.setColor(0xFF000000); |
63 paint.setMaskFilter( | 63 paint.setMaskFilter( |
64 SkBlurMaskFilter::Make(kNormal_SkBlurStyle, 0.78867501f, | 64 SkBlurMaskFilter::Make(kNormal_SkBlurStyle, 0.78867501f, |
65 SkBlurMaskFilter::kHighQuality_BlurFlag)); | 65 SkBlurMaskFilter::kHighQuality_BlurFlag)); |
66 paint.setColorFilter(SkColorFilter::MakeModeFilter(0xBFFFFFFF, SkXfermod
e::kSrcIn_Mode)); | 66 paint.setColorFilter(SkColorFilter::MakeModeFilter(0xBFFFFFFF, SkXfermod
e::kSrcIn_Mode)); |
67 | 67 |
68 canvas->clipPath(clipPath, SkCanvas::kIntersect_Op, true); | 68 canvas->clipPath(clipPath, true); |
69 canvas->drawPath(drawPath, paint); | 69 canvas->drawPath(drawPath, paint); |
70 } | 70 } |
OLD | NEW |