Index: include/core/SkRRect.h |
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h |
index 141a3d27afc98e0ed5692cae076e2f616362fbdc..257c8236e2b66cf230839b927521dcadb5c37916 100644 |
--- a/include/core/SkRRect.h |
+++ b/include/core/SkRRect.h |
@@ -224,6 +224,13 @@ public: |
void outset(SkScalar dx, SkScalar dy) { |
this->inset(-dx, -dy, this); |
} |
+ |
+ /** |
+ * Translate the rrect by (dx, dy). |
+ */ |
+ void offset(SkScalar dx, SkScalar dy) { |
+ fRect.offset(dx, dy); |
+ } |
/** |
* Returns true if 'rect' is wholy inside the RR, and both |