| 1 | /* |
|---|---|
| 2 | * Copyright 2016 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 GrRegionOp_DEFINED |
| 9 | #define GrRegionOp_DEFINED |
| 10 | |
| 11 | #include "include/private/GrTypesPriv.h" |
| 12 | |
| 13 | class GrDrawOp; |
| 14 | class GrRecordingContext; |
| 15 | class SkMatrix; |
| 16 | class SkRegion; |
| 17 | class GrPaint; |
| 18 | struct GrUserStencilSettings; |
| 19 | |
| 20 | namespace GrRegionOp { |
| 21 | /** GrAAType must be kNone or kMSAA. */ |
| 22 | std::unique_ptr<GrDrawOp> Make(GrRecordingContext*, |
| 23 | GrPaint&&, |
| 24 | const SkMatrix& viewMatrix, |
| 25 | const SkRegion&, |
| 26 | GrAAType, |
| 27 | const GrUserStencilSettings* stencilSettings = nullptr); |
| 28 | } |
| 29 | |
| 30 | #endif |
| 31 |