Flutter Engine
The Flutter Engine
|
#include <SkEdgeClipper.h>
Public Member Functions | |
SkEdgeClipper (bool canCullToTheRight) | |
bool | clipLine (SkPoint p0, SkPoint p1, const SkRect &clip) |
bool | clipQuad (const SkPoint pts[3], const SkRect &clip) |
bool | clipCubic (const SkPoint pts[4], const SkRect &clip) |
SkPath::Verb | next (SkPoint pts[]) |
bool | canCullToTheRight () const |
Static Public Member Functions | |
static void | ClipPath (const SkPath &path, const SkRect &clip, bool canCullToTheRight, void(*consume)(SkEdgeClipper *, bool newCtr, void *ctx), void *ctx) |
This is basically an iterator. It is initialized with an edge and a clip, and then next() is called until it returns kDone_Verb.
Definition at line 22 of file SkEdgeClipper.h.
|
inline |
Definition at line 24 of file SkEdgeClipper.h.
|
inline |
Definition at line 32 of file SkEdgeClipper.h.
Definition at line 422 of file SkEdgeClipper.cpp.
Definition at line 53 of file SkEdgeClipper.cpp.
|
static |
Clips each segment from the path, and passes the result (in a clipper) to the consume proc.
Definition at line 566 of file SkEdgeClipper.cpp.
Definition at line 226 of file SkEdgeClipper.cpp.
SkPath::Verb SkEdgeClipper::next | ( | SkPoint | pts[] | ) |
Definition at line 506 of file SkEdgeClipper.cpp.