| 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 scoped_ptr<AnimationRegistrar> animation_registrar_; | 441 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 442 | 442 |
| 443 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 443 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 444 | 444 |
| 445 // If set, then page scale animation has completed, but the client hasn't been | 445 // If set, then page scale animation has completed, but the client hasn't been |
| 446 // notified about it yet. | 446 // notified about it yet. |
| 447 bool did_complete_scale_animation_; | 447 bool did_complete_scale_animation_; |
| 448 | 448 |
| 449 bool in_paint_layer_contents_; | 449 bool in_paint_layer_contents_; |
| 450 | 450 |
| 451 static const int kTotalFramesToUseForLCDTextMetrics = 50; | |
| 452 int total_frames_used_for_lcd_text_metrics_; | |
| 453 | |
| 454 struct LCDTextMetrics { | |
| 455 LCDTextMetrics() | |
| 456 : total_num_cc_layers(0), | |
| 457 total_num_cc_layers_can_use_lcd_text(0), | |
| 458 total_num_cc_layers_will_use_lcd_text(0) {} | |
| 459 | |
| 460 int64 total_num_cc_layers; | |
| 461 int64 total_num_cc_layers_can_use_lcd_text; | |
| 462 int64 total_num_cc_layers_will_use_lcd_text; | |
| 463 }; | |
| 464 LCDTextMetrics lcd_text_metrics_; | |
| 465 int id_; | 451 int id_; |
| 466 bool next_commit_forces_redraw_; | 452 bool next_commit_forces_redraw_; |
| 467 | 453 |
| 468 scoped_refptr<Layer> overscroll_elasticity_layer_; | 454 scoped_refptr<Layer> overscroll_elasticity_layer_; |
| 469 scoped_refptr<Layer> page_scale_layer_; | 455 scoped_refptr<Layer> page_scale_layer_; |
| 470 scoped_refptr<Layer> inner_viewport_scroll_layer_; | 456 scoped_refptr<Layer> inner_viewport_scroll_layer_; |
| 471 scoped_refptr<Layer> outer_viewport_scroll_layer_; | 457 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
| 472 | 458 |
| 473 LayerSelectionBound selection_start_; | 459 LayerSelectionBound selection_start_; |
| 474 LayerSelectionBound selection_end_; | 460 LayerSelectionBound selection_end_; |
| 475 | 461 |
| 476 SharedBitmapManager* shared_bitmap_manager_; | 462 SharedBitmapManager* shared_bitmap_manager_; |
| 477 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 463 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
| 478 | 464 |
| 479 ScopedPtrVector<SwapPromise> swap_promise_list_; | 465 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 480 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 466 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 481 | 467 |
| 482 uint32_t surface_id_namespace_; | 468 uint32_t surface_id_namespace_; |
| 483 uint32_t next_surface_sequence_; | 469 uint32_t next_surface_sequence_; |
| 484 | 470 |
| 485 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 471 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 486 }; | 472 }; |
| 487 | 473 |
| 488 } // namespace cc | 474 } // namespace cc |
| 489 | 475 |
| 490 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 476 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |