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/gpu/ganesh/GrTypesPriv.h" 14 #include "src/gpu/ganesh/ops/GrOp.h" 15 16 class GrColorSpaceXform; 17 class GrPaint; 18 class GrRecordingContext; 19 class SkMesh; 20 class SkMatrixProvider; 21 22 namespace skgpu::v1::DrawMeshOp { 23 GrOp::Owner Make(GrRecordingContext*, 24 GrPaint&&, 25 const SkMesh&, 26 const SkMatrixProvider&, 27 GrAAType, 28 sk_sp<GrColorSpaceXform>); 29 30 GrOp::Owner Make(GrRecordingContext*, 31 GrPaint&&, 32 sk_sp<SkVertices>, 33 const GrPrimitiveType* overridePrimitiveType, 34 const SkMatrixProvider&, 35 GrAAType, 36 sk_sp<GrColorSpaceXform>); 37 } // namespace skgpu::v1::DrawMeshOp 38 39 #endif // DrawMeshOp_DEFINED 40