| Index: cc/paint/paint_op_buffer.h
|
| diff --git a/cc/paint/paint_op_buffer.h b/cc/paint/paint_op_buffer.h
|
| index 900eaf1e1d3817819a8a3cbdd534c6bb681a59d5..c400f51735799e7d7f3e092f54e2c8537f38954f 100644
|
| --- a/cc/paint/paint_op_buffer.h
|
| +++ b/cc/paint/paint_op_buffer.h
|
| @@ -772,6 +772,7 @@ class CC_PAINT_EXPORT PaintOpBuffer : public SkRefCnt {
|
| static constexpr size_t PaintOpAlign = ALIGNOF(DrawDRRectOp);
|
|
|
| PaintOpBuffer();
|
| + explicit PaintOpBuffer(const SkRect& cull_rect);
|
| ~PaintOpBuffer() override;
|
|
|
| void Reset();
|
| @@ -792,6 +793,8 @@ class CC_PAINT_EXPORT PaintOpBuffer : public SkRefCnt {
|
| // Resize the PaintOpBuffer to exactly fit the current amount of used space.
|
| void ShrinkToFit();
|
|
|
| + const SkRect& cullRect() const { return cull_rect_; }
|
| +
|
| PaintOp* GetFirstOp() const {
|
| return const_cast<PaintOp*>(first_op_.data_as<PaintOp>());
|
| }
|
| @@ -946,6 +949,7 @@ class CC_PAINT_EXPORT PaintOpBuffer : public SkRefCnt {
|
| // Record additional bytes used by referenced sub-records and display lists.
|
| size_t subrecord_bytes_used_ = 0;
|
| bool has_discardable_images_ = false;
|
| + SkRect cull_rect_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(PaintOpBuffer);
|
| };
|
|
|