Go to the source code of this file.
◆ FAIL_IF_COIN
#define FAIL_IF_COIN |
( |
|
cond, |
|
|
|
coin |
|
) |
| do { if (cond) log->record(SkPathOpsDebug::kFail_Glitch, coin); } while (false) |
◆ FAIL_WITH_NULL_IF
#define FAIL_WITH_NULL_IF |
( |
|
cond, |
|
|
|
span |
|
) |
| do { if (cond) log->record(SkPathOpsDebug::kFail_Glitch, span); } while (false) |
◆ RETURN_FALSE_IF
#define RETURN_FALSE_IF |
( |
|
cond, |
|
|
|
span |
|
) |
| |
Value: do {
if (cond)
log->record(SkPathOpsDebug::kReturnFalse_Glitch, span); \
} while (false)
Definition at line 49 of file SkPathOpsDebug.cpp.
◆ SUPPORT_RECT_CONTOUR_DETECTION
#define SUPPORT_RECT_CONTOUR_DETECTION 0 |
◆ Dump()
void Dump |
( |
const SkPath & |
path | ) |
|
Definition at line 3093 of file SkPathOpsDebug.cpp.
3093 {
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
◆ DumpHex()
void DumpHex |
( |
const SkPath & |
path | ) |
|
◆ output_points()
static void output_points |
( |
const SkPoint * |
pts, |
|
|
int |
count |
|
) |
| |
|
static |
Definition at line 2808 of file SkPathOpsDebug.cpp.
2808 {
2809 for (
int index = 0; index <
count; ++index) {
2813 if (index + 1 <
count) {
2815 }
2816 }
2817}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void output_scalar(SkScalar num)
◆ output_scalar()
static void output_scalar |
( |
SkScalar |
num | ) |
|
|
static |
Definition at line 2792 of file SkPathOpsDebug.cpp.
2792 {
2793 if (num == (int) num) {
2795 } else {
2797 str.
printf(
"%1.9g", num);
2799 const char* cStr = str.
c_str();
2800 while (cStr[
width - 1] ==
'0') {
2802 }
2805 }
2806}
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const
◆ show_function_header()
static void show_function_header |
( |
const char * |
functionName | ) |
|
|
static |
Definition at line 528 of file SkPathOpsDebug.cpp.
528 {
529 SkDebugf(
"\nstatic void %s(skiatest::Reporter* reporter, const char* filename) {\n", functionName);
530 if (strcmp("skphealth_com76", functionName) == 0) {
532 }
533}
◆ show_op()
static void show_op |
( |
SkPathOp |
op, |
|
|
const char * |
pathOne, |
|
|
const char * |
pathTwo |
|
) |
| |
|
static |
Definition at line 547 of file SkPathOpsDebug.cpp.
547 {
548 SkDebugf(
" testPathOp(reporter, %s, %s, %s, filename);\n", pathOne, pathTwo,
gOpStrs[op]);
550}
static const char * gOpStrs[]
◆ showPathContours()
static void showPathContours |
( |
const SkPath & |
path, |
|
|
const char * |
pathName |
|
) |
| |
|
static |
Definition at line 2819 of file SkPathOpsDebug.cpp.
2819 {
2821 switch (verb) {
2826 continue;
2831 break;
2836 break;
2838 SkDebugf(
" %s.conicTo(", pathName);
2841 break;
2843 SkDebugf(
" %s.cubicTo(", pathName);
2846 break;
2848 SkDebugf(
" %s.close();\n", pathName);
2849 break;
2850 default:
2852 return;
2853 }
2854 }
2855}
#define SkDEBUGFAIL(message)
static void output_points(const SkPoint *pts, int count)
@ kClose
SkPath::RawIter returns 0 points.
@ kCubic
SkPath::RawIter returns 4 points.
@ kConic
SkPath::RawIter returns 3 points + 1 weight.
@ kQuad
SkPath::RawIter returns 3 points.
@ kMove
SkPath::RawIter returns 1 point.
@ kLine
SkPath::RawIter returns 2 points.
◆ gFillTypeStr
const char* gFillTypeStr[] |
|
static |
Initial value:= {
"kWinding",
"kEvenOdd",
"kInverseWinding",
"kInverseEvenOdd"
}
Definition at line 2857 of file SkPathOpsDebug.cpp.
◆ gOpStrs
Initial value:= {
"kDifference_SkPathOp",
"kIntersect_SkPathOp",
"kUnion_SkPathOp",
"kXOR_PathOp",
"kReverseDifference_SkPathOp",
}
Definition at line 535 of file SkPathOpsDebug.cpp.