Flutter Engine
The Flutter Engine
|
#include "include/core/SkPath.h"
#include "include/core/SkPoint.h"
#include "include/core/SkTypes.h"
#include "include/pathops/SkPathOps.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkMath.h"
#include "src/base/SkArenaAlloc.h"
#include "src/base/SkFloatBits.h"
#include "src/pathops/SkIntersections.h"
#include "src/pathops/SkOpAngle.h"
#include "src/pathops/SkOpCoincidence.h"
#include "src/pathops/SkOpContour.h"
#include "src/pathops/SkOpSegment.h"
#include "src/pathops/SkOpSpan.h"
#include "src/pathops/SkPathOpsConic.h"
#include "src/pathops/SkPathOpsCubic.h"
#include "src/pathops/SkPathOpsCurve.h"
#include "src/pathops/SkPathOpsLine.h"
#include "src/pathops/SkPathOpsPoint.h"
#include "src/pathops/SkPathOpsQuad.h"
#include "src/pathops/SkPathOpsRect.h"
#include "src/pathops/SkPathOpsTSect.h"
#include "src/pathops/SkPathOpsTypes.h"
#include "tests/PathOpsDebug.h"
#include <algorithm>
#include <cfloat>
#include <cmath>
#include <cstdint>
Go to the source code of this file.
Functions | |
void | DebugDumpDouble (double x) |
void | DebugDumpFloat (float x) |
void | DebugDumpHexFloat (float x) |
static void | DumpID (int id) |
static bool | double_is_NaN (double x) |
const SkOpAngle * | AngleAngle (const SkOpAngle *angle, int id) |
SkOpContour * | AngleContour (SkOpAngle *angle, int id) |
const SkOpPtT * | AnglePtT (const SkOpAngle *angle, int id) |
const SkOpSegment * | AngleSegment (const SkOpAngle *angle, int id) |
const SkOpSpanBase * | AngleSpan (const SkOpAngle *angle, int id) |
const SkOpAngle * | ContourAngle (SkOpContour *contour, int id) |
SkOpContour * | ContourContour (SkOpContour *contour, int id) |
const SkOpPtT * | ContourPtT (SkOpContour *contour, int id) |
const SkOpSegment * | ContourSegment (SkOpContour *contour, int id) |
const SkOpSpanBase * | ContourSpan (SkOpContour *contour, int id) |
const SkOpAngle * | CoincidenceAngle (SkOpCoincidence *coin, int id) |
SkOpContour * | CoincidenceContour (SkOpCoincidence *coin, int id) |
const SkOpPtT * | CoincidencePtT (SkOpCoincidence *coin, int id) |
const SkOpSegment * | CoincidenceSegment (SkOpCoincidence *coin, int id) |
const SkOpSpanBase * | CoincidenceSpan (SkOpCoincidence *coin, int id) |
const SkOpAngle * | PtTAngle (const SkOpPtT *ptT, int id) |
SkOpContour * | PtTContour (SkOpPtT *ptT, int id) |
const SkOpPtT * | PtTPtT (const SkOpPtT *ptT, int id) |
const SkOpSegment * | PtTSegment (const SkOpPtT *ptT, int id) |
const SkOpSpanBase * | PtTSpan (const SkOpPtT *ptT, int id) |
const SkOpAngle * | SegmentAngle (const SkOpSegment *span, int id) |
SkOpContour * | SegmentContour (SkOpSegment *span, int id) |
const SkOpPtT * | SegmentPtT (const SkOpSegment *span, int id) |
const SkOpSegment * | SegmentSegment (const SkOpSegment *span, int id) |
const SkOpSpanBase * | SegmentSpan (const SkOpSegment *span, int id) |
const SkOpAngle * | SpanAngle (const SkOpSpanBase *span, int id) |
SkOpContour * | SpanContour (SkOpSpanBase *span, int id) |
const SkOpPtT * | SpanPtT (const SkOpSpanBase *span, int id) |
const SkOpSegment * | SpanSegment (const SkOpSpanBase *span, int id) |
const SkOpSpanBase * | SpanSpan (const SkOpSpanBase *span, int id) |
void | Dump (const SkTSect *sect) |
void | DumpBoth (SkTSect *sect1, SkTSect *sect2) |
void | DumpBounded (SkTSect *sect1, int id) |
void | DumpBounds (SkTSect *sect1) |
void | DumpCoin (SkTSect *sect1) |
void | DumpCoinCurves (SkTSect *sect1) |
void | DumpCurves (const SkTSect *sect) |
void | Dump (const SkTSpan *span) |
void | DumpAll (const SkTSpan *span) |
void | DumpBounded (const SkTSpan *span) |
void | DumpCoin (const SkTSpan *span) |
static void | dumpTestCase (const SkDQuad &quad1, const SkDQuad &quad2, int testNo) |
static void | dumpTestTrailer () |
static void | dumpTestList (int testNo, double min) |
void | DumpQ (const SkDQuad &quad1, const SkDQuad &quad2, int testNo) |
void | DumpT (const SkDQuad &quad, double t) |
void | Dump (const SkOpContour &contour) |
void | DumpAll (const SkOpContour &contour) |
void | DumpAngles (const SkOpContour &contour) |
void | DumpContours (const SkOpContour &contour) |
void | DumpContoursAll (const SkOpContour &contour) |
void | DumpContoursAngles (const SkOpContour &contour) |
void | DumpContoursPts (const SkOpContour &contour) |
void | DumpContoursPt (const SkOpContour &contour, int segmentID) |
void | DumpContoursSegment (const SkOpContour &contour, int segmentID) |
void | DumpContoursSpan (const SkOpContour &contour, int segmentID) |
void | DumpContoursSpans (const SkOpContour &contour) |
void | DumpPt (const SkOpContour &contour, int pt) |
void | DumpPts (const SkOpContour &contour, const char *prefix) |
void | DumpSegment (const SkOpContour &contour, int seg) |
void | DumpSegments (const SkOpContour &contour, const char *prefix, SkPathOp op) |
void | DumpSpan (const SkOpContour &contour, int span) |
void | DumpSpans (const SkOpContour &contour) |
void | Dump (const SkOpSegment &segment) |
void | DumpAll (const SkOpSegment &segment) |
void | DumpAngles (const SkOpSegment &segment) |
void | DumpCoin (const SkOpSegment &segment) |
void | DumpPts (const SkOpSegment &segment, const char *prefix) |
void | Dump (const SkOpPtT &ptT) |
void | DumpAll (const SkOpPtT &ptT) |
void | Dump (const SkOpSpanBase &spanBase) |
void | DumpCoin (const SkOpSpanBase &spanBase) |
void | DumpAll (const SkOpSpanBase &spanBase) |
void | DumpCoin (const SkOpSpan &span) |
bool | DumpSpan (const SkOpSpan &span) |
void | Dump (const SkDConic &conic) |
void | DumpID (const SkDConic &conic, int id) |
void | Dump (const SkDCubic &cubic) |
void | DumpID (const SkDCubic &cubic, int id) |
void | Dump (const SkDLine &line) |
void | DumpID (const SkDLine &line, int id) |
void | Dump (const SkDQuad &quad) |
void | DumpID (const SkDQuad &quad, int id) |
void | Dump (const SkDPoint &point) |
void | Dump (const SkOpAngle &angle) |
Variables | |
int | gDumpTSectNum |
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.
|
inline |
Definition at line 45 of file PathOpsDebug.cpp.
|
inline |
|
inline |
Definition at line 61 of file PathOpsDebug.cpp.
|
inlinestatic |
Definition at line 115 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 SkTSect * | sect | ) |
Definition at line 446 of file PathOpsDebug.cpp.
void Dump | ( | const SkTSpan * | span | ) |
Definition at line 474 of file PathOpsDebug.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 DumpAll | ( | const SkTSpan * | span | ) |
Definition at line 478 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.
Definition at line 450 of file PathOpsDebug.cpp.
void DumpBounded | ( | const SkTSpan * | span | ) |
Definition at line 482 of file PathOpsDebug.cpp.
Definition at line 454 of file PathOpsDebug.cpp.
void DumpBounds | ( | SkTSect * | sect1 | ) |
Definition at line 458 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 DumpCoin | ( | const SkTSpan * | span | ) |
Definition at line 486 of file PathOpsDebug.cpp.
void DumpCoin | ( | SkTSect * | sect1 | ) |
Definition at line 462 of file PathOpsDebug.cpp.
void DumpCoinCurves | ( | SkTSect * | sect1 | ) |
Definition at line 466 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 DumpCurves | ( | const SkTSect * | sect | ) |
Definition at line 470 of file PathOpsDebug.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.
|
static |
Definition at line 80 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 | ||
) |
Definition at line 1440 of file PathOpsDebug.cpp.
void DumpPts | ( | const SkOpSegment & | segment, |
const char * | prefix | ||
) |
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, | ||
SkPathOp | op | ||
) |
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 490 of file PathOpsDebug.cpp.
|
static |
Definition at line 503 of file PathOpsDebug.cpp.
|
static |
Definition at line 498 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.
|
extern |