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

Unified Diff: cc/paint/paint_op_buffer.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/drawing_display_item.cc ('k') | cc/paint/paint_op_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/paint_op_buffer.h
diff --git a/cc/paint/paint_op_buffer.h b/cc/paint/paint_op_buffer.h
index c400f51735799e7d7f3e092f54e2c8537f38954f..900eaf1e1d3817819a8a3cbdd534c6bb681a59d5 100644
--- a/cc/paint/paint_op_buffer.h
+++ b/cc/paint/paint_op_buffer.h
@@ -772,7 +772,6 @@ 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();
@@ -793,8 +792,6 @@ 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>());
}
@@ -949,7 +946,6 @@ 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);
};
« no previous file with comments | « cc/paint/drawing_display_item.cc ('k') | cc/paint/paint_op_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698