32 int verbCount =
path.countVerbs();
34 (void)
path.getVerbs(verbs, verbCount);
35 for (
int index = 1; index < verbCount; ++index) {
48 temp.reversePathTo(*
path);
66 path->setFillType(fillType);
78 if (!contourHead.
count()) {
81 if (!contourHead.
next()) {
86 bool writePath =
false;
94 SkDebugf(
"%s id=%d nested=%d ccw=%d\n", __FUNCTION__,
95 topSegment->
debugID(), globalState.nested(), topContour->
isCcw());
97 if ((globalState.nested() & 1) !=
SkToBool(topContour->
isCcw())) {
102 globalState.clearNested();
105 path->setFillType(fillType);
112 if (!
test->count()) {
115 if (
test->reversed()) {
116 test->toReversePath(&woundPath);
118 test->toPath(&woundPath);
121 *
path = *woundPath.nativePath();
122 path->setFillType(fillType);
135void SkOpBuilder::reset() {
146 bool allUnion =
true;
148 for (
int index = 0; index <
count; ++index) {
155 if (
test->isConvex()) {
163 }
else if (firstDir !=
dir) {
170 for (
int inner = 0; inner < index; ++inner) {
172 if (SkRect::Intersects(fPathRefs[inner].getBounds(), testBounds)) {
180 for (
int index = 1; index <
count; ++index) {
191 for (
int index = 0; index <
count; ++index) {
192 if (!
Simplify(fPathRefs[index], &fPathRefs[index])) {
197 if (!fPathRefs[index].isEmpty()) {
199 if (!FixWinding(&fPathRefs[index])) {
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static bool one_contour(const SkPath &path)
SkOpSpan * FindSortableTop(SkOpContourHead *)
#define SkDEBUGPARAMS(...)
@ kUnion_SkPathOp
union (inclusive-or) the two paths
bool SK_API Simplify(const SkPath &path, SkPath *result)
static constexpr bool SkToBool(const T &x)
T * makeArrayDefault(size_t count)
void add(const SkPath &path, SkPathOp _operator)
bool resolve(SkPath *result)
SkOpContour * contour() const
SkOpSegment * segment() const
static SkPathFirstDirection ComputeFirstDirection(const SkPath &)
SkPath & moveTo(SkScalar x, SkScalar y)
SkPath & addPath(const SkPath &src, SkScalar dx, SkScalar dy, AddPathMode mode=kAppend_AddPathMode)
EMSCRIPTEN_KEEPALIVE void empty()
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 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 to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir