| Index: src/core/SkPictureRecord.cpp
|
| diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
|
| index ac05e841d77474de18a177592412bc3427eeb263..000365889348cf4262e75cdf21a6b4dffda6bd14 100644
|
| --- a/src/core/SkPictureRecord.cpp
|
| +++ b/src/core/SkPictureRecord.cpp
|
| @@ -460,6 +460,14 @@
|
| return offset;
|
| }
|
|
|
| +void SkPictureRecord::clear(SkColor color) {
|
| + // op + color
|
| + size_t size = 2 * kUInt32Size;
|
| + size_t initialOffset = this->addDraw(DRAW_CLEAR, &size);
|
| + this->addInt(color);
|
| + this->validate(initialOffset, size);
|
| +}
|
| +
|
| void SkPictureRecord::drawPaint(const SkPaint& paint) {
|
| // op + paint index
|
| size_t size = 2 * kUInt32Size;
|
|
|