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

Unified Diff: cc/paint/display_item_list.h

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/compositing_display_item.h ('k') | cc/paint/display_item_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/display_item_list.h
diff --git a/cc/paint/display_item_list.h b/cc/paint/display_item_list.h
index d838a53253c022101edfb3e6fcf0a0c7b0fbe123..3a5b3f8e2bf494bc8c696832f9fa0f8d0a079545 100644
--- a/cc/paint/display_item_list.h
+++ b/cc/paint/display_item_list.h
@@ -130,7 +130,7 @@ class CC_PAINT_EXPORT DisplayItemList
}
bool IsSuitableForGpuRasterization() const;
- int ApproximateOpCount() const;
+ size_t OpCount() const;
size_t ApproximateMemoryUsage() const;
bool ShouldBeAnalyzedForSolidColor() const;
@@ -183,7 +183,7 @@ class CC_PAINT_EXPORT DisplayItemList
const DisplayItemType& AllocateAndConstruct(Args&&... args) {
auto* item = &items_.AllocateAndConstruct<DisplayItemType>(
std::forward<Args>(args)...);
- approximate_op_count_ += item->ApproximateOpCount();
+ op_count_ += item->OpCount();
return *item;
}
@@ -199,7 +199,7 @@ class CC_PAINT_EXPORT DisplayItemList
std::vector<gfx::Rect> visual_rects_;
std::vector<size_t> begin_item_indices_;
- int approximate_op_count_ = 0;
+ size_t op_count_ = 0u;
bool all_items_are_suitable_for_gpu_rasterization_ = true;
// For testing purposes only. Whether to keep visual rects across calls to
// Finalize().
« no previous file with comments | « cc/paint/compositing_display_item.h ('k') | cc/paint/display_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698