Flutter Engine
The Flutter Engine
Classes | Static Public Member Functions | List of all members
GrAATriangulator Class Reference

#include <GrAATriangulator.h>

Inheritance diagram for GrAATriangulator:
GrTriangulator

Classes

struct  Event
 
struct  EventComparator
 
struct  EventList
 
struct  SSEdge
 

Static Public Member Functions

static int PathToAATriangles (const SkPath &path, SkScalar tolerance, const SkRect &clipBounds, GrEagerVertexAllocator *vertexAllocator)
 

Detailed Description

Definition at line 27 of file GrAATriangulator.h.

Member Function Documentation

◆ PathToAATriangles()

static int GrAATriangulator::PathToAATriangles ( const SkPath path,
SkScalar  tolerance,
const SkRect clipBounds,
GrEagerVertexAllocator vertexAllocator 
)
inlinestatic

Definition at line 29 of file GrAATriangulator.h.

30 {
32 GrAATriangulator aaTriangulator(path, &alloc);
33 aaTriangulator.fRoundVerticesToQuarterPixel = true;
34 aaTriangulator.fEmitCoverage = true;
35 bool isLinear;
36 auto [ polys, success ] = aaTriangulator.pathToPolys(tolerance, clipBounds, &isLinear);
37 if (!success) {
38 return 0;
39 }
40 return aaTriangulator.polysToAATriangles(polys, vertexAllocator);
41 }
static constexpr int kArenaDefaultChunkSize
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57

The documentation for this class was generated from the following files: