diff options
Diffstat (limited to 'include/core/SkReader32.h')
-rw-r--r-- | include/core/SkReader32.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkReader32.h b/include/core/SkReader32.h index 4f6809fd9e..7a8d22a80c 100644 --- a/include/core/SkReader32.h +++ b/include/core/SkReader32.h @@ -13,6 +13,7 @@ #include "SkMatrix.h" #include "SkPath.h" #include "SkRegion.h" +#include "SkRRect.h" #include "SkScalar.h" class SkString; @@ -117,6 +118,11 @@ public: (void)this->skip(size); } + SkRRect* readRRect(SkRRect* rrect) { + rrect->readFromMemory(this->skip(SkRRect::kSizeInMemory)); + return rrect; + } + void readRegion(SkRegion* rgn) { size_t size = rgn->readFromMemory(this->peek()); SkASSERT(SkAlign4(size) == size); |