Flutter Engine
The Flutter Engine
|
Public Member Functions | |
SkBaseShadowTessellator (const SkPoint3 &zPlaneParams, const SkRect &bounds, bool transparent) | |
virtual | ~SkBaseShadowTessellator () |
sk_sp< SkVertices > | releaseVertices () |
Protected Member Functions | |
int | vertexCount () const |
int | indexCount () const |
bool | accumulateCentroid (const SkPoint &c, const SkPoint &n) |
bool | checkConvexity (const SkPoint &p0, const SkPoint &p1, const SkPoint &p2) |
void | finishPathPolygon () |
bool | computeConvexShadow (SkScalar inset, SkScalar outset, bool doClip) |
void | computeClipVectorsAndTestCentroid () |
bool | clipUmbraPoint (const SkPoint &umbraPoint, const SkPoint ¢roid, SkPoint *clipPoint) |
void | addEdge (const SkVector &nextPoint, const SkVector &nextNormal, SkColor umbraColor, const SkTDArray< SkPoint > &umbraPolygon, bool lastEdge, bool doClip) |
bool | addInnerPoint (const SkPoint &pathPoint, SkColor umbraColor, const SkTDArray< SkPoint > &umbraPolygon, int *currUmbraIndex) |
int | getClosestUmbraIndex (const SkPoint &point, const SkTDArray< SkPoint > &umbraPolygon) |
bool | computeConcaveShadow (SkScalar inset, SkScalar outset) |
void | stitchConcaveRings (const SkTDArray< SkPoint > &umbraPolygon, SkTDArray< int > *umbraIndices, const SkTDArray< SkPoint > &penumbraPolygon, SkTDArray< int > *penumbraIndices) |
void | handleLine (const SkPoint &p) |
void | handleLine (const SkMatrix &m, SkPoint *p) |
void | handleQuad (const SkPoint pts[3]) |
void | handleQuad (const SkMatrix &m, SkPoint pts[3]) |
void | handleCubic (const SkMatrix &m, SkPoint pts[4]) |
void | handleConic (const SkMatrix &m, SkPoint pts[3], SkScalar w) |
bool | addArc (const SkVector &nextNormal, SkScalar offset, bool finishArc) |
void | appendTriangle (uint16_t index0, uint16_t index1, uint16_t index2) |
void | appendQuad (uint16_t index0, uint16_t index1, uint16_t index2, uint16_t index3) |
SkScalar | heightFunc (SkScalar x, SkScalar y) |
Protected Attributes | |
SkPoint3 | fZPlaneParams |
SkTDArray< SkPoint > | fPointBuffer |
SkTDArray< SkPoint > | fPositions |
SkTDArray< SkColor > | fColors |
SkTDArray< uint16_t > | fIndices |
SkTDArray< SkPoint > | fPathPolygon |
SkTDArray< SkPoint > | fClipPolygon |
SkTDArray< SkVector > | fClipVectors |
SkRect | fPathBounds |
SkPoint | fCentroid |
SkScalar | fArea |
SkScalar | fLastArea |
SkScalar | fLastCross |
int | fFirstVertexIndex |
SkVector | fFirstOutset |
SkPoint | fFirstPoint |
bool | fSucceeded |
bool | fTransparent |
bool | fIsConvex |
bool | fValidUmbra |
SkScalar | fDirection |
int | fPrevUmbraIndex |
int | fCurrUmbraIndex |
int | fCurrClipIndex |
bool | fPrevUmbraOutside |
bool | fFirstUmbraOutside |
SkVector | fPrevOutset |
SkPoint | fPrevPoint |
Static Protected Attributes | |
static constexpr auto | kMinHeight = 0.1f |
static constexpr auto | kPenumbraColor = SK_ColorTRANSPARENT |
static constexpr auto | kUmbraColor = SK_ColorBLACK |
Base class
Definition at line 44 of file SkShadowTessellator.cpp.
SkBaseShadowTessellator::SkBaseShadowTessellator | ( | const SkPoint3 & | zPlaneParams, |
const SkRect & | bounds, | ||
bool | transparent | ||
) |
Definition at line 173 of file SkShadowTessellator.cpp.
|
inlinevirtual |
Definition at line 47 of file SkShadowTessellator.cpp.
Definition at line 195 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 862 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 416 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 508 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 899 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 891 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 218 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 476 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 387 of file SkShadowTessellator.cpp.
Definition at line 570 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 263 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 238 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 540 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 842 of file SkShadowTessellator.cpp.
Definition at line 821 of file SkShadowTessellator.cpp.
Definition at line 785 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 758 of file SkShadowTessellator.cpp.
Definition at line 816 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 791 of file SkShadowTessellator.cpp.
Definition at line 103 of file SkShadowTessellator.cpp.
|
inlineprotected |
Definition at line 64 of file SkShadowTessellator.cpp.
|
inline |
Definition at line 49 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 609 of file SkShadowTessellator.cpp.
|
inlineprotected |
Definition at line 63 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 122 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 121 of file SkShadowTessellator.cpp.
Definition at line 117 of file SkShadowTessellator.cpp.
Definition at line 118 of file SkShadowTessellator.cpp.
Definition at line 113 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 138 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 137 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 135 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 127 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 128 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 140 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 126 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 114 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 132 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 123 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 124 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 120 of file SkShadowTessellator.cpp.
Definition at line 116 of file SkShadowTessellator.cpp.
Definition at line 110 of file SkShadowTessellator.cpp.
Definition at line 112 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 141 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 142 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 136 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 139 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 130 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 131 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 133 of file SkShadowTessellator.cpp.
|
protected |
Definition at line 107 of file SkShadowTessellator.cpp.
|
inlinestaticconstexprprotected |
Definition at line 59 of file SkShadowTessellator.cpp.
|
inlinestaticconstexprprotected |
Definition at line 60 of file SkShadowTessellator.cpp.
|
inlinestaticconstexprprotected |
Definition at line 61 of file SkShadowTessellator.cpp.