• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 Google LLC
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 DrawMeshOp_DEFINED
9 #define DrawMeshOp_DEFINED
10 
11 #include "include/core/SkCanvas.h"
12 #include "include/core/SkRefCnt.h"
13 #include "include/private/base/SkTArray.h"
14 #include "include/private/gpu/ganesh/GrTypesPriv.h"
15 #include "src/gpu/ganesh/ops/GrOp.h"
16 
17 class GrColorSpaceXform;
18 class GrPaint;
19 class GrRecordingContext;
20 class SkMatrix;
21 class SkMesh;
22 
23 namespace skgpu::ganesh::DrawMeshOp {
24 GrOp::Owner Make(GrRecordingContext*,
25                  GrPaint&&,
26                  const SkMesh&,
27                  skia_private::TArray<std::unique_ptr<GrFragmentProcessor>> children,
28                  const SkMatrix&,
29                  GrAAType,
30                  sk_sp<GrColorSpaceXform>);
31 
32 GrOp::Owner Make(GrRecordingContext*,
33                  GrPaint&&,
34                  sk_sp<SkVertices>,
35                  const GrPrimitiveType* overridePrimitiveType,
36                  const SkMatrix&,
37                  GrAAType,
38                  sk_sp<GrColorSpaceXform>);
39 }  // namespace skgpu::ganesh::DrawMeshOp
40 
41 #endif  // DrawMeshOp_DEFINED
42