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

Unified Diff: src/pathops/SkPathOpsTypes.h

Issue 2273293004: path ops stream-lining (Closed)
Patch Set: remove commented out code Created 4 years, 4 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/SkPathOpsDebug.cpp ('k') | tests/PathOpsAngleTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkPathOpsTypes.h
diff --git a/src/pathops/SkPathOpsTypes.h b/src/pathops/SkPathOpsTypes.h
index b336e58855839c5ccb8bb29a7c3b40b06b8a10e3..a6457716340312a1806c2ed576484dcf5f67f21c 100644
--- a/src/pathops/SkPathOpsTypes.h
+++ b/src/pathops/SkPathOpsTypes.h
@@ -45,6 +45,10 @@ public:
kMaxWindingTries = 10
};
+ bool allocatedOpSpan() const {
+ return fAllocatedOpSpan;
+ }
+
SkChunkAlloc* allocator() {
return fAllocator;
}
@@ -127,6 +131,14 @@ public:
Phase phase() const {
return fPhase;
}
+
+ void resetAllocatedOpSpan() {
+ fAllocatedOpSpan = false;
+ }
+
+ void setAllocatedOpSpan() {
+ fAllocatedOpSpan = true;
+ }
void setAngleCoincidence() {
fAngleCoincidence = true;
@@ -159,6 +171,7 @@ private:
SkOpCoincidence* fCoincidence;
SkOpContourHead* fContourHead;
int fNested;
+ bool fAllocatedOpSpan;
bool fWindingFailed;
bool fAngleCoincidence;
Phase fPhase;
« no previous file with comments | « src/pathops/SkPathOpsDebug.cpp ('k') | tests/PathOpsAngleTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698