255 {
257 int dirOffset;
262 return false;
263 }
268 return false;
269 }
271 do {
273 continue;
274 }
275 contour->rayCheck(hitBase,
dir, &hitHead, &allocator);
277
280 while (hit) {
283 }
288
289#if DEBUG_WINDING
290 SkDebugf(
"%s dir=%s seg=%d t=%1.9g pt=(%1.9g,%1.9g)\n", __FUNCTION__,
293 for (
int index = 0; index <
count; ++index) {
294 hit = sorted[index];
297 bool operand = span ? hitSegment->
operand() :
false;
299 SkDebugf(
"%s [%d] valid=%d operand=%d span=%d ccw=%d ", __FUNCTION__, index,
301 if (span) {
303 }
304 SkDebugf(
" t=%1.9g pt=(%1.9g,%1.9g) slope=(%1.9g,%1.9g)\n", hit->
fT,
306 }
307#endif
309 int wind = 0;
310 int oppWind = 0;
311 for (
int index = 0; index <
count; ++index) {
312 hit = sorted[index];
314 return false;
315 }
317
319 if (!span) {
320 return false;
321 }
324 continue;
325 }
327 return false;
328 }
329 if (index <
count - 1) {
332 return false;
333 }
334 }
335 bool operand = hitSegment->
operand();
336 if (operand) {
339 }
340 int lastWind = wind;
341 int lastOpp = oppWind;
346 bool sumSet = false;
351 sumSet = true;
352 } else {
353
354
355#if 0
357 || (
abs(wind) ==
abs(lastWind)
358 && (
windSum ^ wind ^ lastWind) == spanSum));
359#endif
360 }
361 int oSpanSum = span->
oppSum();
365 } else {
366#if 0
368 || (
abs(oppWind) ==
abs(lastOpp)
369 && (
oppSum ^ oppWind ^ lastOpp) == oSpanSum));
370#endif
371 }
372 if (sumSet) {
375 } else {
378 }
379 }
380 if (operand) {
383 }
386 }
387 return true;
388}
static double get_t_guess(int tTry, int *dirOffset)
static bool hit_compare_x(const SkOpRayHit *a, const SkOpRayHit *b)
static bool ccw_dxdy(const SkDVector &v, SkOpRayDir dir)
static int xy_index(SkOpRayDir dir)
static bool hit_compare_y(const SkOpRayHit *a, const SkOpRayHit *b)
static bool reverse_hit_compare_y(const SkOpRayHit *a, const SkOpRayHit *b)
static bool less_than(SkOpRayDir dir)
static double pt_dydx(const SkDVector &v, SkOpRayDir dir)
static bool reverse_hit_compare_x(const SkOpRayHit *a, const SkOpRayHit *b)
void swap(sk_sp< T > &a, sk_sp< T > &b)
void SkTQSort(T *begin, T *end, const C &lessThan)
void dumpPtsInner(const char *prefix="seg") const
SkPath::Verb verb() const
bool markAndChaseWinding(SkOpSpanBase *start, SkOpSpanBase *end, int winding, SkOpSpanBase **lastPtr)
static bool UseInnerWinding(int outerWinding, int innerWinding)
SkOpContour * contour() const
void setWindSum(int windSum)
void setOppSum(int oppSum)
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
SIN Vec< N, float > abs(const Vec< N, float > &x)
static bool ApproximatelyEqual(const SkPoint &a, const SkPoint &b)
SkOpRayDir makeTestBase(SkOpSpan *span, double t)