Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(938)

Unified Diff: cc/paint/record_paint_canvas.h

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/paint/paint_shader.h ('k') | cc/paint/record_paint_canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « cc/paint/paint_shader.h ('k') | cc/paint/record_paint_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698