diff options
author | 2017-05-22 12:02:21 -0400 | |
---|---|---|
committer | 2017-05-22 18:02:53 +0000 | |
commit | 4123d0ff867f41c40fd288b31f4c976069753ccc (patch) | |
tree | 4de7858f3c2d3bb53fec1c2bc4720b5b514a599b /include | |
parent | ee26363aaae62db2a851f2873e2405a9cf7f995a (diff) |
Add serialization support for drawShadowRec
Change-Id: Ic7f76681a037d8f53a6fdc25061c39559f5c3e30
Reviewed-on: https://skia-review.googlesource.com/17457
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkWriter32.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkWriter32.h b/include/core/SkWriter32.h index a5ecb3f24a..478d24ba95 100644 --- a/include/core/SkWriter32.h +++ b/include/core/SkWriter32.h @@ -15,6 +15,7 @@ #include "SkMatrix.h" #include "SkPath.h" #include "SkPoint.h" +#include "SkPoint3.h" #include "SkRRect.h" #include "SkRect.h" #include "SkRegion.h" @@ -118,6 +119,10 @@ public: *(SkPoint*)this->reserve(sizeof(pt)) = pt; } + void writePoint3(const SkPoint3& pt) { + *(SkPoint3*)this->reserve(sizeof(pt)) = pt; + } + void writeRect(const SkRect& rect) { *(SkRect*)this->reserve(sizeof(rect)) = rect; } |