| 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 TopControlsManager* top_controls_manager() { | 316 TopControlsManager* top_controls_manager() { |
| 317 return top_controls_manager_.get(); | 317 return top_controls_manager_.get(); |
| 318 } | 318 } |
| 319 | 319 |
| 320 Proxy* proxy() const { return proxy_; } | 320 Proxy* proxy() const { return proxy_; } |
| 321 | 321 |
| 322 AnimationRegistrar* animation_registrar() const { | 322 AnimationRegistrar* animation_registrar() const { |
| 323 return animation_registrar_.get(); | 323 return animation_registrar_.get(); |
| 324 } | 324 } |
| 325 | 325 |
| 326 uint64 ui_resource_eviction_count() const { |
| 327 return ui_resource_eviction_count_; |
| 328 } |
| 329 |
| 326 void SetDebugState(const LayerTreeDebugState& new_debug_state); | 330 void SetDebugState(const LayerTreeDebugState& new_debug_state); |
| 327 const LayerTreeDebugState& debug_state() const { return debug_state_; } | 331 const LayerTreeDebugState& debug_state() const { return debug_state_; } |
| 328 | 332 |
| 329 class CC_EXPORT CullRenderPassesWithCachedTextures { | 333 class CC_EXPORT CullRenderPassesWithCachedTextures { |
| 330 public: | 334 public: |
| 331 bool ShouldRemoveRenderPass(const RenderPassDrawQuad& quad, | 335 bool ShouldRemoveRenderPass(const RenderPassDrawQuad& quad, |
| 332 const FrameData& frame) const; | 336 const FrameData& frame) const; |
| 333 | 337 |
| 334 // Iterates from the root first, in order to remove the surfaces closest | 338 // Iterates from the root first, in order to remove the surfaces closest |
| 335 // to the root with cached textures, and all surfaces that draw into | 339 // to the root with cached textures, and all surfaces that draw into |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 | 562 |
| 559 base::TimeTicks current_frame_timeticks_; | 563 base::TimeTicks current_frame_timeticks_; |
| 560 base::Time current_frame_time_; | 564 base::Time current_frame_time_; |
| 561 | 565 |
| 562 scoped_ptr<AnimationRegistrar> animation_registrar_; | 566 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 563 | 567 |
| 564 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 568 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 565 | 569 |
| 566 bool need_to_update_visible_tiles_before_draw_; | 570 bool need_to_update_visible_tiles_before_draw_; |
| 567 | 571 |
| 572 // The number of times that UI resources have been evicted since creation. |
| 573 // When doing a commit, the LayerTreeHost will acknowledge the most recent |
| 574 // eviction for which it has recreated all UI resources. |
| 575 uint64 ui_resource_eviction_count_; |
| 576 |
| 568 // Optional callback to notify of new tree activations. | 577 // Optional callback to notify of new tree activations. |
| 569 base::Closure tree_activation_callback_; | 578 base::Closure tree_activation_callback_; |
| 570 | 579 |
| 571 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 580 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 572 }; | 581 }; |
| 573 | 582 |
| 574 } // namespace cc | 583 } // namespace cc |
| 575 | 584 |
| 576 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 585 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |