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 DrawCustomMeshOp_DEFINED 9 #define DrawCustomMeshOp_DEFINED 10 11 #include "include/core/SkCanvas.h" 12 #include "include/core/SkCustomMesh.h" 13 #include "include/core/SkRefCnt.h" 14 #include "include/private/GrTypesPriv.h" 15 #include "src/gpu/ops/GrOp.h" 16 17 class GrColorSpaceXform; 18 class GrPaint; 19 class GrRecordingContext; 20 class SkMatrixProvider; 21 22 namespace skgpu::v1::DrawCustomMeshOp { 23 GrOp::Owner Make(GrRecordingContext*, 24 GrPaint&&, 25 SkCustomMesh, 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::DrawCustomMeshOp 38 39 #endif // DrawCustomMeshOp_DEFINED 40