Index: cc/paint/record_paint_canvas.h |
diff --git a/cc/paint/record_paint_canvas.h b/cc/paint/record_paint_canvas.h |
index a99b597b84c1e2c2314c5a8f33162146a686761f..4eb391d747ac48a4daf32f03f0de8432d5dbe6ee 100644 |
--- a/cc/paint/record_paint_canvas.h |
+++ b/cc/paint/record_paint_canvas.h |
@@ -24,7 +24,7 @@ class PaintFlags; |
class CC_PAINT_EXPORT RecordPaintCanvas final : public PaintCanvas { |
public: |
- explicit RecordPaintCanvas(PaintOpBuffer* buffer); |
+ explicit RecordPaintCanvas(PaintOpBuffer* buffer, const SkRect& bounds); |
~RecordPaintCanvas() override; |
SkMetaData& getMetaData() override; |
@@ -148,6 +148,7 @@ class CC_PAINT_EXPORT RecordPaintCanvas final : public PaintCanvas { |
// This is mutable so that const functions (e.g. quickReject) that may |
// lazy initialize the canvas can still be const. |
mutable base::Optional<SkNoDrawCanvas> canvas_; |
+ SkRect recording_bounds_; |
DISALLOW_COPY_AND_ASSIGN(RecordPaintCanvas); |
}; |