| /* |
| * Copyright 2015 Google Inc. |
| * |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| */ |
| |
| #ifndef GrBlurUtils_DEFINED |
| #define GrBlurUtils_DEFINED |
| |
| class GrClip; |
| class GrContext; |
| class GrDrawContext; |
| class GrPaint; |
| class GrRenderTarget; |
| class GrStrokeInfo; |
| struct SkIRect; |
| class SkMaskFilter; |
| class SkMatrix; |
| class SkPaint; |
| class SkPath; |
| class SkPathEffect; |
| |
| |
| /** |
| * Blur utilities. |
| */ |
| namespace GrBlurUtils { |
| /** |
| * Draw a path handling the mask filter if present. |
| */ |
| void drawPathWithMaskFilter(GrContext* context, |
| GrDrawContext* drawContext, |
| const GrClip& clip, |
| const SkPath& origSrcPath, |
| const SkPaint& paint, |
| const SkMatrix& origViewMatrix, |
| const SkMatrix* prePathMatrix, |
| const SkIRect& clipBounds, |
| bool pathIsMutable); |
| |
| /** |
| * Draw a path handling the mask filter. The mask filter is not optional. The path effect is |
| * optional. The GrPaint will be modified after return. |
| */ |
| void drawPathWithMaskFilter(GrContext*, |
| GrDrawContext*, |
| const GrClip&, |
| const SkPath& path, |
| GrPaint*, |
| const SkMatrix& viewMatrix, |
| const SkMaskFilter*, |
| const SkPathEffect*, |
| const GrStrokeInfo&, |
| bool pathIsMutable); |
| |
| }; |
| |
| #endif |