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 <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 bool needs_full_tree_sync_; | 420 bool needs_full_tree_sync_; |
421 bool needs_meta_info_recomputation_; | 421 bool needs_meta_info_recomputation_; |
422 | 422 |
423 LayerTreeHostClient* client_; | 423 LayerTreeHostClient* client_; |
424 scoped_ptr<Proxy> proxy_; | 424 scoped_ptr<Proxy> proxy_; |
425 | 425 |
426 int source_frame_number_; | 426 int source_frame_number_; |
427 int meta_information_sequence_number_; | 427 int meta_information_sequence_number_; |
428 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; | 428 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; |
429 | 429 |
| 430 // |current_output_surface_| can't be updated until we've successfully |
| 431 // initialized a new output surface. |new_output_surface_| contains the |
| 432 // new output surface that is currently being initialized. If initialization |
| 433 // is successful then |new_output_surface_| replaces |
| 434 // |current_output_surface_|. |
| 435 scoped_ptr<OutputSurface> new_output_surface_; |
| 436 scoped_ptr<OutputSurface> current_output_surface_; |
430 bool output_surface_lost_; | 437 bool output_surface_lost_; |
431 | 438 |
432 scoped_refptr<Layer> root_layer_; | 439 scoped_refptr<Layer> root_layer_; |
433 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; | 440 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; |
434 | 441 |
435 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 442 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
436 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; | 443 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; |
437 | 444 |
438 const LayerTreeSettings settings_; | 445 const LayerTreeSettings settings_; |
439 LayerTreeDebugState debug_state_; | 446 LayerTreeDebugState debug_state_; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 | 500 |
494 uint32_t surface_id_namespace_; | 501 uint32_t surface_id_namespace_; |
495 uint32_t next_surface_sequence_; | 502 uint32_t next_surface_sequence_; |
496 | 503 |
497 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 504 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
498 }; | 505 }; |
499 | 506 |
500 } // namespace cc | 507 } // namespace cc |
501 | 508 |
502 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 509 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |