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

Unified Diff: cc/trees/layer_tree.cc

Issue 2484743002: UMA metric for LayerUpdateTimes (Closed)
Patch Set: Add missing header Created 4 years 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.cc
diff --git a/cc/trees/layer_tree.cc b/cc/trees/layer_tree.cc
index bf07576cc69500ff0e9f14a4e76bfb444e1a2384..af75104fe0b93054ac9e082ee66b7ff11fde4dc2 100644
--- a/cc/trees/layer_tree.cc
+++ b/cc/trees/layer_tree.cc
@@ -241,6 +241,10 @@ Layer* LayerTree::LayerById(int id) const {
return iter != layer_id_map_.end() ? iter->second : nullptr;
}
+size_t LayerTree::NumLayers() const {
+ return layer_id_map_.size();
+}
+
bool LayerTree::UpdateLayers(const LayerList& update_layer_list,
bool* content_is_suitable_for_gpu) {
base::AutoReset<bool> painting(&in_paint_layer_contents_, true);

Powered by Google App Engine
This is Rietveld 408576698