| 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 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 247 |
| 248 private: | 248 private: |
| 249 typedef std::vector<scoped_refptr<Layer> > LayerList; | 249 typedef std::vector<scoped_refptr<Layer> > LayerList; |
| 250 | 250 |
| 251 bool InitializeProxy(scoped_ptr<Proxy> proxy); | 251 bool InitializeProxy(scoped_ptr<Proxy> proxy); |
| 252 void InitializeRenderer(); | 252 void InitializeRenderer(); |
| 253 | 253 |
| 254 bool PaintLayerContents(const LayerList& render_surface_layer_list, | 254 bool PaintLayerContents(const LayerList& render_surface_layer_list, |
| 255 ResourceUpdateQueue* quue); | 255 ResourceUpdateQueue* quue); |
| 256 bool PaintMasksForRenderSurface(Layer* render_surface_layer, | 256 bool PaintMasksForRenderSurface(Layer* render_surface_layer, |
| 257 ResourceUpdateQueue* queue, | 257 ResourceUpdateQueue* queue); |
| 258 RenderingStats* stats); | |
| 259 | 258 |
| 260 void UpdateLayers(Layer* root_layer, ResourceUpdateQueue* queue); | 259 void UpdateLayers(Layer* root_layer, ResourceUpdateQueue* queue); |
| 261 void UpdateHudLayer(); | 260 void UpdateHudLayer(); |
| 262 void TriggerPrepaint(); | 261 void TriggerPrepaint(); |
| 263 | 262 |
| 264 void PrioritizeTextures(const LayerList& render_surface_layer_list, | 263 void PrioritizeTextures(const LayerList& render_surface_layer_list, |
| 265 OverdrawMetrics* metrics); | 264 OverdrawMetrics* metrics); |
| 266 void SetPrioritiesForSurfaces(size_t surface_memory_bytes); | 265 void SetPrioritiesForSurfaces(size_t surface_memory_bytes); |
| 267 void SetPrioritiesForLayers(const LayerList& update_list); | 266 void SetPrioritiesForLayers(const LayerList& update_list); |
| 268 size_t CalculateMemoryForRenderSurfaces(const LayerList& update_list); | 267 size_t CalculateMemoryForRenderSurfaces(const LayerList& update_list); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 size_t partial_texture_update_requests_; | 324 size_t partial_texture_update_requests_; |
| 326 | 325 |
| 327 scoped_ptr<AnimationRegistrar> animation_registrar_; | 326 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 328 | 327 |
| 329 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 328 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 330 }; | 329 }; |
| 331 | 330 |
| 332 } // namespace cc | 331 } // namespace cc |
| 333 | 332 |
| 334 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 333 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |