Index: include/core/SkRect.h |
diff --git a/include/core/SkRect.h b/include/core/SkRect.h |
index 06f8abe0e444c2e496c05f9e9cdf36e601124d19..83689e0dfc089ad70247ed9aeb97f97d69ec4da2 100644 |
--- a/include/core/SkRect.h |
+++ b/include/core/SkRect.h |
@@ -11,6 +11,8 @@ |
#include "SkPoint.h" |
#include "SkSize.h" |
+class SkRect; |
+ |
/** \struct SkIRect |
SkIRect holds four 32 bit integer coordinates for a rectangle |
@@ -244,6 +246,10 @@ struct SK_API SkIRect { |
fRight >= r.fRight && fBottom >= r.fBottom; |
} |
+ /** Returns true if the specified rectangle r is inside or equal to this rectangle. |
+ */ |
+ bool contains(const SkRect& r) const; |
+ |
/** Return true if this rectangle contains the specified rectangle. |
For speed, this method does not check if either this or the specified |
rectangles are empty, and if either is, its return value is undefined. |