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

Unified Diff: include/core/SkRRect.h

Issue 51953003: remove contains(x,y) for rects and rrects ... not well defined, and unused (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | « no previous file | include/core/SkRect.h » ('j') | src/core/SkPath.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkRRect.h
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h
index 32d62856bc90fddec1a33196f8f691ce8506de68..402e6c6c4b276ef0ad92850495b08bd2fcccec5b 100644
--- a/include/core/SkRRect.h
+++ b/include/core/SkRRect.h
@@ -199,30 +199,6 @@ public:
}
/**
- * Returns true if (p.fX,p.fY) is inside the RR, and the RR
- * is not empty.
- *
- * Contains treats the left and top differently from the right and bottom.
- * The left and top coordinates of the RR are themselves considered
- * to be inside, while the right and bottom are not. All the points on the
- * edges of the corners are considered to be inside.
- */
- bool contains(const SkPoint& p) const {
- return contains(p.fX, p.fY);
- }
-
- /**
- * Returns true if (x,y) is inside the RR, and the RR
- * is not empty.
- *
- * Contains treats the left and top differently from the right and bottom.
- * The left and top coordinates of the RR are themselves considered
- * to be inside, while the right and bottom are not. All the points on the
- * edges of the corners are considered to be inside.
- */
- bool contains(SkScalar x, SkScalar y) const;
-
- /**
* Call inset on the bounds, and adjust the radii to reflect what happens
* in stroking: If the corner is sharp (no curvature), leave it alone,
* otherwise we grow/shrink the radii by the amount of the inset. If a
« no previous file with comments | « no previous file | include/core/SkRect.h » ('j') | src/core/SkPath.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698