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

Side by Side Diff: cc/trees/layer_tree.h

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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/trees/layer_tree.cc » ('j') | cc/trees/layer_tree_host_in_process.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_LAYER_TREE_H_ 5 #ifndef CC_TREES_LAYER_TREE_H_
6 #define CC_TREES_LAYER_TREE_H_ 6 #define CC_TREES_LAYER_TREE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 void SetNeedsCommit(); 139 void SetNeedsCommit();
140 140
141 const LayerTreeSettings& GetSettings() const; 141 const LayerTreeSettings& GetSettings() const;
142 142
143 // Methods which should only be used internally in cc ------------------ 143 // Methods which should only be used internally in cc ------------------
144 void RegisterLayer(Layer* layer); 144 void RegisterLayer(Layer* layer);
145 void UnregisterLayer(Layer* layer); 145 void UnregisterLayer(Layer* layer);
146 Layer* LayerById(int id) const; 146 Layer* LayerById(int id) const;
147 147
148 size_t NumLayers() const;
149
148 bool UpdateLayers(const LayerList& update_layer_list, 150 bool UpdateLayers(const LayerList& update_layer_list,
149 bool* content_is_suitable_for_gpu); 151 bool* content_is_suitable_for_gpu);
150 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } 152 bool in_paint_layer_contents() const { return in_paint_layer_contents_; }
151 153
152 void AddLayerShouldPushProperties(Layer* layer); 154 void AddLayerShouldPushProperties(Layer* layer);
153 void RemoveLayerShouldPushProperties(Layer* layer); 155 void RemoveLayerShouldPushProperties(Layer* layer);
154 std::unordered_set<Layer*>& LayersThatShouldPushProperties(); 156 std::unordered_set<Layer*>& LayersThatShouldPushProperties();
155 bool LayerNeedsPushPropertiesForTesting(Layer* layer) const; 157 bool LayerNeedsPushPropertiesForTesting(Layer* layer) const;
156 158
157 virtual void SetNeedsMetaInfoRecomputation( 159 virtual void SetNeedsMetaInfoRecomputation(
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // external embedder. 309 // external embedder.
308 EnginePictureCache* engine_picture_cache_; 310 EnginePictureCache* engine_picture_cache_;
309 ClientPictureCache* client_picture_cache_; 311 ClientPictureCache* client_picture_cache_;
310 312
311 DISALLOW_COPY_AND_ASSIGN(LayerTree); 313 DISALLOW_COPY_AND_ASSIGN(LayerTree);
312 }; 314 };
313 315
314 } // namespace cc 316 } // namespace cc
315 317
316 #endif // CC_TREES_LAYER_TREE_H_ 318 #endif // CC_TREES_LAYER_TREE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree.cc » ('j') | cc/trees/layer_tree_host_in_process.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698