Flutter Engine
The Flutter Engine
|
Classes | |
struct | AddTrianglesWhenChopping |
class | AffineMatrix |
struct | AttribValue |
class | CullTest |
struct | DiscardFlatCurves |
class | FixedCountCurves |
class | FixedCountStrokes |
class | FixedCountWedges |
class | LinearTolerances |
class | MiddleOutPolygonTriangulator |
class | MidpointContourParser |
struct | NullTriangulator |
struct | Optional |
struct | PatchStorage |
class | PatchWriter |
class | PathMiddleOutFanIter |
struct | ReplicateLineEndPoints |
struct | Required |
class | StrokeIterator |
struct | StrokeParams |
struct | TrackJoinControlPoints |
Enumerations | |
enum class | PatchAttribs { kNone = 0 , kJoinControlPoint = 1 << 0 , kFanPoint = 1 << 1 , kStrokeParams = 1 << 2 , kColor = 1 << 3 , kPaintDepth = 1 << 4 , kExplicitCurveType = 1 << 5 , kSsboIndex = 1 << 7 , kWideColorIfEnabled = 1 << 6 } |
Functions | |
template<PatchAttribs A, typename T , bool Required, bool Optional> | |
VertexWriter & | operator<< (VertexWriter &w, const AttribValue< A, T, Required, Optional > &v) |
SkPath | PreChopPathCurves (float tessellationPrecision, const SkPath &path, const SkMatrix &matrix, const SkRect &viewport) |
int | FindCubicConvex180Chops (const SkPoint pts[], float T[2], bool *areCusps) |
static constexpr int | NumCurveTrianglesAtResolveLevel (int resolveLevel) |
constexpr size_t | PatchAttribsStride (PatchAttribs attribs) |
constexpr size_t | PatchStride (PatchAttribs attribs) |
bool | ConicHasCusp (const SkPoint p[3]) |
float | GetJoinType (const SkStrokeRec &stroke) |
bool | StrokesHaveEqualParams (const SkStrokeRec &a, const SkStrokeRec &b) |
constexpr int | NumFixedEdgesInJoin (SkPaint::Join joinType) |
constexpr int | NumFixedEdgesInJoin (const StrokeParams &strokeParams) |
float | CalcNumRadialSegmentsPerRadian (float approxDevStrokeRadius) |
DEF_TEST (CullTestTest, reporter) | |
static bool | is_linear (SkPoint p0, SkPoint p1, SkPoint p2) |
static bool | is_linear (const SkPoint p[4]) |
static void | check_cubic_convex_180 (skiatest::Reporter *r, const SkPoint p[4]) |
DEF_TEST (FindCubicConvex180Chops, r) | |
DEF_TEST (PreChopPathCurves, reporter) | |
static float | wangs_formula_quadratic_reference_impl (float precision, const SkPoint p[3]) |
static float | wangs_formula_cubic_reference_impl (float precision, const SkPoint p[4]) |
static float | wangs_formula_conic_reference_impl (float precision, const SkPoint P[3], const float w) |
static void | for_random_matrices (SkRandom *rand, const std::function< void(const SkMatrix &)> &f) |
static void | for_random_beziers (int numPoints, SkRandom *rand, const std::function< void(const SkPoint[])> &f, int maxExponent=30) |
DEF_TEST (wangs_formula_log2, r) | |
DEF_TEST (wangs_formula_vectorXforms, r) | |
DEF_TEST (wangs_formula_worst_case_cubic, r) | |
DEF_TEST (wangs_formula_quad_within_tol, r) | |
DEF_TEST (wangs_formula_rational_quad_reduces, r) | |
DEF_TEST (wangs_formula_conic_within_tol, r) | |
DEF_TEST (wangs_formula_conic_matches_reference, r) | |
DEF_TEST (wangs_formula_conic_vectorXforms, r) | |
DEF_TEST (wangs_formula_nextlog2, r) | |
Variables | |
static constexpr float | kPrecision = 4 |
static constexpr int | kMaxResolveLevel = 5 |
static constexpr int | kMaxParametricSegments = 1 << kMaxResolveLevel |
static constexpr int | kMaxParametricSegments_p2 = kMaxParametricSegments * kMaxParametricSegments |
static constexpr int | kMaxParametricSegments_p4 |
static constexpr float | kMaxSegmentsPerCurve = 1024 |
static constexpr float | kMaxSegmentsPerCurve_p2 = kMaxSegmentsPerCurve * kMaxSegmentsPerCurve |
static constexpr float | kMaxSegmentsPerCurve_p4 = kMaxSegmentsPerCurve_p2 * kMaxSegmentsPerCurve_p2 |
static constexpr float | kCubicCurveType = 0 |
static constexpr float | kConicCurveType = 1 |
static constexpr float | kTriangularConicCurveType = 2 |
const SkMatrix | gMatrices [] |
const SkPoint | kSerp [4] |
const SkPoint | kLoop [4] |
const SkPoint | kQuad [4] |
|
strong |
Enumerator | |
---|---|
kNone | |
kJoinControlPoint | |
kFanPoint | |
kStrokeParams | |
kColor | |
kPaintDepth | |
kExplicitCurveType | |
kSsboIndex | |
kWideColorIfEnabled |
Definition at line 77 of file Tessellation.h.
|
inline |
Definition at line 210 of file Tessellation.h.
|
static |
Definition at line 29 of file FindCubicConvex180ChopsTest.cpp.
|
inline |
Definition at line 131 of file Tessellation.h.
skgpu::tess::DEF_TEST | ( | CullTestTest | , |
reporter | |||
) |
Definition at line 35 of file CullTestTest.cpp.
skgpu::tess::DEF_TEST | ( | FindCubicConvex180Chops | , |
r | |||
) |
Definition at line 76 of file FindCubicConvex180ChopsTest.cpp.
skgpu::tess::DEF_TEST | ( | PreChopPathCurves | , |
reporter | |||
) |
Definition at line 15 of file PreChopPathCurvesTest.cpp.
skgpu::tess::DEF_TEST | ( | wangs_formula_conic_matches_reference | , |
r | |||
) |
Definition at line 492 of file WangsFormulaTest.cpp.
skgpu::tess::DEF_TEST | ( | wangs_formula_conic_vectorXforms | , |
r | |||
) |
Definition at line 509 of file WangsFormulaTest.cpp.
skgpu::tess::DEF_TEST | ( | wangs_formula_conic_within_tol | , |
r | |||
) |
Definition at line 430 of file WangsFormulaTest.cpp.
skgpu::tess::DEF_TEST | ( | wangs_formula_log2 | , |
r | |||
) |
Definition at line 129 of file WangsFormulaTest.cpp.
skgpu::tess::DEF_TEST | ( | wangs_formula_nextlog2 | , |
r | |||
) |
Definition at line 537 of file WangsFormulaTest.cpp.
skgpu::tess::DEF_TEST | ( | wangs_formula_quad_within_tol | , |
r | |||
) |
Definition at line 363 of file WangsFormulaTest.cpp.
skgpu::tess::DEF_TEST | ( | wangs_formula_rational_quad_reduces | , |
r | |||
) |
Definition at line 415 of file WangsFormulaTest.cpp.
skgpu::tess::DEF_TEST | ( | wangs_formula_vectorXforms | , |
r | |||
) |
Definition at line 291 of file WangsFormulaTest.cpp.
skgpu::tess::DEF_TEST | ( | wangs_formula_worst_case_cubic | , |
r | |||
) |
Definition at line 325 of file WangsFormulaTest.cpp.
Definition at line 205 of file Tessellation.cpp.
|
static |
Definition at line 115 of file WangsFormulaTest.cpp.
|
static |
Definition at line 93 of file WangsFormulaTest.cpp.
|
inline |
Definition at line 146 of file Tessellation.h.
|
static |
Definition at line 21 of file FindCubicConvex180ChopsTest.cpp.
|
staticconstexpr |
Definition at line 66 of file Tessellation.h.
|
constexpr |
Definition at line 202 of file Tessellation.h.
|
constexpr |
Definition at line 189 of file Tessellation.h.
VertexWriter & skgpu::tess::operator<< | ( | VertexWriter & | w, |
const AttribValue< A, T, Required, Optional > & | v | ||
) |
Definition at line 168 of file PatchWriter.h.
|
constexpr |
Definition at line 103 of file Tessellation.h.
|
constexpr |
Definition at line 114 of file Tessellation.h.
SkPath skgpu::tess::PreChopPathCurves | ( | float | tessellationPrecision, |
const SkPath & | path, | ||
const SkMatrix & | matrix, | ||
const SkRect & | viewport | ||
) |
Definition at line 164 of file Tessellation.cpp.
|
inline |
Definition at line 171 of file Tessellation.h.
|
static |
Definition at line 56 of file WangsFormulaTest.cpp.
|
static |
|
static |
const SkMatrix skgpu::tess::gMatrices[] |
Definition at line 20 of file CullTestTest.cpp.
|
staticconstexpr |
Definition at line 98 of file Tessellation.h.
|
staticconstexpr |
Definition at line 97 of file Tessellation.h.
const SkPoint skgpu::tess::kLoop[4] |
Definition at line 31 of file WangsFormulaTest.cpp.
|
staticconstexpr |
Definition at line 41 of file Tessellation.h.
|
staticconstexpr |
Definition at line 42 of file Tessellation.h.
|
staticconstexpr |
Definition at line 43 of file Tessellation.h.
|
staticconstexpr |
Definition at line 34 of file Tessellation.h.
|
staticconstexpr |
Definition at line 51 of file Tessellation.h.
|
staticconstexpr |
Definition at line 52 of file Tessellation.h.
|
staticconstexpr |
Definition at line 53 of file Tessellation.h.
|
staticconstexpr |
Definition at line 29 of file Tessellation.h.
const SkPoint skgpu::tess::kQuad[4] |
Definition at line 34 of file WangsFormulaTest.cpp.
const SkPoint skgpu::tess::kSerp[4] |
Definition at line 28 of file WangsFormulaTest.cpp.
|
staticconstexpr |
Definition at line 99 of file Tessellation.h.