xref: /aosp_15_r20/external/skia/src/gpu/ganesh/ops/RegionOp.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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 #ifndef RegionOp_DEFINED
8 #define RegionOp_DEFINED
9 
10 #include "src/gpu/ganesh/ops/GrOp.h"
11 
12 class GrPaint;
13 class GrRecordingContext;
14 class SkMatrix;
15 class SkRegion;
16 enum class GrAAType : unsigned int;
17 struct GrUserStencilSettings;
18 
19 namespace skgpu::ganesh::RegionOp {
20 
21 /** GrAAType must be kNone or kMSAA. */
22 GrOp::Owner Make(GrRecordingContext*,
23                  GrPaint&&,
24                  const SkMatrix& viewMatrix,
25                  const SkRegion&,
26                  GrAAType,
27                  const GrUserStencilSettings* stencilSettings = nullptr);
28 
29 }  // namespace skgpu::ganesh::RegionOp
30 
31 #endif // RegionOp_DEFINED
32