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>
This commit is contained in:
parent
5340b3fc43
commit
04f8b79acb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user