Index: include/core/SkRRect.h |
=================================================================== |
--- include/core/SkRRect.h (revision 8834) |
+++ include/core/SkRRect.h (working copy) |
@@ -251,6 +251,12 @@ |
this->inset(-dx, -dy, this); |
} |
+ /** |
+ * Returns true if 'rect' is wholy inside the RR, and both |
+ * are not empty. |
+ */ |
+ bool contains(const SkRect& rect) const; |
+ |
SkDEBUGCODE(void validate() const;) |
enum { |
@@ -280,6 +286,7 @@ |
// uninitialized data |
void computeType() const; |
+ bool checkCornerContainment(SkScalar x, SkScalar y) const; |
// to access fRadii directly |
friend class SkPath; |