OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 #ifndef GrBlurUtils_DEFINED | 8 #ifndef GrBlurUtils_DEFINED |
9 #define GrBlurUtils_DEFINED | 9 #define GrBlurUtils_DEFINED |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 /** | 25 /** |
26 * Blur utilities. | 26 * Blur utilities. |
27 */ | 27 */ |
28 namespace GrBlurUtils { | 28 namespace GrBlurUtils { |
29 /** | 29 /** |
30 * Draw a path handling the mask filter if present. | 30 * Draw a path handling the mask filter if present. |
31 */ | 31 */ |
32 void drawPathWithMaskFilter(GrContext* context, | 32 void drawPathWithMaskFilter(GrContext* context, |
33 GrDrawContext* drawContext, | 33 GrDrawContext* drawContext, |
34 GrRenderTarget* rt, | |
35 const GrClip& clip, | 34 const GrClip& clip, |
36 const SkPath& origSrcPath, | 35 const SkPath& origSrcPath, |
37 const SkPaint& paint, | 36 const SkPaint& paint, |
38 const SkMatrix& origViewMatrix, | 37 const SkMatrix& origViewMatrix, |
39 const SkMatrix* prePathMatrix, | 38 const SkMatrix* prePathMatrix, |
40 const SkIRect& clipBounds, | 39 const SkIRect& clipBounds, |
41 bool pathIsMutable); | 40 bool pathIsMutable); |
42 | 41 |
43 /** | 42 /** |
44 * Draw a path handling the mask filter. The mask filter is not optional. Th
e path effect is | 43 * Draw a path handling the mask filter. The mask filter is not optional. Th
e path effect is |
45 * optional. The GrPaint will be modified after return. | 44 * optional. The GrPaint will be modified after return. |
46 */ | 45 */ |
47 void drawPathWithMaskFilter(GrContext*, | 46 void drawPathWithMaskFilter(GrContext*, |
48 GrDrawContext*, | 47 GrDrawContext*, |
49 GrRenderTarget*, | |
50 const GrClip&, | 48 const GrClip&, |
51 const SkPath& path, | 49 const SkPath& path, |
52 GrPaint*, | 50 GrPaint*, |
53 const SkMatrix& viewMatrix, | 51 const SkMatrix& viewMatrix, |
54 const SkMaskFilter*, | 52 const SkMaskFilter*, |
55 const SkPathEffect*, | 53 const SkPathEffect*, |
56 const GrStrokeInfo&, | 54 const GrStrokeInfo&, |
57 bool pathIsMutable); | 55 bool pathIsMutable); |
58 | 56 |
59 }; | 57 }; |
60 | 58 |
61 #endif | 59 #endif |
OLD | NEW |