| Index: src/core/SkPictureRecord.cpp
|
| diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
|
| index 5f85b47aac27cb6558506c75e3893d8809f50cb0..3dbc4d941619387e4c5dfb7b051708a24bef5e20 100644
|
| --- a/src/core/SkPictureRecord.cpp
|
| +++ b/src/core/SkPictureRecord.cpp
|
| @@ -584,9 +584,10 @@ void SkPictureRecord::onDrawImage(const SkImage* image, SkScalar x, SkScalar y,
|
| }
|
|
|
| void SkPictureRecord::onDrawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst,
|
| - const SkPaint* paint) {
|
| - // id + paint_index + image_index + bool_for_src
|
| - size_t size = 4 * kUInt32Size;
|
| + const SkPaint* paint SRC_RECT_CONSTRAINT_PARAM(constraint)) {
|
| + SRC_RECT_CONSTRAINT_LOCAL_DEFAULT(constraint)
|
| + // id + paint_index + image_index + bool_for_src + constraint
|
| + size_t size = 5 * kUInt32Size;
|
| if (src) {
|
| size += sizeof(*src); // + rect
|
| }
|
| @@ -599,6 +600,7 @@ void SkPictureRecord::onDrawImageRect(const SkImage* image, const SkRect* src, c
|
| this->addImage(image);
|
| this->addRectPtr(src); // may be null
|
| this->addRect(dst);
|
| + this->addInt(constraint);
|
| this->validate(initialOffset, size);
|
| }
|
|
|
|
|