#include "SkMatrix.h"
#include "SkPath.h"
#include "SkRegion.h"
+#include "SkRRect.h"
#include "SkScalar.h"
class SkString;
(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);
#include "SkPath.h"
#include "SkPoint.h"
#include "SkRect.h"
+#include "SkRRect.h"
#include "SkMatrix.h"
#include "SkRegion.h"
void writeRect(const SkRect& rect) {
*(SkRect*)this->reserve(sizeof(rect)) = rect;
}
-
+
+ void writeRRect(const SkRRect& rrect) {
+ rrect.writeToMemory(this->reserve(SkRRect::kSizeInMemory));
+ }
+
void writePath(const SkPath& path) {
size_t size = path.writeToMemory(NULL);
SkASSERT(SkAlign4(size) == size);