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

Unified Diff: cc/paint/paint_op_buffer.cc

Issue 2884563004: cc: Renamed approximate{BytesUsed,OpCount} in paint op buffer. (Closed)
Patch Set: winfix 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_op_buffer.h ('k') | cc/paint/paint_op_buffer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/paint_op_buffer.cc
diff --git a/cc/paint/paint_op_buffer.cc b/cc/paint/paint_op_buffer.cc
index a36139cb5d16810578ee70c06067b656c5682eb1..a4fad572528b350faac5988e29a36da9e873b3e3 100644
--- a/cc/paint/paint_op_buffer.cc
+++ b/cc/paint/paint_op_buffer.cc
@@ -112,7 +112,7 @@ struct Rasterizer<DrawRecordOp, false> {
// This "looking into records" optimization is done here instead of
// in the PaintOpBuffer::Raster function as DisplayItemList calls
// into RasterWithAlpha directly.
- if (op->record->approximateOpCount() == 1) {
+ if (op->record->size() == 1u) {
PaintOp* single_op = op->record->GetFirstOp();
// RasterWithAlpha only supported for draw ops.
if (single_op->IsDrawOp()) {
@@ -566,7 +566,7 @@ DrawRecordOp::DrawRecordOp(sk_sp<const PaintRecord> record)
DrawRecordOp::~DrawRecordOp() = default;
size_t DrawRecordOp::AdditionalBytesUsed() const {
- return record->approximateBytesUsed();
+ return record->bytes_used();
}
bool DrawRecordOp::HasDiscardableImages() const {
« no previous file with comments | « cc/paint/paint_op_buffer.h ('k') | cc/paint/paint_op_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698