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

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

Issue 12426024: cc: Switch RenderingStats collection in Layer::Update() to RenderingStatsInstrumentation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 private: 246 private:
247 typedef std::vector<scoped_refptr<Layer> > LayerList; 247 typedef std::vector<scoped_refptr<Layer> > LayerList;
248 248
249 bool InitializeProxy(scoped_ptr<Proxy> proxy); 249 bool InitializeProxy(scoped_ptr<Proxy> proxy);
250 void InitializeRenderer(); 250 void InitializeRenderer();
251 251
252 bool PaintLayerContents(const LayerList& render_surface_layer_list, 252 bool PaintLayerContents(const LayerList& render_surface_layer_list,
253 ResourceUpdateQueue* quue); 253 ResourceUpdateQueue* quue);
254 bool PaintMasksForRenderSurface(Layer* render_surface_layer, 254 bool PaintMasksForRenderSurface(Layer* render_surface_layer,
255 ResourceUpdateQueue* queue, 255 ResourceUpdateQueue* queue);
256 RenderingStats* stats);
257 256
258 void UpdateLayers(Layer* root_layer, ResourceUpdateQueue* queue); 257 void UpdateLayers(Layer* root_layer, ResourceUpdateQueue* queue);
259 void UpdateHudLayer(); 258 void UpdateHudLayer();
260 void TriggerPrepaint(); 259 void TriggerPrepaint();
261 260
262 void PrioritizeTextures(const LayerList& render_surface_layer_list, 261 void PrioritizeTextures(const LayerList& render_surface_layer_list,
263 OverdrawMetrics* metrics); 262 OverdrawMetrics* metrics);
264 void SetPrioritiesForSurfaces(size_t surface_memory_bytes); 263 void SetPrioritiesForSurfaces(size_t surface_memory_bytes);
265 void SetPrioritiesForLayers(const LayerList& update_list); 264 void SetPrioritiesForLayers(const LayerList& update_list);
266 size_t CalculateMemoryForRenderSurfaces(const LayerList& update_list); 265 size_t CalculateMemoryForRenderSurfaces(const LayerList& update_list);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 size_t partial_texture_update_requests_; 321 size_t partial_texture_update_requests_;
323 322
324 scoped_ptr<AnimationRegistrar> animation_registrar_; 323 scoped_ptr<AnimationRegistrar> animation_registrar_;
325 324
326 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 325 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
327 }; 326 };
328 327
329 } // namespace cc 328 } // namespace cc
330 329
331 #endif // CC_TREES_LAYER_TREE_HOST_H_ 330 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698