Brian Salomon | fc527d2 | 2016-12-14 21:07:01 -0500 | [diff] [blame] | 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 | |
Brian Salomon | f036632 | 2017-07-11 15:53:05 -0400 | [diff] [blame] | 11 | #include "GrTypesPriv.h" |
Brian Salomon | fc527d2 | 2016-12-14 21:07:01 -0500 | [diff] [blame] | 12 | |
Robert Phillips | 7c525e6 | 2018-06-12 10:11:12 -0400 | [diff] [blame] | 13 | class GrContext; |
Brian Salomon | f036632 | 2017-07-11 15:53:05 -0400 | [diff] [blame] | 14 | class GrDrawOp; |
Brian Salomon | fc527d2 | 2016-12-14 21:07:01 -0500 | [diff] [blame] | 15 | class SkMatrix; |
| 16 | class SkRegion; |
Brian Salomon | f036632 | 2017-07-11 15:53:05 -0400 | [diff] [blame] | 17 | class GrPaint; |
Stan Iliev | 73d8fd9 | 2017-08-02 15:36:24 -0400 | [diff] [blame] | 18 | struct GrUserStencilSettings; |
Brian Salomon | fc527d2 | 2016-12-14 21:07:01 -0500 | [diff] [blame] | 19 | |
| 20 | namespace GrRegionOp { |
Brian Salomon | f036632 | 2017-07-11 15:53:05 -0400 | [diff] [blame] | 21 | /** GrAAType must be kNone or kMSAA. */ |
Robert Phillips | 7c525e6 | 2018-06-12 10:11:12 -0400 | [diff] [blame] | 22 | std::unique_ptr<GrDrawOp> Make(GrContext*, |
| 23 | GrPaint&&, |
| 24 | const SkMatrix& viewMatrix, |
| 25 | const SkRegion&, |
| 26 | GrAAType, |
Stan Iliev | 73d8fd9 | 2017-08-02 15:36:24 -0400 | [diff] [blame] | 27 | const GrUserStencilSettings* stencilSettings = nullptr); |
Brian Salomon | fc527d2 | 2016-12-14 21:07:01 -0500 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | #endif |