Flutter Engine
The Flutter Engine
|
#include "include/core/SkTypes.h"
#include "include/pathops/SkPathOps.h"
#include "include/private/base/SkTDArray.h"
#include <cstddef>
Go to the source code of this file.
Classes | |
class | SkPathOpsDebug |
Macros | |
#define | FORCE_RELEASE 1 |
#define | DEBUG_UNDER_DEVELOPMENT 0 |
#define | ONE_OFF_DEBUG 0 |
#define | ONE_OFF_DEBUG_MATHEMATICA 0 |
#define | SK_RAND(seed) rand_r(&seed) |
#define | WIND_AS_STRING(x) |
#define | DEBUG_ACTIVE_OP 0 |
#define | DEBUG_ACTIVE_SPANS 0 |
#define | DEBUG_ADD_INTERSECTING_TS 0 |
#define | DEBUG_ADD_T 0 |
#define | DEBUG_ALIGNMENT 0 |
#define | DEBUG_ANGLE 0 |
#define | DEBUG_ASSEMBLE 0 |
#define | DEBUG_COINCIDENCE 0 |
#define | DEBUG_COINCIDENCE_DUMP 0 |
#define | DEBUG_COINCIDENCE_ORDER 0 |
#define | DEBUG_COINCIDENCE_VERBOSE 0 |
#define | DEBUG_CUBIC_BINARY_SEARCH 0 |
#define | DEBUG_CUBIC_SPLIT 0 |
#define | DEBUG_DUMP_SEGMENTS 0 |
#define | DEBUG_DUMP_VERIFY 0 |
#define | DEBUG_FLOW 0 |
#define | DEBUG_LIMIT_WIND_SUM 0 |
#define | DEBUG_MARK_DONE 0 |
#define | DEBUG_PATH_CONSTRUCTION 0 |
#define | DEBUG_PERP 0 |
#define | DEBUG_SORT 0 |
#define | DEBUG_T_SECT 0 |
#define | DEBUG_T_SECT_DUMP 0 |
#define | DEBUG_T_SECT_LOOP_COUNT 0 |
#define | DEBUG_VALIDATE 0 |
#define | DEBUG_WINDING 0 |
#define | DEBUG_WINDING_AT_T 0 |
#define | SkDEBUGRELEASE(a, b) a |
#define | SkDEBUGPARAMS(...) , __VA_ARGS__ |
#define | PATH_OPS_DEBUG_VALIDATE_PARAMS(...) |
#define | PATH_OPS_DEBUG_T_SECT_RELEASE(a, b) b |
#define | PATH_OPS_DEBUG_T_SECT_PARAMS(...) |
#define | PATH_OPS_DEBUG_T_SECT_CODE(...) |
#define | DEBUG_COIN 0 |
#define | DEBUG_COIN_DECLARE_ONLY_PARAMS() |
#define | DEBUG_COIN_DECLARE_PARAMS() |
#define | DEBUG_COIN_ONLY_PARAMS() |
#define | DEBUG_COIN_PARAMS() |
#define | DEBUG_ITER_ONLY_PARAMS(iteration) |
#define | DEBUG_ITER_PARAMS(iteration) |
#define | DEBUG_PHASE_ONLY_PARAMS(phase) |
#define | DEBUG_PHASE_PARAMS(phase) |
#define | DEBUG_SET_PHASE() |
#define | DEBUG_STATIC_SET_PHASE(obj) |
#define | CUBIC_DEBUG_STR "{{{%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}}}" |
#define | CONIC_DEBUG_STR "{{{{%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}}}, %1.9g}" |
#define | QUAD_DEBUG_STR "{{{%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}}}" |
#define | LINE_DEBUG_STR "{{{%1.9g,%1.9g}, {%1.9g,%1.9g}}}" |
#define | PT_DEBUG_STR "{{%1.9g,%1.9g}}" |
#define | T_DEBUG_STR(t, n) #t "[" #n "]=%1.9g" |
#define | TX_DEBUG_STR(t) #t "[%d]=%1.9g" |
#define | CUBIC_DEBUG_DATA(c) c[0].fX, c[0].fY, c[1].fX, c[1].fY, c[2].fX, c[2].fY, c[3].fX, c[3].fY |
#define | CONIC_DEBUG_DATA(c, w) c[0].fX, c[0].fY, c[1].fX, c[1].fY, c[2].fX, c[2].fY, w |
#define | QUAD_DEBUG_DATA(q) q[0].fX, q[0].fY, q[1].fX, q[1].fY, q[2].fX, q[2].fY |
#define | LINE_DEBUG_DATA(l) l[0].fX, l[0].fY, l[1].fX, l[1].fY |
#define | PT_DEBUG_DATA(i, n) i.pt(n).asSkPoint().fX, i.pt(n).asSkPoint().fY |
#define | DEBUG_TEST 0 |
#define | FAIL_IF(cond) do { bool fail = (cond); SkOPASSERT(!fail); if (fail) return false; } while (false) |
#define | FAIL_WITH_NULL_IF(cond) do { bool fail = (cond); SkOPASSERT(!fail); if (fail) return nullptr; } while (false) |
Definition at line 217 of file SkPathOpsDebug.h.
#define CONIC_DEBUG_STR "{{{{%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}}}, %1.9g}" |
Definition at line 209 of file SkPathOpsDebug.h.
#define CUBIC_DEBUG_DATA | ( | c | ) | c[0].fX, c[0].fY, c[1].fX, c[1].fY, c[2].fX, c[2].fY, c[3].fX, c[3].fY |
Definition at line 216 of file SkPathOpsDebug.h.
#define CUBIC_DEBUG_STR "{{{%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}}}" |
Definition at line 208 of file SkPathOpsDebug.h.
#define DEBUG_ACTIVE_OP 0 |
Definition at line 57 of file SkPathOpsDebug.h.
#define DEBUG_ACTIVE_SPANS 0 |
Definition at line 58 of file SkPathOpsDebug.h.
#define DEBUG_ADD_INTERSECTING_TS 0 |
Definition at line 59 of file SkPathOpsDebug.h.
#define DEBUG_ADD_T 0 |
Definition at line 60 of file SkPathOpsDebug.h.
#define DEBUG_ALIGNMENT 0 |
Definition at line 61 of file SkPathOpsDebug.h.
#define DEBUG_ANGLE 0 |
Definition at line 62 of file SkPathOpsDebug.h.
#define DEBUG_ASSEMBLE 0 |
Definition at line 63 of file SkPathOpsDebug.h.
#define DEBUG_COIN 0 |
Definition at line 148 of file SkPathOpsDebug.h.
#define DEBUG_COIN_DECLARE_ONLY_PARAMS | ( | ) |
Definition at line 196 of file SkPathOpsDebug.h.
#define DEBUG_COIN_DECLARE_PARAMS | ( | ) |
Definition at line 197 of file SkPathOpsDebug.h.
#define DEBUG_COIN_ONLY_PARAMS | ( | ) |
Definition at line 198 of file SkPathOpsDebug.h.
#define DEBUG_COIN_PARAMS | ( | ) |
Definition at line 199 of file SkPathOpsDebug.h.
#define DEBUG_COINCIDENCE 0 |
Definition at line 64 of file SkPathOpsDebug.h.
#define DEBUG_COINCIDENCE_DUMP 0 |
Definition at line 65 of file SkPathOpsDebug.h.
#define DEBUG_COINCIDENCE_ORDER 0 |
Definition at line 66 of file SkPathOpsDebug.h.
#define DEBUG_COINCIDENCE_VERBOSE 0 |
Definition at line 67 of file SkPathOpsDebug.h.
#define DEBUG_CUBIC_BINARY_SEARCH 0 |
Definition at line 68 of file SkPathOpsDebug.h.
#define DEBUG_CUBIC_SPLIT 0 |
Definition at line 69 of file SkPathOpsDebug.h.
#define DEBUG_DUMP_SEGMENTS 0 |
Definition at line 70 of file SkPathOpsDebug.h.
#define DEBUG_DUMP_VERIFY 0 |
Definition at line 71 of file SkPathOpsDebug.h.
#define DEBUG_FLOW 0 |
Definition at line 72 of file SkPathOpsDebug.h.
#define DEBUG_ITER_ONLY_PARAMS | ( | iteration | ) |
Definition at line 200 of file SkPathOpsDebug.h.
#define DEBUG_ITER_PARAMS | ( | iteration | ) |
Definition at line 201 of file SkPathOpsDebug.h.
#define DEBUG_LIMIT_WIND_SUM 0 |
Definition at line 73 of file SkPathOpsDebug.h.
#define DEBUG_MARK_DONE 0 |
Definition at line 74 of file SkPathOpsDebug.h.
#define DEBUG_PATH_CONSTRUCTION 0 |
Definition at line 75 of file SkPathOpsDebug.h.
#define DEBUG_PERP 0 |
Definition at line 76 of file SkPathOpsDebug.h.
#define DEBUG_PHASE_ONLY_PARAMS | ( | phase | ) |
Definition at line 202 of file SkPathOpsDebug.h.
#define DEBUG_PHASE_PARAMS | ( | phase | ) |
Definition at line 203 of file SkPathOpsDebug.h.
#define DEBUG_SET_PHASE | ( | ) |
Definition at line 204 of file SkPathOpsDebug.h.
#define DEBUG_SORT 0 |
Definition at line 77 of file SkPathOpsDebug.h.
#define DEBUG_STATIC_SET_PHASE | ( | obj | ) |
Definition at line 205 of file SkPathOpsDebug.h.
#define DEBUG_T_SECT 0 |
Definition at line 78 of file SkPathOpsDebug.h.
#define DEBUG_T_SECT_DUMP 0 |
Definition at line 79 of file SkPathOpsDebug.h.
#define DEBUG_T_SECT_LOOP_COUNT 0 |
Definition at line 80 of file SkPathOpsDebug.h.
#define DEBUG_TEST 0 |
Definition at line 223 of file SkPathOpsDebug.h.
#define DEBUG_UNDER_DEVELOPMENT 0 |
Definition at line 40 of file SkPathOpsDebug.h.
#define DEBUG_VALIDATE 0 |
Definition at line 81 of file SkPathOpsDebug.h.
#define DEBUG_WINDING 0 |
Definition at line 82 of file SkPathOpsDebug.h.
#define DEBUG_WINDING_AT_T 0 |
Definition at line 83 of file SkPathOpsDebug.h.
#define FAIL_IF | ( | cond | ) | do { bool fail = (cond); SkOPASSERT(!fail); if (fail) return false; } while (false) |
Definition at line 227 of file SkPathOpsDebug.h.
#define FAIL_WITH_NULL_IF | ( | cond | ) | do { bool fail = (cond); SkOPASSERT(!fail); if (fail) return nullptr; } while (false) |
Definition at line 230 of file SkPathOpsDebug.h.
#define FORCE_RELEASE 1 |
Definition at line 37 of file SkPathOpsDebug.h.
#define LINE_DEBUG_DATA | ( | l | ) | l[0].fX, l[0].fY, l[1].fX, l[1].fY |
Definition at line 219 of file SkPathOpsDebug.h.
#define LINE_DEBUG_STR "{{{%1.9g,%1.9g}, {%1.9g,%1.9g}}}" |
Definition at line 211 of file SkPathOpsDebug.h.
#define ONE_OFF_DEBUG 0 |
Definition at line 42 of file SkPathOpsDebug.h.
#define ONE_OFF_DEBUG_MATHEMATICA 0 |
Definition at line 43 of file SkPathOpsDebug.h.
#define PATH_OPS_DEBUG_T_SECT_CODE | ( | ... | ) |
Definition at line 134 of file SkPathOpsDebug.h.
#define PATH_OPS_DEBUG_T_SECT_PARAMS | ( | ... | ) |
Definition at line 133 of file SkPathOpsDebug.h.
Definition at line 132 of file SkPathOpsDebug.h.
#define PATH_OPS_DEBUG_VALIDATE_PARAMS | ( | ... | ) |
Definition at line 126 of file SkPathOpsDebug.h.
#define PT_DEBUG_DATA | ( | i, | |
n | |||
) | i.pt(n).asSkPoint().fX, i.pt(n).asSkPoint().fY |
Definition at line 220 of file SkPathOpsDebug.h.
#define PT_DEBUG_STR "{{%1.9g,%1.9g}}" |
Definition at line 212 of file SkPathOpsDebug.h.
#define QUAD_DEBUG_DATA | ( | q | ) | q[0].fX, q[0].fY, q[1].fX, q[1].fY, q[2].fX, q[2].fY |
Definition at line 218 of file SkPathOpsDebug.h.
#define QUAD_DEBUG_STR "{{{%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}}}" |
Definition at line 210 of file SkPathOpsDebug.h.
#define SK_RAND | ( | seed | ) | rand_r(&seed) |
Definition at line 48 of file SkPathOpsDebug.h.
#define SkDEBUGPARAMS | ( | ... | ) | , __VA_ARGS__ |
Definition at line 122 of file SkPathOpsDebug.h.
Definition at line 121 of file SkPathOpsDebug.h.
#define T_DEBUG_STR | ( | t, | |
n | |||
) | #t "[" #n "]=%1.9g" |
Definition at line 214 of file SkPathOpsDebug.h.
#define TX_DEBUG_STR | ( | t | ) | #t "[%d]=%1.9g" |
Definition at line 215 of file SkPathOpsDebug.h.
#define WIND_AS_STRING | ( | x | ) |
Definition at line 51 of file SkPathOpsDebug.h.
Definition at line 240 of file PathOpsDebug.cpp.
SkOpContour * AngleContour | ( | SkOpAngle * | angle, |
int | id | ||
) |
Definition at line 244 of file PathOpsDebug.cpp.
Definition at line 248 of file PathOpsDebug.cpp.
const SkOpSegment * AngleSegment | ( | const SkOpAngle * | angle, |
int | id | ||
) |
Definition at line 252 of file PathOpsDebug.cpp.
const SkOpSpanBase * AngleSpan | ( | const SkOpAngle * | angle, |
int | id | ||
) |
Definition at line 256 of file PathOpsDebug.cpp.
const SkOpAngle * CoincidenceAngle | ( | SkOpCoincidence * | coin, |
int | id | ||
) |
Definition at line 280 of file PathOpsDebug.cpp.
SkOpContour * CoincidenceContour | ( | SkOpCoincidence * | coin, |
int | id | ||
) |
Definition at line 284 of file PathOpsDebug.cpp.
const SkOpPtT * CoincidencePtT | ( | SkOpCoincidence * | coin, |
int | id | ||
) |
Definition at line 288 of file PathOpsDebug.cpp.
const SkOpSegment * CoincidenceSegment | ( | SkOpCoincidence * | coin, |
int | id | ||
) |
Definition at line 292 of file PathOpsDebug.cpp.
const SkOpSpanBase * CoincidenceSpan | ( | SkOpCoincidence * | coin, |
int | id | ||
) |
Definition at line 296 of file PathOpsDebug.cpp.
const SkOpAngle * ContourAngle | ( | SkOpContour * | contour, |
int | id | ||
) |
Definition at line 260 of file PathOpsDebug.cpp.
SkOpContour * ContourContour | ( | SkOpContour * | contour, |
int | id | ||
) |
Definition at line 264 of file PathOpsDebug.cpp.
const SkOpPtT * ContourPtT | ( | SkOpContour * | contour, |
int | id | ||
) |
Definition at line 268 of file PathOpsDebug.cpp.
const SkOpSegment * ContourSegment | ( | SkOpContour * | contour, |
int | id | ||
) |
Definition at line 272 of file PathOpsDebug.cpp.
const SkOpSpanBase * ContourSpan | ( | SkOpContour * | contour, |
int | id | ||
) |
Definition at line 276 of file PathOpsDebug.cpp.
void Dump | ( | const SkDConic & | conic | ) |
Definition at line 1508 of file PathOpsDebug.cpp.
void Dump | ( | const SkDCubic & | cubic | ) |
Definition at line 1516 of file PathOpsDebug.cpp.
void Dump | ( | const SkDLine & | line | ) |
Definition at line 1524 of file PathOpsDebug.cpp.
void Dump | ( | const SkDPoint & | point | ) |
Definition at line 1540 of file PathOpsDebug.cpp.
void Dump | ( | const SkDQuad & | quad | ) |
Definition at line 1532 of file PathOpsDebug.cpp.
void Dump | ( | const SkOpAngle & | angle | ) |
Definition at line 1544 of file PathOpsDebug.cpp.
void Dump | ( | const SkOpContour & | contour | ) |
Definition at line 1392 of file PathOpsDebug.cpp.
void Dump | ( | const SkOpPtT & | ptT | ) |
Definition at line 1480 of file PathOpsDebug.cpp.
void Dump | ( | const SkOpSegment & | segment | ) |
Definition at line 1460 of file PathOpsDebug.cpp.
void Dump | ( | const SkOpSpanBase & | spanBase | ) |
Definition at line 1488 of file PathOpsDebug.cpp.
void Dump | ( | const SkPath & | path | ) |
Definition at line 3093 of file SkPathOpsDebug.cpp.
void DumpAll | ( | const SkOpContour & | contour | ) |
Definition at line 1396 of file PathOpsDebug.cpp.
void DumpAll | ( | const SkOpPtT & | ptT | ) |
Definition at line 1484 of file PathOpsDebug.cpp.
void DumpAll | ( | const SkOpSegment & | segment | ) |
Definition at line 1464 of file PathOpsDebug.cpp.
void DumpAll | ( | const SkOpSpanBase & | spanBase | ) |
Definition at line 1496 of file PathOpsDebug.cpp.
void DumpAngles | ( | const SkOpContour & | contour | ) |
Definition at line 1400 of file PathOpsDebug.cpp.
void DumpAngles | ( | const SkOpSegment & | segment | ) |
Definition at line 1468 of file PathOpsDebug.cpp.
void DumpCoin | ( | const SkOpSegment & | segment | ) |
Definition at line 1472 of file PathOpsDebug.cpp.
void DumpCoin | ( | const SkOpSpan & | span | ) |
Definition at line 1500 of file PathOpsDebug.cpp.
void DumpCoin | ( | const SkOpSpanBase & | spanBase | ) |
Definition at line 1492 of file PathOpsDebug.cpp.
void DumpContours | ( | const SkOpContour & | contour | ) |
Definition at line 1404 of file PathOpsDebug.cpp.
void DumpContoursAll | ( | const SkOpContour & | contour | ) |
Definition at line 1408 of file PathOpsDebug.cpp.
void DumpContoursAngles | ( | const SkOpContour & | contour | ) |
Definition at line 1412 of file PathOpsDebug.cpp.
void DumpContoursPt | ( | const SkOpContour & | contour, |
int | segmentID | ||
) |
Definition at line 1420 of file PathOpsDebug.cpp.
void DumpContoursPts | ( | const SkOpContour & | contour | ) |
Definition at line 1416 of file PathOpsDebug.cpp.
void DumpContoursSegment | ( | const SkOpContour & | contour, |
int | segmentID | ||
) |
Definition at line 1424 of file PathOpsDebug.cpp.
void DumpContoursSpan | ( | const SkOpContour & | contour, |
int | segmentID | ||
) |
Definition at line 1428 of file PathOpsDebug.cpp.
void DumpContoursSpans | ( | const SkOpContour & | contour | ) |
Definition at line 1432 of file PathOpsDebug.cpp.
void DumpHex | ( | const SkPath & | path | ) |
Definition at line 3097 of file SkPathOpsDebug.cpp.
Definition at line 1512 of file PathOpsDebug.cpp.
Definition at line 1520 of file PathOpsDebug.cpp.
Definition at line 1528 of file PathOpsDebug.cpp.
Definition at line 1536 of file PathOpsDebug.cpp.
void DumpPt | ( | const SkOpContour & | contour, |
int | pt | ||
) |
Definition at line 1436 of file PathOpsDebug.cpp.
void DumpPts | ( | const SkOpContour & | contour, |
const char * | prefix = "seg" |
||
) |
Definition at line 1440 of file PathOpsDebug.cpp.
void DumpPts | ( | const SkOpSegment & | segment, |
const char * | prefix = "seg" |
||
) |
Definition at line 1476 of file PathOpsDebug.cpp.
Definition at line 511 of file PathOpsDebug.cpp.
void DumpSegment | ( | const SkOpContour & | contour, |
int | seg | ||
) |
Definition at line 1444 of file PathOpsDebug.cpp.
void DumpSegments | ( | const SkOpContour & | contour, |
const char * | prefix = "seg" , |
||
SkPathOp | op = (SkPathOp) -1 |
||
) |
Definition at line 1448 of file PathOpsDebug.cpp.
void DumpSpan | ( | const SkOpContour & | contour, |
int | span | ||
) |
Definition at line 1452 of file PathOpsDebug.cpp.
bool DumpSpan | ( | const SkOpSpan & | span | ) |
Definition at line 1504 of file PathOpsDebug.cpp.
void DumpSpans | ( | const SkOpContour & | contour | ) |
Definition at line 1456 of file PathOpsDebug.cpp.
void DumpT | ( | const SkDQuad & | quad, |
double | t | ||
) |
Definition at line 519 of file PathOpsDebug.cpp.
Definition at line 300 of file PathOpsDebug.cpp.
SkOpContour * PtTContour | ( | SkOpPtT * | ptT, |
int | id | ||
) |
Definition at line 304 of file PathOpsDebug.cpp.
Definition at line 308 of file PathOpsDebug.cpp.
const SkOpSegment * PtTSegment | ( | const SkOpPtT * | ptT, |
int | id | ||
) |
Definition at line 312 of file PathOpsDebug.cpp.
const SkOpSpanBase * PtTSpan | ( | const SkOpPtT * | ptT, |
int | id | ||
) |
Definition at line 316 of file PathOpsDebug.cpp.
const SkOpAngle * SegmentAngle | ( | const SkOpSegment * | span, |
int | id | ||
) |
Definition at line 320 of file PathOpsDebug.cpp.
SkOpContour * SegmentContour | ( | SkOpSegment * | span, |
int | id | ||
) |
Definition at line 324 of file PathOpsDebug.cpp.
const SkOpPtT * SegmentPtT | ( | const SkOpSegment * | span, |
int | id | ||
) |
Definition at line 328 of file PathOpsDebug.cpp.
const SkOpSegment * SegmentSegment | ( | const SkOpSegment * | span, |
int | id | ||
) |
Definition at line 332 of file PathOpsDebug.cpp.
const SkOpSpanBase * SegmentSpan | ( | const SkOpSegment * | span, |
int | id | ||
) |
Definition at line 336 of file PathOpsDebug.cpp.
const SkOpAngle * SpanAngle | ( | const SkOpSpanBase * | span, |
int | id | ||
) |
Definition at line 340 of file PathOpsDebug.cpp.
SkOpContour * SpanContour | ( | SkOpSpanBase * | span, |
int | id | ||
) |
Definition at line 344 of file PathOpsDebug.cpp.
const SkOpPtT * SpanPtT | ( | const SkOpSpanBase * | span, |
int | id | ||
) |
Definition at line 348 of file PathOpsDebug.cpp.
const SkOpSegment * SpanSegment | ( | const SkOpSpanBase * | span, |
int | id | ||
) |
Definition at line 352 of file PathOpsDebug.cpp.
const SkOpSpanBase * SpanSpan | ( | const SkOpSpanBase * | span, |
int | id | ||
) |
Definition at line 356 of file PathOpsDebug.cpp.