fix pipe reader for drawLattice
Bug: skia: Change-Id: Ic2c4dc4a0441987528268ec13e44a873b33e6bdc Reviewed-on: https://skia-review.googlesource.com/90022 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
parent
80746c2bd2
commit
83b2b08afc
@ -552,8 +552,8 @@ static void drawImageLattice_handler(SkPipeReader& reader, uint32_t packedVerb,
|
||||
if (packedVerb & kHasFlags_DrawImageLatticeMask) {
|
||||
int32_t count = (lattice.fXCount + 1) * (lattice.fYCount + 1);
|
||||
SkASSERT(count > 0);
|
||||
lattice.fRectTypes = skip<SkCanvas::Lattice::RectType>(reader, SkAlign4(count));
|
||||
lattice.fColors = skip<SkColor>(reader, SkAlign4(count));
|
||||
lattice.fRectTypes = skip<SkCanvas::Lattice::RectType>(reader, count);
|
||||
lattice.fColors = skip<SkColor>(reader, count);
|
||||
} else {
|
||||
lattice.fRectTypes = nullptr;
|
||||
lattice.fColors = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user