Index: include/core/SkWriter32.h |
diff --git a/include/core/SkWriter32.h b/include/core/SkWriter32.h |
index 308e28897fa860df98cb473ad4c9bab9d391e54f..0db6540a9f5ee32fa2bd12beb1cb983889591d9c 100644 |
--- a/include/core/SkWriter32.h |
+++ b/include/core/SkWriter32.h |
@@ -114,6 +114,10 @@ public: |
*(SkRect*)this->reserve(sizeof(rect)) = rect; |
} |
+ void writeIRect(const SkIRect& rect) { |
+ *(SkIRect*)this->reserve(sizeof(rect)) = rect; |
+ } |
+ |
void writeRRect(const SkRRect& rrect) { |
rrect.writeToMemory(this->reserve(SkRRect::kSizeInMemory)); |
} |