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

Unified Diff: src/pathops/SkPathOpsBounds.h

Issue 1111333002: compute initial winding from projected rays (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add missing test reference Created 5 years, 7 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/SkOpSpan.cpp ('k') | src/pathops/SkPathOpsCommon.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkPathOpsBounds.h
diff --git a/src/pathops/SkPathOpsBounds.h b/src/pathops/SkPathOpsBounds.h
index 7b9daa3671d4c0fc36efe54134bf780beeaf3b5a..b99f36f5d969a2572c95e401c38aa68e56a6a467 100644
--- a/src/pathops/SkPathOpsBounds.h
+++ b/src/pathops/SkPathOpsBounds.h
@@ -47,19 +47,6 @@ struct SkPathOpsBounds : public SkRect {
&& AlmostLessOrEqualUlps(pt.fY, fBottom);
}
- // unlike isEmpty(), this permits lines, but not points
- // FIXME: unused for now
- bool isReallyEmpty() const {
- // use !<= instead of > to detect NaN values
- return !(fLeft <= fRight) || !(fTop <= fBottom)
- || (fLeft == fRight && fTop == fBottom);
- }
-
- void setPointBounds(const SkDPoint& pt) {
- fLeft = fRight = SkDoubleToScalar(pt.fX);
- fTop = fBottom = SkDoubleToScalar(pt.fY);
- }
-
typedef SkRect INHERITED;
};
« no previous file with comments | « src/pathops/SkOpSpan.cpp ('k') | src/pathops/SkPathOpsCommon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698