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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 bool needs_full_tree_sync_; | 427 bool needs_full_tree_sync_; |
428 bool needs_meta_info_recomputation_; | 428 bool needs_meta_info_recomputation_; |
429 | 429 |
430 LayerTreeHostClient* client_; | 430 LayerTreeHostClient* client_; |
431 scoped_ptr<Proxy> proxy_; | 431 scoped_ptr<Proxy> proxy_; |
432 | 432 |
433 int source_frame_number_; | 433 int source_frame_number_; |
434 int meta_information_sequence_number_; | 434 int meta_information_sequence_number_; |
435 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; | 435 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; |
436 | 436 |
| 437 // |current_output_surface_| can't be updated until we've successfully |
| 438 // initialized a new output surface. |new_output_surface_| contains the |
| 439 // new output surface that is currently being initialized. If initialization |
| 440 // is successful then |new_output_surface_| replaces |
| 441 // |current_output_surface_|. |
| 442 scoped_ptr<OutputSurface> new_output_surface_; |
| 443 scoped_ptr<OutputSurface> current_output_surface_; |
437 bool output_surface_lost_; | 444 bool output_surface_lost_; |
438 | 445 |
439 scoped_refptr<Layer> root_layer_; | 446 scoped_refptr<Layer> root_layer_; |
440 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; | 447 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; |
441 | 448 |
442 base::WeakPtr<InputHandler> input_handler_weak_ptr_; | 449 base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
443 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; | 450 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; |
444 | 451 |
445 const LayerTreeSettings settings_; | 452 const LayerTreeSettings settings_; |
446 LayerTreeDebugState debug_state_; | 453 LayerTreeDebugState debug_state_; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 | 509 |
503 uint32_t surface_id_namespace_; | 510 uint32_t surface_id_namespace_; |
504 uint32_t next_surface_sequence_; | 511 uint32_t next_surface_sequence_; |
505 | 512 |
506 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 513 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
507 }; | 514 }; |
508 | 515 |
509 } // namespace cc | 516 } // namespace cc |
510 | 517 |
511 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 518 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |