diff options
author | Mike Reed <reed@google.com> | 2018-01-24 13:48:08 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-24 19:07:40 +0000 |
commit | 04f8b79acbec4a03fbac199d4bb2b561046e2268 (patch) | |
tree | 70c524f55878b7144dbdd1c99bed8c70e88e0629 /src/core | |
parent | 5340b3fc43119f16f6d69d1a83f6755826cfa8b3 (diff) |
fix serializing shadowrec
follow-up to https://skia-review.googlesource.com/95741
Interestingly, due to 7530, this CL will not actually get exercised by the bots.
Bug: skia:7530
Change-Id: I93043e82ee672d4b425b79360e3d03346afad7fe
Reviewed-on: https://skia-review.googlesource.com/99323
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkPictureRecord.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index f0acc75c65..911cecae38 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -785,7 +785,7 @@ void SkPictureRecord::onDrawAtlas(const SkImage* atlas, const SkRSXform xform[], void SkPictureRecord::onDrawShadowRec(const SkPath& path, const SkDrawShadowRec& rec) { // op + path index + zParams + lightPos + lightRadius + spot/ambient alphas + color + flags - size_t size = 2 * kUInt32Size + 2 * sizeof(SkPoint3) + 3 * sizeof(SkScalar) + 2 * kUInt32Size; + size_t size = 2 * kUInt32Size + 2 * sizeof(SkPoint3) + 1 * sizeof(SkScalar) + 3 * kUInt32Size; size_t initialOffset = this->addDraw(DRAW_SHADOW_REC, &size); this->addPath(path); |