| 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 "src/gpu/ganesh/GrFragmentProcessor.h" |
| 12 |
|
| 13 |
#include <memory> |
| 14 |
|
| 15 |
class SkRRect; |
| 16 |
enum class GrClipEdgeType; |
| 17 |
struct GrShaderCaps; |
| 18 |
|
| 19 |
namespace GrRRectEffect { |
| 20 |
|
| 21 |
/** |
| 22 |
* Creates an effect that performs anti-aliased clipping against a SkRRect. It doesn't support |
| 23 |
* all varieties of SkRRect, so the caller must check `success` in the GrFPResult. |
| 24 |
*/ |
| 25 |
GrFPResult Make(std::unique_ptr<GrFragmentProcessor>, GrClipEdgeType, const SkRRect&, |
| 26 |
const GrShaderCaps&); |
| 27 |
|
| 28 |
} // namespace GrRRectEffect |
| 29 |
|
| 30 |
#endif |