| Index: src/core/SkPictureRecord.cpp
|
| diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
|
| index 562f056c501d6df226f4c3821b4a24926e4ceee2..d85376a118a9310b87e29e0e7a7170dd35eee8b5 100644
|
| --- a/src/core/SkPictureRecord.cpp
|
| +++ b/src/core/SkPictureRecord.cpp
|
| @@ -510,6 +510,24 @@ void SkPictureRecord::onDrawImage(const SkImage* image, SkScalar x, SkScalar y,
|
| this->validate(initialOffset, size);
|
| }
|
|
|
| +void SkPictureRecord::onDrawImageLattice(const SkImage* image, const Lattice& lattice,
|
| + const SkRect& dst, const SkPaint* paint) {
|
| + // xCount + xDivs + yCount+ yDivs
|
| + size_t latticeSize = (1 + lattice.fXCount + 1 + lattice.fYCount) * kUInt32Size;
|
| +
|
| + // op + paint index + image index + lattice + dst rect
|
| + size_t size = 3 * kUInt32Size + latticeSize + sizeof(dst);
|
| + size_t initialOffset = this->addDraw(DRAW_IMAGE_LATTICE, &size);
|
| + this->addPaintPtr(paint);
|
| + this->addImage(image);
|
| + this->addInt(lattice.fXCount);
|
| + fWriter.writePad(lattice.fXDivs, lattice.fXCount * kUInt32Size);
|
| + this->addInt(lattice.fYCount);
|
| + fWriter.writePad(lattice.fYDivs, lattice.fYCount * kUInt32Size);
|
| + this->addRect(dst);
|
| + this->validate(initialOffset, size);
|
| +}
|
| +
|
| void SkPictureRecord::onDrawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst,
|
| const SkPaint* paint, SrcRectConstraint constraint) {
|
| // id + paint_index + image_index + bool_for_src + constraint
|
|
|