#include <SkPathOpsDebug.h>
Definition at line 233 of file SkPathOpsDebug.h.
◆ ChaseContains()
Definition at line 67 of file SkPathOpsDebug.cpp.
68 {
69 for (
int index = 0; index < chaseArray.
size(); ++index) {
71 if (entry == span) {
72 return true;
73 }
74 }
75 return false;
76}
◆ CheckHealth()
static void SkPathOpsDebug::CheckHealth |
( |
class SkOpContourHead * |
contourList | ) |
|
|
static |
◆ MathematicaIze()
void SkPathOpsDebug::MathematicaIze |
( |
char * |
str, |
|
|
size_t |
bufferSize |
|
) |
| |
|
static |
Definition at line 497 of file SkPathOpsDebug.cpp.
497 {
498 size_t len = strlen(str);
499 bool num = false;
500 for (
size_t idx = 0; idx <
len; ++idx) {
501 if (num && str[idx] == 'e') {
502 if (
len + 2 >= bufferLen) {
503 return;
504 }
505 memmove(&str[idx + 2], &str[idx + 1],
len - idx);
506 str[idx] = '*';
507 str[idx + 1] = '^';
509 }
510 num = str[idx] >= '0' && str[idx] <= '9';
511 }
512}
◆ OpStr()
const char * SkPathOpsDebug::OpStr |
( |
SkPathOp |
op | ) |
|
|
static |
◆ ShowActiveSpans()
Definition at line 343 of file SkPathOpsDebug.cpp.
343 {
344#if DEBUG_ACTIVE_SPANS
347 do {
348 contour->debugShowActiveSpans(&str);
350 if (!gActiveSpans.equals(str)) {
351 const char*
s = str.
c_str();
353 while ((
end = strchr(
s,
'\n'))) {
356 }
357 gActiveSpans.set(str);
358 }
359#endif
360}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
const char * c_str() const
◆ ShowOnePath()
void SkPathOpsDebug::ShowOnePath |
( |
const SkPath & |
path, |
|
|
const char * |
name, |
|
|
bool |
includeDeclaration |
|
) |
| |
|
static |
Definition at line 2864 of file SkPathOpsDebug.cpp.
2864 {
2865#define SUPPORT_RECT_CONTOUR_DETECTION 0
2866#if SUPPORT_RECT_CONTOUR_DETECTION
2867 int rectCount =
path.isRectContours() ?
path.rectContours(
nullptr,
nullptr) : 0;
2868 if (rectCount > 0) {
2871 rects.setCount(rectCount);
2872 directions.setCount(rectCount);
2876 SkDebugf(
"path.addRect(%1.9g, %1.9g, %1.9g, %1.9g, %s);\n",
rect.fLeft,
rect.fTop,
2878 ? "SkPathDirection::kCCW" : "SkPathDirection::kCW");
2879 }
2880 return;
2881 }
2882#endif
2885 if (includeDeclaration) {
2887 }
2890}
static const char * gFillTypeStr[]
static void showPathContours(const SkPath &path, const char *pathName)
sk_sp< SkBlender > blender SkRect rect
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
DEF_SWITCHES_START aot vmservice shared library name
◆ ShowPath()
void SkPathOpsDebug::ShowPath |
( |
const SkPath & |
one, |
|
|
const SkPath & |
two, |
|
|
SkPathOp |
op, |
|
|
const char * |
name |
|
) |
| |
|
static |
Definition at line 552 of file SkPathOpsDebug.cpp.
553 {
554 static SkMutex& mutex = *(new SkMutex);
555
560 show_op(shapeOp,
"path",
"pathB");
561}
static void show_op(SkPathOp op, const char *pathOne, const char *pathTwo)
static void show_function_header(const char *functionName)
static void ShowOnePath(const SkPath &path, const char *name, bool includeDeclaration)
◆ ValidWind()
bool SkPathOpsDebug::ValidWind |
( |
int |
winding | ) |
|
|
static |
Definition at line 514 of file SkPathOpsDebug.cpp.
514 {
516}
static constexpr int32_t SK_MinS32
static constexpr int32_t SK_MaxS32
◆ WindingPrintf()
void SkPathOpsDebug::WindingPrintf |
( |
int |
winding | ) |
|
|
static |
◆ gRunFail
bool SkPathOpsDebug::gRunFail |
|
static |
◆ gVeryVerbose
bool SkPathOpsDebug::gVeryVerbose |
|
static |
The documentation for this class was generated from the following files: