Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: src/pathops/SkOpAngle.h

Issue 1037953004: add conics to path ops (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: turn off pathops specific debuggging Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pathops/SkIntersections.cpp ('k') | src/pathops/SkOpAngle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkOpAngle.h
diff --git a/src/pathops/SkOpAngle.h b/src/pathops/SkOpAngle.h
index 84b37010c94ecf11f98a004c67c7b5cfe89e731b..9947b434711fee91900fc639fbe5c35687cb2ec2 100644
--- a/src/pathops/SkOpAngle.h
+++ b/src/pathops/SkOpAngle.h
@@ -8,6 +8,7 @@
#define SkOpAngle_DEFINED
#include "SkLineParameters.h"
+#include "SkPathOpsCurve.h"
#if DEBUG_ANGLE
#include "SkString.h"
#endif
@@ -38,7 +39,7 @@ struct SkOpAngle {
SkOpContour* debugContour(int id);
int debugID() const {
- return PATH_OPS_DEBUG_RELEASE(fID, -1);
+ return SkDEBUGRELEASE(fID, -1);
}
#if DEBUG_SORT
@@ -75,7 +76,7 @@ struct SkOpAngle {
SkOpSpanBase* lastMarked() const;
bool loopContains(const SkOpAngle* ) const;
int loopCount() const;
- void markStops();
+ bool markStops();
bool merge(SkOpAngle* );
double midT() const;
bool midToSide(const SkOpAngle* rh, bool* inside) const;
@@ -102,7 +103,7 @@ struct SkOpAngle {
void setCurveHullSweep();
void setID(int id) {
- PATH_OPS_DEBUG_CODE(fID = id);
+ SkDEBUGCODE(fID = id);
}
void setLastMarked(SkOpSpanBase* marked) {
@@ -124,7 +125,7 @@ struct SkOpAngle {
return fUnorderable;
}
- SkDCubic fCurvePart; // the curve from start to end
+ SkDCurve fCurvePart; // the curve from start to end
double fSide;
SkLineParameters fTangentHalf; // used only to sort a pair of lines or line-like sections
SkOpAngle* fNext;
@@ -143,7 +144,7 @@ struct SkOpAngle {
bool fComputeSector;
bool fComputedSector;
bool fCheckCoincidence;
- PATH_OPS_DEBUG_CODE(int fID);
+ SkDEBUGCODE(int fID);
};
« no previous file with comments | « src/pathops/SkIntersections.cpp ('k') | src/pathops/SkOpAngle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698