| /* | |
| * 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 | |
| #include "include/private/gpu/ganesh/GrTypesPriv.h" | |
| class GrClip; | |
| class GrPaint; | |
| class GrRecordingContext; | |
| class GrRenderTarget; | |
| class GrStyledShape; | |
| class GrStyle; | |
| struct SkIRect; | |
| class SkMatrixProvider; | |
| class SkMaskFilter; | |
| class SkMatrix; | |
| class SkPaint; | |
| class SkPath; | |
| class SkPathEffect; | |
| namespace skgpu { namespace v1 { class SurfaceDrawContext; }} | |
| /** | |
| * Blur utilities. | |
| */ | |
| namespace GrBlurUtils { | |
| /** | |
| * Draw a shape handling the mask filter if present. | |
| */ | |
| void drawShapeWithMaskFilter(GrRecordingContext*, | |
| skgpu::v1::SurfaceDrawContext*, | |
| const GrClip*, | |
| const SkPaint&, | |
| const SkMatrixProvider&, | |
| const GrStyledShape&); | |
| /** | |
| * Draw a shape handling the mask filter. The mask filter is not optional. | |
| * The GrPaint will be modified after return. | |
| */ | |
| void drawShapeWithMaskFilter(GrRecordingContext*, | |
| skgpu::v1::SurfaceDrawContext*, | |
| const GrClip*, | |
| const GrStyledShape&, | |
| GrPaint&&, | |
| const SkMatrix& viewMatrix, | |
| const SkMaskFilter*); | |
| } // namespace GrBlurUtils | |
| #endif |