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

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

Issue 375093002: Initial attempt at counting layers in the compositor thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment in histograms.xml to say the stat is collected once per frame, before the frame is d… Created 6 years, 5 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 gfx::SizeF ScrollableViewportSize() const; 198 gfx::SizeF ScrollableViewportSize() const;
199 199
200 gfx::Rect RootScrollLayerDeviceViewportBounds() const; 200 gfx::Rect RootScrollLayerDeviceViewportBounds() const;
201 201
202 LayerImpl* LayerById(int id); 202 LayerImpl* LayerById(int id);
203 203
204 // These should be called by LayerImpl's ctor/dtor. 204 // These should be called by LayerImpl's ctor/dtor.
205 void RegisterLayer(LayerImpl* layer); 205 void RegisterLayer(LayerImpl* layer);
206 void UnregisterLayer(LayerImpl* layer); 206 void UnregisterLayer(LayerImpl* layer);
207 207
208 size_t NumLayers();
209
208 AnimationRegistrar* animationRegistrar() const; 210 AnimationRegistrar* animationRegistrar() const;
209 211
210 void PushPersistedState(LayerTreeImpl* pending_tree); 212 void PushPersistedState(LayerTreeImpl* pending_tree);
211 213
212 void DidBecomeActive(); 214 void DidBecomeActive();
213 215
214 bool ContentsTexturesPurged() const; 216 bool ContentsTexturesPurged() const;
215 void SetContentsTexturesPurged(); 217 void SetContentsTexturesPurged();
216 void ResetContentsTexturesPurged(); 218 void ResetContentsTexturesPurged();
217 219
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 336
335 int render_surface_layer_list_id_; 337 int render_surface_layer_list_id_;
336 338
337 private: 339 private:
338 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 340 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
339 }; 341 };
340 342
341 } // namespace cc 343 } // namespace cc
342 344
343 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 345 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698