Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions | Variables
PathOpsDebug.cpp File Reference
#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 SkOpAngleAngleAngle (const SkOpAngle *angle, int id)
 
SkOpContourAngleContour (SkOpAngle *angle, int id)
 
const SkOpPtTAnglePtT (const SkOpAngle *angle, int id)
 
const SkOpSegmentAngleSegment (const SkOpAngle *angle, int id)
 
const SkOpSpanBaseAngleSpan (const SkOpAngle *angle, int id)
 
const SkOpAngleContourAngle (SkOpContour *contour, int id)
 
SkOpContourContourContour (SkOpContour *contour, int id)
 
const SkOpPtTContourPtT (SkOpContour *contour, int id)
 
const SkOpSegmentContourSegment (SkOpContour *contour, int id)
 
const SkOpSpanBaseContourSpan (SkOpContour *contour, int id)
 
const SkOpAngleCoincidenceAngle (SkOpCoincidence *coin, int id)
 
SkOpContourCoincidenceContour (SkOpCoincidence *coin, int id)
 
const SkOpPtTCoincidencePtT (SkOpCoincidence *coin, int id)
 
const SkOpSegmentCoincidenceSegment (SkOpCoincidence *coin, int id)
 
const SkOpSpanBaseCoincidenceSpan (SkOpCoincidence *coin, int id)
 
const SkOpAnglePtTAngle (const SkOpPtT *ptT, int id)
 
SkOpContourPtTContour (SkOpPtT *ptT, int id)
 
const SkOpPtTPtTPtT (const SkOpPtT *ptT, int id)
 
const SkOpSegmentPtTSegment (const SkOpPtT *ptT, int id)
 
const SkOpSpanBasePtTSpan (const SkOpPtT *ptT, int id)
 
const SkOpAngleSegmentAngle (const SkOpSegment *span, int id)
 
SkOpContourSegmentContour (SkOpSegment *span, int id)
 
const SkOpPtTSegmentPtT (const SkOpSegment *span, int id)
 
const SkOpSegmentSegmentSegment (const SkOpSegment *span, int id)
 
const SkOpSpanBaseSegmentSpan (const SkOpSegment *span, int id)
 
const SkOpAngleSpanAngle (const SkOpSpanBase *span, int id)
 
SkOpContourSpanContour (SkOpSpanBase *span, int id)
 
const SkOpPtTSpanPtT (const SkOpSpanBase *span, int id)
 
const SkOpSegmentSpanSegment (const SkOpSpanBase *span, int id)
 
const SkOpSpanBaseSpanSpan (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
 

Function Documentation

◆ AngleAngle()

const SkOpAngle * AngleAngle ( const SkOpAngle angle,
int  id 
)

Definition at line 240 of file PathOpsDebug.cpp.

240 {
241 return angle->debugAngle(id);
242}
const SkOpAngle * debugAngle(int id) const

◆ AngleContour()

SkOpContour * AngleContour ( SkOpAngle angle,
int  id 
)

Definition at line 244 of file PathOpsDebug.cpp.

244 {
245 return angle->debugContour(id);
246}
SkOpContour * debugContour(int id) const

◆ AnglePtT()

const SkOpPtT * AnglePtT ( const SkOpAngle angle,
int  id 
)

Definition at line 248 of file PathOpsDebug.cpp.

248 {
249 return angle->debugPtT(id);
250}
const SkOpPtT * debugPtT(int id) const

◆ AngleSegment()

const SkOpSegment * AngleSegment ( const SkOpAngle angle,
int  id 
)

Definition at line 252 of file PathOpsDebug.cpp.

252 {
253 return angle->debugSegment(id);
254}
const SkOpSegment * debugSegment(int id) const

◆ AngleSpan()

const SkOpSpanBase * AngleSpan ( const SkOpAngle angle,
int  id 
)

Definition at line 256 of file PathOpsDebug.cpp.

256 {
257 return angle->debugSpan(id);
258}
const SkOpSpanBase * debugSpan(int id) const

◆ CoincidenceAngle()

const SkOpAngle * CoincidenceAngle ( SkOpCoincidence coin,
int  id 
)

Definition at line 280 of file PathOpsDebug.cpp.

280 {
281 return coin->debugAngle(id);
282}
const SkOpAngle * debugAngle(int id) const

◆ CoincidenceContour()

SkOpContour * CoincidenceContour ( SkOpCoincidence coin,
int  id 
)

Definition at line 284 of file PathOpsDebug.cpp.

284 {
285 return coin->debugContour(id);
286}
SkOpContour * debugContour(int id) const

◆ CoincidencePtT()

const SkOpPtT * CoincidencePtT ( SkOpCoincidence coin,
int  id 
)

Definition at line 288 of file PathOpsDebug.cpp.

288 {
289 return coin->debugPtT(id);
290}
const SkOpPtT * debugPtT(int id) const

◆ CoincidenceSegment()

const SkOpSegment * CoincidenceSegment ( SkOpCoincidence coin,
int  id 
)

Definition at line 292 of file PathOpsDebug.cpp.

292 {
293 return coin->debugSegment(id);
294}
const SkOpSegment * debugSegment(int id) const

◆ CoincidenceSpan()

const SkOpSpanBase * CoincidenceSpan ( SkOpCoincidence coin,
int  id 
)

Definition at line 296 of file PathOpsDebug.cpp.

296 {
297 return coin->debugSpan(id);
298}
const SkOpSpanBase * debugSpan(int id) const

◆ ContourAngle()

const SkOpAngle * ContourAngle ( SkOpContour contour,
int  id 
)

Definition at line 260 of file PathOpsDebug.cpp.

260 {
261 return contour->debugAngle(id);
262}

◆ ContourContour()

SkOpContour * ContourContour ( SkOpContour contour,
int  id 
)

Definition at line 264 of file PathOpsDebug.cpp.

264 {
265 return contour->debugContour(id);
266}

◆ ContourPtT()

const SkOpPtT * ContourPtT ( SkOpContour contour,
int  id 
)

Definition at line 268 of file PathOpsDebug.cpp.

268 {
269 return contour->debugPtT(id);
270}

◆ ContourSegment()

const SkOpSegment * ContourSegment ( SkOpContour contour,
int  id 
)

Definition at line 272 of file PathOpsDebug.cpp.

272 {
273 return contour->debugSegment(id);
274}

◆ ContourSpan()

const SkOpSpanBase * ContourSpan ( SkOpContour contour,
int  id 
)

Definition at line 276 of file PathOpsDebug.cpp.

276 {
277 return contour->debugSpan(id);
278}

◆ DebugDumpDouble()

void DebugDumpDouble ( double  x)
inline

Definition at line 45 of file PathOpsDebug.cpp.

45 {
46 if (x == floor(x)) {
47 SkDebugf("%.0f", x);
48 } else {
49 SkDebugf("%1.19g", x);
50 }
51}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
double x
SIN Vec< N, float > floor(const Vec< N, float > &x)
Definition SkVx.h:703

◆ DebugDumpFloat()

void DebugDumpFloat ( float  x)
inline

Definition at line 53 of file PathOpsDebug.cpp.

53 {
54 if (x == floorf(x)) {
55 SkDebugf("%.0f", x);
56 } else {
57 SkDebugf("%1.9gf", x);
58 }
59}

◆ DebugDumpHexFloat()

void DebugDumpHexFloat ( float  x)
inline

Definition at line 61 of file PathOpsDebug.cpp.

61 {
62 SkDebugf("SkBits2Float(0x%08x)", SkFloat2Bits(x));
63}
static uint32_t SkFloat2Bits(float value)
Definition SkFloatBits.h:41

◆ double_is_NaN()

static bool double_is_NaN ( double  x)
inlinestatic

Definition at line 115 of file PathOpsDebug.cpp.

115{ return x != x; }

◆ Dump() [1/12]

void Dump ( const SkDConic conic)

Definition at line 1508 of file PathOpsDebug.cpp.

1508 {
1509 conic.dump();
1510}
AI float conic(float tolerance, const SkPoint pts[], float w, const VectorXform &vectorXform=VectorXform())

◆ Dump() [2/12]

void Dump ( const SkDCubic cubic)

Definition at line 1516 of file PathOpsDebug.cpp.

1516 {
1517 cubic.dump();
1518}
AI float cubic(float precision, const SkPoint pts[], const VectorXform &vectorXform=VectorXform())

◆ Dump() [3/12]

void Dump ( const SkDLine line)

Definition at line 1524 of file PathOpsDebug.cpp.

1524 {
1525 line.dump();
1526}

◆ Dump() [4/12]

void Dump ( const SkDPoint point)

Definition at line 1540 of file PathOpsDebug.cpp.

1540 {
1541 point.dump();
1542}
void dump() const

◆ Dump() [5/12]

void Dump ( const SkDQuad quad)

Definition at line 1532 of file PathOpsDebug.cpp.

1532 {
1533 quad.dump();
1534}
void dump() const

◆ Dump() [6/12]

void Dump ( const SkOpAngle angle)

Definition at line 1544 of file PathOpsDebug.cpp.

1544 {
1545 angle.dump();
1546}
void dump() const

◆ Dump() [7/12]

void Dump ( const SkOpContour contour)

Definition at line 1392 of file PathOpsDebug.cpp.

1392 {
1393 contour.dump();
1394}

◆ Dump() [8/12]

void Dump ( const SkOpPtT ptT)

Definition at line 1480 of file PathOpsDebug.cpp.

1480 {
1481 ptT.dump();
1482}
void dump() const

◆ Dump() [9/12]

void Dump ( const SkOpSegment segment)

Definition at line 1460 of file PathOpsDebug.cpp.

1460 {
1461 segment.dump();
1462}
void dump() const

◆ Dump() [10/12]

void Dump ( const SkOpSpanBase spanBase)

Definition at line 1488 of file PathOpsDebug.cpp.

1488 {
1489 spanBase.dump();
1490}
void dump() const

◆ Dump() [11/12]

void Dump ( const SkTSect sect)

Definition at line 446 of file PathOpsDebug.cpp.

446 {
447 sect->dump();
448}
void dump() const

◆ Dump() [12/12]

void Dump ( const SkTSpan span)

Definition at line 474 of file PathOpsDebug.cpp.

474 {
475 span->dump();
476}
void dump() const

◆ DumpAll() [1/5]

void DumpAll ( const SkOpContour contour)

Definition at line 1396 of file PathOpsDebug.cpp.

1396 {
1397 contour.dumpAll();
1398}

◆ DumpAll() [2/5]

void DumpAll ( const SkOpPtT ptT)

Definition at line 1484 of file PathOpsDebug.cpp.

1484 {
1485 ptT.dumpAll();
1486}
void dumpAll() const

◆ DumpAll() [3/5]

void DumpAll ( const SkOpSegment segment)

Definition at line 1464 of file PathOpsDebug.cpp.

1464 {
1465 segment.dumpAll();
1466}
void dumpAll() const

◆ DumpAll() [4/5]

void DumpAll ( const SkOpSpanBase spanBase)

Definition at line 1496 of file PathOpsDebug.cpp.

1496 {
1497 spanBase.dumpAll();
1498}
void dumpAll() const

◆ DumpAll() [5/5]

void DumpAll ( const SkTSpan span)

Definition at line 478 of file PathOpsDebug.cpp.

478 {
479 span->dumpAll();
480}
void dumpAll() const

◆ DumpAngles() [1/2]

void DumpAngles ( const SkOpContour contour)

Definition at line 1400 of file PathOpsDebug.cpp.

1400 {
1401 contour.dumpAngles();
1402}

◆ DumpAngles() [2/2]

void DumpAngles ( const SkOpSegment segment)

Definition at line 1468 of file PathOpsDebug.cpp.

1468 {
1469 segment.dumpAngles();
1470}
void dumpAngles() const

◆ DumpBoth()

void DumpBoth ( SkTSect sect1,
SkTSect sect2 
)

Definition at line 450 of file PathOpsDebug.cpp.

450 {
451 sect1->dumpBoth(sect2);
452}
void dumpBoth(SkTSect *) const

◆ DumpBounded() [1/2]

void DumpBounded ( const SkTSpan span)

Definition at line 482 of file PathOpsDebug.cpp.

482 {
483 span->dumpBounded(0);
484}
void dumpBounded(int id) const

◆ DumpBounded() [2/2]

void DumpBounded ( SkTSect sect1,
int  id 
)

Definition at line 454 of file PathOpsDebug.cpp.

454 {
455 sect1->dumpBounded(id);
456}
void dumpBounded(int id) const

◆ DumpBounds()

void DumpBounds ( SkTSect sect1)

Definition at line 458 of file PathOpsDebug.cpp.

458 {
459 sect1->dumpBounds();
460}
void dumpBounds() const

◆ DumpCoin() [1/5]

void DumpCoin ( const SkOpSegment segment)

Definition at line 1472 of file PathOpsDebug.cpp.

1472 {
1473 segment.dumpCoin();
1474}
void dumpCoin() const

◆ DumpCoin() [2/5]

void DumpCoin ( const SkOpSpan span)

Definition at line 1500 of file PathOpsDebug.cpp.

1500 {
1501 span.dumpCoin();
1502}
void dumpCoin() const

◆ DumpCoin() [3/5]

void DumpCoin ( const SkOpSpanBase spanBase)

Definition at line 1492 of file PathOpsDebug.cpp.

1492 {
1493 spanBase.dumpCoin();
1494}
void dumpCoin() const

◆ DumpCoin() [4/5]

void DumpCoin ( const SkTSpan span)

Definition at line 486 of file PathOpsDebug.cpp.

486 {
487 span->dumpCoin();
488}
void dumpCoin() const

◆ DumpCoin() [5/5]

void DumpCoin ( SkTSect sect1)

Definition at line 462 of file PathOpsDebug.cpp.

462 {
463 sect1->dumpCoin();
464}
void dumpCoin() const

◆ DumpCoinCurves()

void DumpCoinCurves ( SkTSect sect1)

Definition at line 466 of file PathOpsDebug.cpp.

466 {
467 sect1->dumpCoinCurves();
468}
void dumpCoinCurves() const

◆ DumpContours()

void DumpContours ( const SkOpContour contour)

Definition at line 1404 of file PathOpsDebug.cpp.

1404 {
1405 contour.dumpContours();
1406}

◆ DumpContoursAll()

void DumpContoursAll ( const SkOpContour contour)

Definition at line 1408 of file PathOpsDebug.cpp.

1408 {
1409 contour.dumpContoursAll();
1410}

◆ DumpContoursAngles()

void DumpContoursAngles ( const SkOpContour contour)

Definition at line 1412 of file PathOpsDebug.cpp.

1412 {
1413 contour.dumpContoursAngles();
1414}

◆ DumpContoursPt()

void DumpContoursPt ( const SkOpContour contour,
int  segmentID 
)

Definition at line 1420 of file PathOpsDebug.cpp.

1420 {
1421 contour.dumpContoursPt(segmentID);
1422}

◆ DumpContoursPts()

void DumpContoursPts ( const SkOpContour contour)

Definition at line 1416 of file PathOpsDebug.cpp.

1416 {
1417 contour.dumpContoursPts();
1418}

◆ DumpContoursSegment()

void DumpContoursSegment ( const SkOpContour contour,
int  segmentID 
)

Definition at line 1424 of file PathOpsDebug.cpp.

1424 {
1425 contour.dumpContoursSegment(segmentID);
1426}

◆ DumpContoursSpan()

void DumpContoursSpan ( const SkOpContour contour,
int  segmentID 
)

Definition at line 1428 of file PathOpsDebug.cpp.

1428 {
1429 contour.dumpContoursSpan(segmentID);
1430}

◆ DumpContoursSpans()

void DumpContoursSpans ( const SkOpContour contour)

Definition at line 1432 of file PathOpsDebug.cpp.

1432 {
1433 contour.dumpContoursSpans();
1434}

◆ DumpCurves()

void DumpCurves ( const SkTSect sect)

Definition at line 470 of file PathOpsDebug.cpp.

470 {
471 sect->dumpCurves();
472}
void dumpCurves() const

◆ DumpID() [1/5]

void DumpID ( const SkDConic conic,
int  id 
)

Definition at line 1512 of file PathOpsDebug.cpp.

1512 {
1513 conic.dumpID(id);
1514}

◆ DumpID() [2/5]

void DumpID ( const SkDCubic cubic,
int  id 
)

Definition at line 1520 of file PathOpsDebug.cpp.

1520 {
1521 cubic.dumpID(id);
1522}

◆ DumpID() [3/5]

void DumpID ( const SkDLine line,
int  id 
)

Definition at line 1528 of file PathOpsDebug.cpp.

1528 {
1529 line.dumpID(id);
1530}

◆ DumpID() [4/5]

void DumpID ( const SkDQuad quad,
int  id 
)

Definition at line 1536 of file PathOpsDebug.cpp.

1536 {
1537 quad.dumpID(id);
1538}
void dumpID(int id) const

◆ DumpID() [5/5]

static void DumpID ( int  id)
static

Definition at line 80 of file PathOpsDebug.cpp.

80 {
81 SkDebugf("} ");
82 if (id >= 0) {
83 SkDebugf("id=%d", id);
84 }
85 SkDebugf("\n");
86}

◆ DumpPt()

void DumpPt ( const SkOpContour contour,
int  pt 
)

Definition at line 1436 of file PathOpsDebug.cpp.

1436 {
1437 contour.dumpPt(pt);
1438}

◆ DumpPts() [1/2]

void DumpPts ( const SkOpContour contour,
const char *  prefix 
)

Definition at line 1440 of file PathOpsDebug.cpp.

1440 {
1441 contour.dumpPts(prefix);
1442}

◆ DumpPts() [2/2]

void DumpPts ( const SkOpSegment segment,
const char *  prefix 
)

Definition at line 1476 of file PathOpsDebug.cpp.

1476 {
1477 segment.dumpPts(prefix);
1478}
void dumpPts(const char *prefix="seg") const

◆ DumpQ()

void DumpQ ( const SkDQuad quad1,
const SkDQuad quad2,
int  testNo 
)

Definition at line 511 of file PathOpsDebug.cpp.

511 {
512 SkDebugf("\n");
513 dumpTestCase(quad1, quad2, testNo);
515 dumpTestList(testNo, 0);
516 SkDebugf("\n");
517}
static void dumpTestTrailer()
static void dumpTestList(int testNo, double min)
static void dumpTestCase(const SkDQuad &quad1, const SkDQuad &quad2, int testNo)

◆ DumpSegment()

void DumpSegment ( const SkOpContour contour,
int  seg 
)

Definition at line 1444 of file PathOpsDebug.cpp.

1444 {
1445 contour.dumpSegment(seg);
1446}

◆ DumpSegments()

void DumpSegments ( const SkOpContour contour,
const char *  prefix,
SkPathOp  op 
)

Definition at line 1448 of file PathOpsDebug.cpp.

1448 {
1449 contour.dumpSegments(prefix, op);
1450}

◆ DumpSpan() [1/2]

void DumpSpan ( const SkOpContour contour,
int  span 
)

Definition at line 1452 of file PathOpsDebug.cpp.

1452 {
1453 contour.dumpSpan(span);
1454}

◆ DumpSpan() [2/2]

bool DumpSpan ( const SkOpSpan span)

Definition at line 1504 of file PathOpsDebug.cpp.

1504 {
1505 return span.dumpSpan();
1506}
bool dumpSpan() const

◆ DumpSpans()

void DumpSpans ( const SkOpContour contour)

Definition at line 1456 of file PathOpsDebug.cpp.

1456 {
1457 contour.dumpSpans();
1458}

◆ DumpT()

void DumpT ( const SkDQuad quad,
double  t 
)

Definition at line 519 of file PathOpsDebug.cpp.

519 {
520 SkDLine line = {{quad.ptAtT(t), quad[0]}};
521 line.dump();
522}
SkDPoint ptAtT(double t) const

◆ dumpTestCase()

static void dumpTestCase ( const SkDQuad quad1,
const SkDQuad quad2,
int  testNo 
)
static

Definition at line 490 of file PathOpsDebug.cpp.

490 {
491 SkDebugf("\n<div id=\"quad%d\">\n", testNo);
492 quad1.dumpInner();
493 SkDebugf("}}, ");
494 quad2.dump();
495 SkDebugf("</div>\n\n");
496}
void dumpInner() const

◆ dumpTestList()

static void dumpTestList ( int  testNo,
double  min 
)
static

Definition at line 503 of file PathOpsDebug.cpp.

503 {
504 SkDebugf(" quad%d,", testNo);
505 if (min > 0) {
506 SkDebugf(" // %1.9g", min);
507 }
508 SkDebugf("\n");
509}
static float min(float r, float g, float b)
Definition hsl.cpp:48

◆ dumpTestTrailer()

static void dumpTestTrailer ( )
static

Definition at line 498 of file PathOpsDebug.cpp.

498 {
499 SkDebugf("</div>\n\n<script type=\"text/javascript\">\n\n");
500 SkDebugf(" var testDivs = [\n");
501}

◆ PtTAngle()

const SkOpAngle * PtTAngle ( const SkOpPtT ptT,
int  id 
)

Definition at line 300 of file PathOpsDebug.cpp.

300 {
301 return ptT->debugAngle(id);
302}
const SkOpAngle * debugAngle(int id) const

◆ PtTContour()

SkOpContour * PtTContour ( SkOpPtT ptT,
int  id 
)

Definition at line 304 of file PathOpsDebug.cpp.

304 {
305 return ptT->debugContour(id);
306}
SkOpContour * debugContour(int id) const

◆ PtTPtT()

const SkOpPtT * PtTPtT ( const SkOpPtT ptT,
int  id 
)

Definition at line 308 of file PathOpsDebug.cpp.

308 {
309 return ptT->debugPtT(id);
310}
const SkOpPtT * debugPtT(int id) const

◆ PtTSegment()

const SkOpSegment * PtTSegment ( const SkOpPtT ptT,
int  id 
)

Definition at line 312 of file PathOpsDebug.cpp.

312 {
313 return ptT->debugSegment(id);
314}
const SkOpSegment * debugSegment(int id) const

◆ PtTSpan()

const SkOpSpanBase * PtTSpan ( const SkOpPtT ptT,
int  id 
)

Definition at line 316 of file PathOpsDebug.cpp.

316 {
317 return ptT->debugSpan(id);
318}
const SkOpSpanBase * debugSpan(int id) const

◆ SegmentAngle()

const SkOpAngle * SegmentAngle ( const SkOpSegment span,
int  id 
)

Definition at line 320 of file PathOpsDebug.cpp.

320 {
321 return span->debugAngle(id);
322}
const SkOpAngle * debugAngle(int id) const

◆ SegmentContour()

SkOpContour * SegmentContour ( SkOpSegment span,
int  id 
)

Definition at line 324 of file PathOpsDebug.cpp.

324 {
325 return span->debugContour(id);
326}
SkOpContour * debugContour(int id) const

◆ SegmentPtT()

const SkOpPtT * SegmentPtT ( const SkOpSegment span,
int  id 
)

Definition at line 328 of file PathOpsDebug.cpp.

328 {
329 return span->debugPtT(id);
330}
const SkOpPtT * debugPtT(int id) const

◆ SegmentSegment()

const SkOpSegment * SegmentSegment ( const SkOpSegment span,
int  id 
)

Definition at line 332 of file PathOpsDebug.cpp.

332 {
333 return span->debugSegment(id);
334}
const SkOpSegment * debugSegment(int id) const

◆ SegmentSpan()

const SkOpSpanBase * SegmentSpan ( const SkOpSegment span,
int  id 
)

Definition at line 336 of file PathOpsDebug.cpp.

336 {
337 return span->debugSpan(id);
338}
const SkOpSpanBase * debugSpan(int id) const

◆ SpanAngle()

const SkOpAngle * SpanAngle ( const SkOpSpanBase span,
int  id 
)

Definition at line 340 of file PathOpsDebug.cpp.

340 {
341 return span->debugAngle(id);
342}
const SkOpAngle * debugAngle(int id) const

◆ SpanContour()

SkOpContour * SpanContour ( SkOpSpanBase span,
int  id 
)

Definition at line 344 of file PathOpsDebug.cpp.

344 {
345 return span->debugContour(id);
346}
SkOpContour * debugContour(int id) const

◆ SpanPtT()

const SkOpPtT * SpanPtT ( const SkOpSpanBase span,
int  id 
)

Definition at line 348 of file PathOpsDebug.cpp.

348 {
349 return span->debugPtT(id);
350}
const SkOpPtT * debugPtT(int id) const

◆ SpanSegment()

const SkOpSegment * SpanSegment ( const SkOpSpanBase span,
int  id 
)

Definition at line 352 of file PathOpsDebug.cpp.

352 {
353 return span->debugSegment(id);
354}
const SkOpSegment * debugSegment(int id) const

◆ SpanSpan()

const SkOpSpanBase * SpanSpan ( const SkOpSpanBase span,
int  id 
)

Definition at line 356 of file PathOpsDebug.cpp.

356 {
357 return span->debugSpan(id);
358}
const SkOpSpanBase * debugSpan(int id) const

Variable Documentation

◆ gDumpTSectNum

int gDumpTSectNum
extern