Flutter Engine
The Flutter Engine
Functions
skgpu::ganesh::DrawMeshOp Namespace Reference

Functions

GrOp::Owner Make (GrRecordingContext *context, GrPaint &&paint, const SkMesh &mesh, TArray< std::unique_ptr< GrFragmentProcessor > > children, const SkMatrix &viewMatrix, GrAAType aaType, sk_sp< GrColorSpaceXform > colorSpaceXform)
 
GrOp::Owner Make (GrRecordingContext *context, GrPaint &&paint, sk_sp< SkVertices > vertices, const GrPrimitiveType *overridePrimitiveType, const SkMatrix &viewMatrix, GrAAType aaType, sk_sp< GrColorSpaceXform > colorSpaceXform)
 

Function Documentation

◆ Make() [1/2]

GrOp::Owner skgpu::ganesh::DrawMeshOp::Make ( GrRecordingContext context,
GrPaint &&  paint,
const SkMesh mesh,
TArray< std::unique_ptr< GrFragmentProcessor > >  children,
const SkMatrix viewMatrix,
GrAAType  aaType,
sk_sp< GrColorSpaceXform colorSpaceXform 
)

Definition at line 1232 of file DrawMeshOp.cpp.

1238 {
1239 return GrSimpleMeshDrawOpHelper::FactoryHelper<MeshOp>(context,
1240 std::move(paint),
1241 mesh,
1242 std::move(children),
1243 aaType,
1244 std::move(colorSpaceXform),
1245 viewMatrix);
1246}
const Paint & paint
Definition: color_source.cc:38
SkMesh mesh
Definition: SkRecords.h:345

◆ Make() [2/2]

GrOp::Owner skgpu::ganesh::DrawMeshOp::Make ( GrRecordingContext context,
GrPaint &&  paint,
sk_sp< SkVertices vertices,
const GrPrimitiveType overridePrimitiveType,
const SkMatrix viewMatrix,
GrAAType  aaType,
sk_sp< GrColorSpaceXform colorSpaceXform 
)

Definition at line 1248 of file DrawMeshOp.cpp.

1254 {
1255 return GrSimpleMeshDrawOpHelper::FactoryHelper<MeshOp>(context,
1256 std::move(paint),
1257 std::move(vertices),
1258 overridePrimitiveType,
1259 aaType,
1260 std::move(colorSpaceXform),
1261 viewMatrix);
1262}