Flutter Engine
The Flutter Engine
Classes | Macros | Functions
SkPathOpsDebug.h File Reference
#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)
 

Functions

const SkOpAngleAngleAngle (const SkOpAngle *, int id)
 
SkOpContourAngleContour (SkOpAngle *, int id)
 
const SkOpPtTAnglePtT (const SkOpAngle *, int id)
 
const SkOpSegmentAngleSegment (const SkOpAngle *, int id)
 
const SkOpSpanBaseAngleSpan (const SkOpAngle *, int id)
 
const SkOpAngleContourAngle (SkOpContour *, int id)
 
SkOpContourContourContour (SkOpContour *, int id)
 
const SkOpPtTContourPtT (SkOpContour *, int id)
 
const SkOpSegmentContourSegment (SkOpContour *, int id)
 
const SkOpSpanBaseContourSpan (SkOpContour *, int id)
 
const SkOpAngleCoincidenceAngle (SkOpCoincidence *, int id)
 
SkOpContourCoincidenceContour (SkOpCoincidence *, int id)
 
const SkOpPtTCoincidencePtT (SkOpCoincidence *, int id)
 
const SkOpSegmentCoincidenceSegment (SkOpCoincidence *, int id)
 
const SkOpSpanBaseCoincidenceSpan (SkOpCoincidence *, int id)
 
const SkOpAnglePtTAngle (const SkOpPtT *, int id)
 
SkOpContourPtTContour (SkOpPtT *, int id)
 
const SkOpPtTPtTPtT (const SkOpPtT *, int id)
 
const SkOpSegmentPtTSegment (const SkOpPtT *, int id)
 
const SkOpSpanBasePtTSpan (const SkOpPtT *, int id)
 
const SkOpAngleSegmentAngle (const SkOpSegment *, int id)
 
SkOpContourSegmentContour (SkOpSegment *, int id)
 
const SkOpPtTSegmentPtT (const SkOpSegment *, int id)
 
const SkOpSegmentSegmentSegment (const SkOpSegment *, int id)
 
const SkOpSpanBaseSegmentSpan (const SkOpSegment *, int id)
 
const SkOpAngleSpanAngle (const SkOpSpanBase *, int id)
 
SkOpContourSpanContour (SkOpSpanBase *, int id)
 
const SkOpPtTSpanPtT (const SkOpSpanBase *, int id)
 
const SkOpSegmentSpanSegment (const SkOpSpanBase *, int id)
 
const SkOpSpanBaseSpanSpan (const SkOpSpanBase *, int id)
 
void Dump (const SkOpContour &)
 
void DumpAll (const SkOpContour &)
 
void DumpAngles (const SkOpContour &)
 
void DumpContours (const SkOpContour &)
 
void DumpContoursAll (const SkOpContour &)
 
void DumpContoursAngles (const SkOpContour &)
 
void DumpContoursPts (const SkOpContour &)
 
void DumpContoursPt (const SkOpContour &, int segmentID)
 
void DumpContoursSegment (const SkOpContour &, int segmentID)
 
void DumpContoursSpan (const SkOpContour &, int segmentID)
 
void DumpContoursSpans (const SkOpContour &)
 
void DumpPt (const SkOpContour &, int)
 
void DumpPts (const SkOpContour &, const char *prefix="seg")
 
void DumpSegment (const SkOpContour &, int)
 
void DumpSegments (const SkOpContour &, const char *prefix="seg", SkPathOp op=(SkPathOp) -1)
 
void DumpSpan (const SkOpContour &, int)
 
void DumpSpans (const SkOpContour &)
 
void Dump (const SkOpSegment &)
 
void DumpAll (const SkOpSegment &)
 
void DumpAngles (const SkOpSegment &)
 
void DumpCoin (const SkOpSegment &)
 
void DumpPts (const SkOpSegment &, const char *prefix="seg")
 
void Dump (const SkOpPtT &)
 
void DumpAll (const SkOpPtT &)
 
void Dump (const SkOpSpanBase &)
 
void DumpCoin (const SkOpSpanBase &)
 
void DumpAll (const SkOpSpanBase &)
 
void DumpCoin (const SkOpSpan &)
 
bool DumpSpan (const SkOpSpan &)
 
void Dump (const SkDConic &)
 
void DumpID (const SkDConic &, int id)
 
void Dump (const SkDCubic &)
 
void DumpID (const SkDCubic &, int id)
 
void Dump (const SkDLine &)
 
void DumpID (const SkDLine &, int id)
 
void Dump (const SkDQuad &)
 
void DumpID (const SkDQuad &, int id)
 
void Dump (const SkDPoint &)
 
void Dump (const SkOpAngle &)
 
void DumpQ (const SkDQuad &quad1, const SkDQuad &quad2, int testNo)
 
void DumpT (const SkDQuad &quad, double t)
 
void Dump (const SkPath &path)
 
void DumpHex (const SkPath &path)
 

Macro Definition Documentation

◆ CONIC_DEBUG_DATA

#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

Definition at line 217 of file SkPathOpsDebug.h.

◆ CONIC_DEBUG_STR

#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.

◆ CUBIC_DEBUG_DATA

#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.

◆ CUBIC_DEBUG_STR

#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.

◆ DEBUG_ACTIVE_OP

#define DEBUG_ACTIVE_OP   0

Definition at line 57 of file SkPathOpsDebug.h.

◆ DEBUG_ACTIVE_SPANS

#define DEBUG_ACTIVE_SPANS   0

Definition at line 58 of file SkPathOpsDebug.h.

◆ DEBUG_ADD_INTERSECTING_TS

#define DEBUG_ADD_INTERSECTING_TS   0

Definition at line 59 of file SkPathOpsDebug.h.

◆ DEBUG_ADD_T

#define DEBUG_ADD_T   0

Definition at line 60 of file SkPathOpsDebug.h.

◆ DEBUG_ALIGNMENT

#define DEBUG_ALIGNMENT   0

Definition at line 61 of file SkPathOpsDebug.h.

◆ DEBUG_ANGLE

#define DEBUG_ANGLE   0

Definition at line 62 of file SkPathOpsDebug.h.

◆ DEBUG_ASSEMBLE

#define DEBUG_ASSEMBLE   0

Definition at line 63 of file SkPathOpsDebug.h.

◆ DEBUG_COIN

#define DEBUG_COIN   0

Definition at line 148 of file SkPathOpsDebug.h.

◆ DEBUG_COIN_DECLARE_ONLY_PARAMS

#define DEBUG_COIN_DECLARE_ONLY_PARAMS ( )

Definition at line 196 of file SkPathOpsDebug.h.

◆ DEBUG_COIN_DECLARE_PARAMS

#define DEBUG_COIN_DECLARE_PARAMS ( )

Definition at line 197 of file SkPathOpsDebug.h.

◆ DEBUG_COIN_ONLY_PARAMS

#define DEBUG_COIN_ONLY_PARAMS ( )

Definition at line 198 of file SkPathOpsDebug.h.

◆ DEBUG_COIN_PARAMS

#define DEBUG_COIN_PARAMS ( )

Definition at line 199 of file SkPathOpsDebug.h.

◆ DEBUG_COINCIDENCE

#define DEBUG_COINCIDENCE   0

Definition at line 64 of file SkPathOpsDebug.h.

◆ DEBUG_COINCIDENCE_DUMP

#define DEBUG_COINCIDENCE_DUMP   0

Definition at line 65 of file SkPathOpsDebug.h.

◆ DEBUG_COINCIDENCE_ORDER

#define DEBUG_COINCIDENCE_ORDER   0

Definition at line 66 of file SkPathOpsDebug.h.

◆ DEBUG_COINCIDENCE_VERBOSE

#define DEBUG_COINCIDENCE_VERBOSE   0

Definition at line 67 of file SkPathOpsDebug.h.

◆ DEBUG_CUBIC_BINARY_SEARCH

#define DEBUG_CUBIC_BINARY_SEARCH   0

Definition at line 68 of file SkPathOpsDebug.h.

◆ DEBUG_CUBIC_SPLIT

#define DEBUG_CUBIC_SPLIT   0

Definition at line 69 of file SkPathOpsDebug.h.

◆ DEBUG_DUMP_SEGMENTS

#define DEBUG_DUMP_SEGMENTS   0

Definition at line 70 of file SkPathOpsDebug.h.

◆ DEBUG_DUMP_VERIFY

#define DEBUG_DUMP_VERIFY   0

Definition at line 71 of file SkPathOpsDebug.h.

◆ DEBUG_FLOW

#define DEBUG_FLOW   0

Definition at line 72 of file SkPathOpsDebug.h.

◆ DEBUG_ITER_ONLY_PARAMS

#define DEBUG_ITER_ONLY_PARAMS (   iteration)

Definition at line 200 of file SkPathOpsDebug.h.

◆ DEBUG_ITER_PARAMS

#define DEBUG_ITER_PARAMS (   iteration)

Definition at line 201 of file SkPathOpsDebug.h.

◆ DEBUG_LIMIT_WIND_SUM

#define DEBUG_LIMIT_WIND_SUM   0

Definition at line 73 of file SkPathOpsDebug.h.

◆ DEBUG_MARK_DONE

#define DEBUG_MARK_DONE   0

Definition at line 74 of file SkPathOpsDebug.h.

◆ DEBUG_PATH_CONSTRUCTION

#define DEBUG_PATH_CONSTRUCTION   0

Definition at line 75 of file SkPathOpsDebug.h.

◆ DEBUG_PERP

#define DEBUG_PERP   0

Definition at line 76 of file SkPathOpsDebug.h.

◆ DEBUG_PHASE_ONLY_PARAMS

#define DEBUG_PHASE_ONLY_PARAMS (   phase)

Definition at line 202 of file SkPathOpsDebug.h.

◆ DEBUG_PHASE_PARAMS

#define DEBUG_PHASE_PARAMS (   phase)

Definition at line 203 of file SkPathOpsDebug.h.

◆ DEBUG_SET_PHASE

#define DEBUG_SET_PHASE ( )

Definition at line 204 of file SkPathOpsDebug.h.

◆ DEBUG_SORT

#define DEBUG_SORT   0

Definition at line 77 of file SkPathOpsDebug.h.

◆ DEBUG_STATIC_SET_PHASE

#define DEBUG_STATIC_SET_PHASE (   obj)

Definition at line 205 of file SkPathOpsDebug.h.

◆ DEBUG_T_SECT

#define DEBUG_T_SECT   0

Definition at line 78 of file SkPathOpsDebug.h.

◆ DEBUG_T_SECT_DUMP

#define DEBUG_T_SECT_DUMP   0

Definition at line 79 of file SkPathOpsDebug.h.

◆ DEBUG_T_SECT_LOOP_COUNT

#define DEBUG_T_SECT_LOOP_COUNT   0

Definition at line 80 of file SkPathOpsDebug.h.

◆ DEBUG_TEST

#define DEBUG_TEST   0

Definition at line 223 of file SkPathOpsDebug.h.

◆ DEBUG_UNDER_DEVELOPMENT

#define DEBUG_UNDER_DEVELOPMENT   0

Definition at line 40 of file SkPathOpsDebug.h.

◆ DEBUG_VALIDATE

#define DEBUG_VALIDATE   0

Definition at line 81 of file SkPathOpsDebug.h.

◆ DEBUG_WINDING

#define DEBUG_WINDING   0

Definition at line 82 of file SkPathOpsDebug.h.

◆ DEBUG_WINDING_AT_T

#define DEBUG_WINDING_AT_T   0

Definition at line 83 of file SkPathOpsDebug.h.

◆ FAIL_IF

#define FAIL_IF (   cond)     do { bool fail = (cond); SkOPASSERT(!fail); if (fail) return false; } while (false)

Definition at line 227 of file SkPathOpsDebug.h.

◆ FAIL_WITH_NULL_IF

#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.

◆ FORCE_RELEASE

#define FORCE_RELEASE   1

Definition at line 37 of file SkPathOpsDebug.h.

◆ LINE_DEBUG_DATA

#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.

◆ LINE_DEBUG_STR

#define LINE_DEBUG_STR   "{{{%1.9g,%1.9g}, {%1.9g,%1.9g}}}"

Definition at line 211 of file SkPathOpsDebug.h.

◆ ONE_OFF_DEBUG

#define ONE_OFF_DEBUG   0

Definition at line 42 of file SkPathOpsDebug.h.

◆ ONE_OFF_DEBUG_MATHEMATICA

#define ONE_OFF_DEBUG_MATHEMATICA   0

Definition at line 43 of file SkPathOpsDebug.h.

◆ PATH_OPS_DEBUG_T_SECT_CODE

#define PATH_OPS_DEBUG_T_SECT_CODE (   ...)

Definition at line 134 of file SkPathOpsDebug.h.

◆ PATH_OPS_DEBUG_T_SECT_PARAMS

#define PATH_OPS_DEBUG_T_SECT_PARAMS (   ...)

Definition at line 133 of file SkPathOpsDebug.h.

◆ PATH_OPS_DEBUG_T_SECT_RELEASE

#define PATH_OPS_DEBUG_T_SECT_RELEASE (   a,
  b 
)    b

Definition at line 132 of file SkPathOpsDebug.h.

◆ PATH_OPS_DEBUG_VALIDATE_PARAMS

#define PATH_OPS_DEBUG_VALIDATE_PARAMS (   ...)

Definition at line 126 of file SkPathOpsDebug.h.

◆ PT_DEBUG_DATA

#define PT_DEBUG_DATA (   i,
 
)    i.pt(n).asSkPoint().fX, i.pt(n).asSkPoint().fY

Definition at line 220 of file SkPathOpsDebug.h.

◆ PT_DEBUG_STR

#define PT_DEBUG_STR   "{{%1.9g,%1.9g}}"

Definition at line 212 of file SkPathOpsDebug.h.

◆ QUAD_DEBUG_DATA

#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.

◆ QUAD_DEBUG_STR

#define QUAD_DEBUG_STR   "{{{%1.9g,%1.9g}, {%1.9g,%1.9g}, {%1.9g,%1.9g}}}"

Definition at line 210 of file SkPathOpsDebug.h.

◆ SK_RAND

#define SK_RAND (   seed)    rand_r(&seed)

Definition at line 48 of file SkPathOpsDebug.h.

◆ SkDEBUGPARAMS

#define SkDEBUGPARAMS (   ...)    , __VA_ARGS__

Definition at line 122 of file SkPathOpsDebug.h.

◆ SkDEBUGRELEASE

#define SkDEBUGRELEASE (   a,
  b 
)    a

Definition at line 121 of file SkPathOpsDebug.h.

◆ T_DEBUG_STR

#define T_DEBUG_STR (   t,
 
)    #t "[" #n "]=%1.9g"

Definition at line 214 of file SkPathOpsDebug.h.

◆ TX_DEBUG_STR

#define TX_DEBUG_STR (   t)    #t "[%d]=%1.9g"

Definition at line 215 of file SkPathOpsDebug.h.

◆ WIND_AS_STRING

#define WIND_AS_STRING (   x)
Value:
char x##Str[12]; \
if (!SkPathOpsDebug::ValidWind(x)) strcpy(x##Str, "?"); \
else snprintf(x##Str, sizeof(x##Str), "%d", x)
static bool ValidWind(int winding)
double x

Definition at line 51 of file SkPathOpsDebug.h.

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}

◆ Dump() [1/11]

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())
Definition: WangsFormula.h:287

◆ Dump() [2/11]

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())
Definition: WangsFormula.h:195

◆ Dump() [3/11]

void Dump ( const SkDLine line)

Definition at line 1524 of file PathOpsDebug.cpp.

1524 {
1525 line.dump();
1526}

◆ Dump() [4/11]

void Dump ( const SkDPoint point)

Definition at line 1540 of file PathOpsDebug.cpp.

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

◆ Dump() [5/11]

void Dump ( const SkDQuad quad)

Definition at line 1532 of file PathOpsDebug.cpp.

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

◆ Dump() [6/11]

void Dump ( const SkOpAngle angle)

Definition at line 1544 of file PathOpsDebug.cpp.

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

◆ Dump() [7/11]

void Dump ( const SkOpContour contour)

Definition at line 1392 of file PathOpsDebug.cpp.

1392 {
1393 contour.dump();
1394}

◆ Dump() [8/11]

void Dump ( const SkOpPtT ptT)

Definition at line 1480 of file PathOpsDebug.cpp.

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

◆ Dump() [9/11]

void Dump ( const SkOpSegment segment)

Definition at line 1460 of file PathOpsDebug.cpp.

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

◆ Dump() [10/11]

void Dump ( const SkOpSpanBase spanBase)

Definition at line 1488 of file PathOpsDebug.cpp.

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

◆ Dump() [11/11]

void Dump ( const SkPath path)

Definition at line 3093 of file SkPathOpsDebug.cpp.

3093 {
3094 path.dump();
3095}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57

◆ DumpAll() [1/4]

void DumpAll ( const SkOpContour contour)

Definition at line 1396 of file PathOpsDebug.cpp.

1396 {
1397 contour.dumpAll();
1398}

◆ DumpAll() [2/4]

void DumpAll ( const SkOpPtT ptT)

Definition at line 1484 of file PathOpsDebug.cpp.

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

◆ DumpAll() [3/4]

void DumpAll ( const SkOpSegment segment)

Definition at line 1464 of file PathOpsDebug.cpp.

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

◆ DumpAll() [4/4]

void DumpAll ( const SkOpSpanBase spanBase)

Definition at line 1496 of file PathOpsDebug.cpp.

1496 {
1497 spanBase.dumpAll();
1498}
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

◆ DumpCoin() [1/3]

void DumpCoin ( const SkOpSegment segment)

Definition at line 1472 of file PathOpsDebug.cpp.

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

◆ DumpCoin() [2/3]

void DumpCoin ( const SkOpSpan span)

Definition at line 1500 of file PathOpsDebug.cpp.

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

◆ DumpCoin() [3/3]

void DumpCoin ( const SkOpSpanBase spanBase)

Definition at line 1492 of file PathOpsDebug.cpp.

1492 {
1493 spanBase.dumpCoin();
1494}
void dumpCoin() 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}

◆ DumpHex()

void DumpHex ( const SkPath path)

Definition at line 3097 of file SkPathOpsDebug.cpp.

3097 {
3098 path.dumpHex();
3099}

◆ DumpID() [1/4]

void DumpID ( const SkDConic conic,
int  id 
)

Definition at line 1512 of file PathOpsDebug.cpp.

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

◆ DumpID() [2/4]

void DumpID ( const SkDCubic cubic,
int  id 
)

Definition at line 1520 of file PathOpsDebug.cpp.

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

◆ DumpID() [3/4]

void DumpID ( const SkDLine line,
int  id 
)

Definition at line 1528 of file PathOpsDebug.cpp.

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

◆ DumpID() [4/4]

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

◆ 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 = "seg" 
)

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 = "seg" 
)

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)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1

◆ 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 = "seg",
SkPathOp  op = (SkPathOp) -1 
)

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

◆ 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