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

Unified Diff: src/pathops/SkIntersections.h

Issue 686843002: Revert of harden pathops for pathological test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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/SkDQuadIntersection.cpp ('k') | src/pathops/SkIntersections.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkIntersections.h
diff --git a/src/pathops/SkIntersections.h b/src/pathops/SkIntersections.h
index 20823fac2b4782f30528151eb45f7104e4dc26c6..040671093c38bad841e5c70397bfb15328b40a39 100644
--- a/src/pathops/SkIntersections.h
+++ b/src/pathops/SkIntersections.h
@@ -16,7 +16,6 @@
public:
SkIntersections()
: fSwap(0)
- , fFlatMeasure(false)
#ifdef SK_DEBUG
, fDepth(0)
#endif
@@ -40,10 +39,6 @@
};
TArray operator[](int n) const { return TArray(fT[n]); }
- void allowFlatMeasure(bool flatAllowed) {
- fFlatMeasure = flatAllowed;
- }
-
void allowNear(bool nearAllowed) {
fAllowNear = nearAllowed;
}
@@ -93,12 +88,8 @@
cubic.set(a);
SkDQuad quad;
quad.set(b);
- fMax = 7;
+ fMax = 6;
return intersect(cubic, quad);
- }
-
- bool flatMeasure() const {
- return fFlatMeasure;
}
bool hasT(double t) const {
@@ -210,7 +201,7 @@
bool swapped() const {
return fSwap;
}
-
+
int used() const {
return fUsed;
}
@@ -223,7 +214,6 @@
SkASSERT(++fDepth < 16);
}
- void alignQuadPts(const SkPoint a[3], const SkPoint b[3]);
void append(const SkIntersections& );
void cleanUpCoincidence();
int coincidentUsed() const;
@@ -292,7 +282,6 @@
unsigned char fMax;
bool fAllowNear;
bool fSwap;
- bool fFlatMeasure; // backwards-compatibility when cubics uses quad intersection
#ifdef SK_DEBUG
int fDepth;
#endif
« no previous file with comments | « src/pathops/SkDQuadIntersection.cpp ('k') | src/pathops/SkIntersections.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698