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

Unified Diff: src/pathops/SkOpSpan.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/SkOpSegment.cpp ('k') | src/pathops/SkOpSpan.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkOpSpan.h
diff --git a/src/pathops/SkOpSpan.h b/src/pathops/SkOpSpan.h
index 9e5939a5e1e90f15a696b01af243144d1470085a..bf03f4d5f6a61480cb62d0fee69d36a581600ad0 100644
--- a/src/pathops/SkOpSpan.h
+++ b/src/pathops/SkOpSpan.h
@@ -50,7 +50,7 @@ public:
SkOpContour* contour() const;
int debugID() const {
- return PATH_OPS_DEBUG_RELEASE(fID, -1);
+ return SkDEBUGRELEASE(fID, -1);
}
const SkOpAngle* debugAngle(int id) const;
@@ -119,12 +119,12 @@ protected:
SkOpPtT* fNext; // intersection on opposite curve or alias on this curve
bool fDeleted; // set if removed from span list
bool fDuplicatePt; // set if identical pt is somewhere in the next loop
- PATH_OPS_DEBUG_CODE(int fID);
+ SkDEBUGCODE(int fID);
};
class SkOpSpanBase {
public:
- void addSimpleAngle(bool checkFrom , SkChunkAlloc* );
+ bool addSimpleAngle(bool checkFrom , SkChunkAlloc* );
void align();
bool aligned() const {
@@ -164,11 +164,11 @@ public:
SkOpContour* contour() const;
int debugBumpCount() {
- return PATH_OPS_DEBUG_RELEASE(++fCount, -1);
+ return SkDEBUGRELEASE(++fCount, -1);
}
int debugID() const {
- return PATH_OPS_DEBUG_RELEASE(fID, -1);
+ return SkDEBUGRELEASE(fID, -1);
}
const SkOpAngle* debugAngle(int id) const;
@@ -318,8 +318,8 @@ protected: // no direct access to internals to avoid treating a span base as a
SkOpSpan* fPrev; // previous intersection point
bool fAligned;
bool fChased; // set after span has been added to chase array
- PATH_OPS_DEBUG_CODE(int fCount); // number of pt/t pairs added
- PATH_OPS_DEBUG_CODE(int fID);
+ SkDEBUGCODE(int fCount); // number of pt/t pairs added
+ SkDEBUGCODE(int fID);
};
class SkOpSpan : public SkOpSpanBase {
« no previous file with comments | « src/pathops/SkOpSegment.cpp ('k') | src/pathops/SkOpSpan.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698