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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2678903003: cc: Clean up naming of paint-related identifiers (Closed)
Patch Set: Created 3 years, 10 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
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 722b05392d37f7cf0535eea68288bf35f1bf37bf..ecf60cf97cc12578d03d7175fa08acc1dd916b00 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1061,16 +1061,16 @@ DrawResult LayerTreeHostImpl::PrepareToDraw(FrameData* frame) {
input_handler_client_->ReconcileElasticOverscrollAndRootScroll();
if (const char* client_name = GetClientNameForMetrics()) {
- size_t total_picture_memory = 0;
+ size_t total_memory = 0;
for (const PictureLayerImpl* layer : active_tree()->picture_layers())
- total_picture_memory += layer->GetRasterSource()->GetPictureMemoryUsage();
- if (total_picture_memory != 0) {
+ total_memory += layer->GetRasterSource()->GetMemoryUsage();
+ if (total_memory != 0) {
// GetClientNameForMetrics only returns one non-null value over the
// lifetime of the process, so this histogram name is runtime constant.
UMA_HISTOGRAM_COUNTS(
base::StringPrintf("Compositing.%s.PictureMemoryUsageKb",
client_name),
- base::saturated_cast<int>(total_picture_memory / 1024));
+ base::saturated_cast<int>(total_memory / 1024));
}
// GetClientNameForMetrics only returns one non-null value over the lifetime
// of the process, so this histogram name is runtime constant.

Powered by Google App Engine
This is Rietveld 408576698