| 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 |
| 11 class GrClip; | 11 class GrClip; |
| 12 class GrContext; | 12 class GrContext; |
| 13 class GrDrawContext; | 13 class GrDrawContext; |
| 14 class GrPaint; |
| 14 class GrRenderTarget; | 15 class GrRenderTarget; |
| 16 class GrStrokeInfo; |
| 15 struct SkIRect; | 17 struct SkIRect; |
| 18 class SkMaskFilter; |
| 16 class SkMatrix; | 19 class SkMatrix; |
| 17 class SkPaint; | 20 class SkPaint; |
| 18 class SkPath; | 21 class SkPath; |
| 22 class SkPathEffect; |
| 19 | 23 |
| 20 | 24 |
| 21 /** | 25 /** |
| 22 * Blur utilities. | 26 * Blur utilities. |
| 23 */ | 27 */ |
| 24 namespace GrBlurUtils { | 28 namespace GrBlurUtils { |
| 25 /** | 29 /** |
| 26 * Draw a path handling the mask filter if present. | 30 * Draw a path handling the mask filter if present. |
| 27 */ | 31 */ |
| 28 void drawPathWithMaskFilter(GrContext* context, | 32 void drawPathWithMaskFilter(GrContext* context, |
| 29 GrDrawContext* drawContext, | 33 GrDrawContext* drawContext, |
| 30 GrRenderTarget* rt, | 34 GrRenderTarget* rt, |
| 31 const GrClip& clip, | 35 const GrClip& clip, |
| 32 const SkPath& origSrcPath, | 36 const SkPath& origSrcPath, |
| 33 const SkPaint& paint, | 37 const SkPaint& paint, |
| 34 const SkMatrix& origViewMatrix, | 38 const SkMatrix& origViewMatrix, |
| 35 const SkMatrix* prePathMatrix, | 39 const SkMatrix* prePathMatrix, |
| 36 const SkIRect& clipBounds, | 40 const SkIRect& clipBounds, |
| 37 bool pathIsMutable); | 41 bool pathIsMutable); |
| 42 |
| 43 /** |
| 44 * 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. |
| 46 */ |
| 47 void drawPathWithMaskFilter(GrContext*, |
| 48 GrDrawContext*, |
| 49 GrRenderTarget*, |
| 50 const GrClip&, |
| 51 const SkPath& path, |
| 52 GrPaint*, |
| 53 const SkMatrix& viewMatrix, |
| 54 const SkMaskFilter*, |
| 55 const SkPathEffect*, |
| 56 const GrStrokeInfo&); |
| 57 |
| 38 }; | 58 }; |
| 39 | 59 |
| 40 #endif | 60 #endif |
| OLD | NEW |