SkPathOpsCommon.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2012 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef SkPathOpsCommon_DEFINED
  8. #define SkPathOpsCommon_DEFINED
  9. #include "include/private/SkTDArray.h"
  10. #include "src/pathops/SkOpAngle.h"
  11. class SkOpCoincidence;
  12. class SkOpContour;
  13. class SkPathWriter;
  14. const SkOpAngle* AngleWinding(SkOpSpanBase* start, SkOpSpanBase* end, int* windingPtr,
  15. bool* sortable);
  16. SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr,
  17. SkOpSpanBase** endPtr);
  18. SkOpSpan* FindSortableTop(SkOpContourHead* );
  19. SkOpSpan* FindUndone(SkOpContourHead* );
  20. bool FixWinding(SkPath* path);
  21. bool SortContourList(SkOpContourHead** , bool evenOdd, bool oppEvenOdd);
  22. bool HandleCoincidence(SkOpContourHead* , SkOpCoincidence* );
  23. bool OpDebug(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result
  24. SkDEBUGPARAMS(bool skipAssert)
  25. SkDEBUGPARAMS(const char* testName));
  26. #endif