blob: 0fc77266b0024f006d1f89c314acabca20077bed [file] [log] [blame]
robertphillipsccb1b572015-05-27 11:02:55 -07001/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrBlurUtils_DEFINED
9#define GrBlurUtils_DEFINED
10
11class GrClip;
12class GrContext;
13class GrDrawContext;
14class GrRenderTarget;
15struct SkIRect;
16class SkMatrix;
17class SkPaint;
18class SkPath;
19
20
21/**
22 * Blur utilities.
23 */
24namespace GrBlurUtils {
25 /**
26 * Draw a path handling the mask filter if present.
27 */
28 void drawPathWithMaskFilter(GrContext* context,
29 GrDrawContext* drawContext,
30 GrRenderTarget* rt,
31 const GrClip& clip,
32 const SkPath& origSrcPath,
33 const SkPaint& paint,
34 const SkMatrix& origViewMatrix,
35 const SkMatrix* prePathMatrix,
36 const SkIRect& clipBounds,
37 bool pathIsMutable);
38};
39
40#endif