OLD | NEW |
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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 248 |
249 private: | 249 private: |
250 typedef std::vector<scoped_refptr<Layer> > LayerList; | 250 typedef std::vector<scoped_refptr<Layer> > LayerList; |
251 | 251 |
252 bool InitializeProxy(scoped_ptr<Proxy> proxy); | 252 bool InitializeProxy(scoped_ptr<Proxy> proxy); |
253 void InitializeRenderer(); | 253 void InitializeRenderer(); |
254 | 254 |
255 bool PaintLayerContents(const LayerList& render_surface_layer_list, | 255 bool PaintLayerContents(const LayerList& render_surface_layer_list, |
256 ResourceUpdateQueue* quue); | 256 ResourceUpdateQueue* quue); |
257 bool PaintMasksForRenderSurface(Layer* render_surface_layer, | 257 bool PaintMasksForRenderSurface(Layer* render_surface_layer, |
258 ResourceUpdateQueue* queue, | 258 ResourceUpdateQueue* queue); |
259 RenderingStats* stats); | |
260 | 259 |
261 void UpdateLayers(Layer* root_layer, ResourceUpdateQueue* queue); | 260 void UpdateLayers(Layer* root_layer, ResourceUpdateQueue* queue); |
262 void UpdateHudLayer(); | 261 void UpdateHudLayer(); |
263 void TriggerPrepaint(); | 262 void TriggerPrepaint(); |
264 | 263 |
265 void PrioritizeTextures(const LayerList& render_surface_layer_list, | 264 void PrioritizeTextures(const LayerList& render_surface_layer_list, |
266 OverdrawMetrics* metrics); | 265 OverdrawMetrics* metrics); |
267 void SetPrioritiesForSurfaces(size_t surface_memory_bytes); | 266 void SetPrioritiesForSurfaces(size_t surface_memory_bytes); |
268 void SetPrioritiesForLayers(const LayerList& update_list); | 267 void SetPrioritiesForLayers(const LayerList& update_list); |
269 size_t CalculateMemoryForRenderSurfaces(const LayerList& update_list); | 268 size_t CalculateMemoryForRenderSurfaces(const LayerList& update_list); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 base::TimeDelta duration; | 333 base::TimeDelta duration; |
335 }; | 334 }; |
336 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 335 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
337 | 336 |
338 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 337 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
339 }; | 338 }; |
340 | 339 |
341 } // namespace cc | 340 } // namespace cc |
342 | 341 |
343 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 342 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |