1 | /* |
---|---|
2 | * Copyright 2014 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 GrRRectEffect_DEFINED |
9 | #define GrRRectEffect_DEFINED |
10 | |
11 | #include "include/core/SkRefCnt.h" |
12 | #include "include/gpu/GrTypes.h" |
13 | #include "include/private/GrTypesPriv.h" |
14 | |
15 | class GrFragmentProcessor; |
16 | class GrShaderCaps; |
17 | class GrProcessor; |
18 | class SkRRect; |
19 | |
20 | namespace GrRRectEffect { |
21 | |
22 | /** |
23 | * Creates an effect that performs anti-aliased clipping against a SkRRect. It doesn't support |
24 | * all varieties of SkRRect so the caller must check for a nullptr return. |
25 | */ |
26 | std::unique_ptr<GrFragmentProcessor> Make(GrClipEdgeType, const SkRRect&, const GrShaderCaps&); |
27 | }; |
28 | |
29 | #endif |
30 |