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:
Mike Reed 2017-12-30 14:27:50 -05:00 committed by Skia Commit-Bot
parent 80746c2bd2
commit 83b2b08afc

View File

@ -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;