Flutter Impeller
impeller::ImpellerBenchmarkAccessor Class Reference

Static Public Member Functions

static std::vector< SolidFillVertexShader::PerVertexData > GenerateSolidStrokeVertices (const Path::Polyline &polyline, Scalar stroke_width, Scalar miter_limit, Join stroke_join, Cap stroke_cap, Scalar scale)
 
static std::vector< TextureFillVertexShader::PerVertexData > GenerateSolidStrokeVerticesUV (const Path::Polyline &polyline, Scalar stroke_width, Scalar miter_limit, Join stroke_join, Cap stroke_cap, Scalar scale, Point texture_origin, Size texture_size, const Matrix &effect_transform)
 

Detailed Description

Definition at line 17 of file geometry_benchmarks.cc.

Member Function Documentation

◆ GenerateSolidStrokeVertices()

static std::vector<SolidFillVertexShader::PerVertexData> impeller::ImpellerBenchmarkAccessor::GenerateSolidStrokeVertices ( const Path::Polyline polyline,
Scalar  stroke_width,
Scalar  miter_limit,
Join  stroke_join,
Cap  stroke_cap,
Scalar  scale 
)
inlinestatic

Definition at line 20 of file geometry_benchmarks.cc.

25  {
26  return StrokePathGeometry::GenerateSolidStrokeVertices(
27  polyline, stroke_width, miter_limit, stroke_join, stroke_cap, scale);
28  }

References polyline, scale, and stroke_width.

Referenced by impeller::BM_StrokePolyline().

◆ GenerateSolidStrokeVerticesUV()

static std::vector<TextureFillVertexShader::PerVertexData> impeller::ImpellerBenchmarkAccessor::GenerateSolidStrokeVerticesUV ( const Path::Polyline polyline,
Scalar  stroke_width,
Scalar  miter_limit,
Join  stroke_join,
Cap  stroke_cap,
Scalar  scale,
Point  texture_origin,
Size  texture_size,
const Matrix effect_transform 
)
inlinestatic

Definition at line 31 of file geometry_benchmarks.cc.

39  {
40  return StrokePathGeometry::GenerateSolidStrokeVerticesUV(
41  polyline, stroke_width, miter_limit, stroke_join, stroke_cap, scale,
42  texture_origin, texture_size, effect_transform);
43  }

References polyline, scale, and stroke_width.

Referenced by impeller::BM_StrokePolyline().


The documentation for this class was generated from the following file:
polyline
const Path::Polyline & polyline
Definition: stroke_path_geometry.cc:292
stroke_width
const Scalar stroke_width
Definition: stroke_path_geometry.cc:293
scale
const Scalar scale
Definition: stroke_path_geometry.cc:297