| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <bitset> | 10 #include <bitset> |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 return scroll_affects_scroll_handler_; | 444 return scroll_affects_scroll_handler_; |
| 445 } | 445 } |
| 446 void QueueSwapPromiseForMainThreadScrollUpdate( | 446 void QueueSwapPromiseForMainThreadScrollUpdate( |
| 447 std::unique_ptr<SwapPromise> swap_promise); | 447 std::unique_ptr<SwapPromise> swap_promise); |
| 448 | 448 |
| 449 bool IsActivelyScrolling() const; | 449 bool IsActivelyScrolling() const; |
| 450 | 450 |
| 451 virtual void SetVisible(bool visible); | 451 virtual void SetVisible(bool visible); |
| 452 bool visible() const { return visible_; } | 452 bool visible() const { return visible_; } |
| 453 | 453 |
| 454 virtual void SetIsFullscreen(bool is_fullscreen); |
| 455 |
| 454 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } | 456 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } |
| 455 void SetNeedsOneBeginImplFrame(); | 457 void SetNeedsOneBeginImplFrame(); |
| 456 void SetNeedsRedraw(); | 458 void SetNeedsRedraw(); |
| 457 | 459 |
| 458 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; | 460 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; |
| 459 | 461 |
| 460 void SetViewportSize(const gfx::Size& device_viewport_size); | 462 void SetViewportSize(const gfx::Size& device_viewport_size); |
| 461 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 463 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
| 462 | 464 |
| 463 const gfx::Transform& DrawTransform() const; | 465 const gfx::Transform& DrawTransform() const; |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 | 777 |
| 776 // An object to implement the ScrollElasticityHelper interface and | 778 // An object to implement the ScrollElasticityHelper interface and |
| 777 // hold all state related to elasticity. May be NULL if never requested. | 779 // hold all state related to elasticity. May be NULL if never requested. |
| 778 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; | 780 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; |
| 779 | 781 |
| 780 bool tile_priorities_dirty_; | 782 bool tile_priorities_dirty_; |
| 781 | 783 |
| 782 const LayerTreeSettings settings_; | 784 const LayerTreeSettings settings_; |
| 783 LayerTreeDebugState debug_state_; | 785 LayerTreeDebugState debug_state_; |
| 784 bool visible_; | 786 bool visible_; |
| 787 bool is_fullscreen_ = false; |
| 785 ManagedMemoryPolicy cached_managed_memory_policy_; | 788 ManagedMemoryPolicy cached_managed_memory_policy_; |
| 786 | 789 |
| 787 const bool is_synchronous_single_threaded_; | 790 const bool is_synchronous_single_threaded_; |
| 788 TileManager tile_manager_; | 791 TileManager tile_manager_; |
| 789 DecodedImageTracker decoded_image_tracker_; | 792 DecodedImageTracker decoded_image_tracker_; |
| 790 | 793 |
| 791 gfx::Vector2dF accumulated_root_overscroll_; | 794 gfx::Vector2dF accumulated_root_overscroll_; |
| 792 | 795 |
| 793 bool pinch_gesture_active_; | 796 bool pinch_gesture_active_; |
| 794 bool pinch_gesture_end_should_clear_scrolling_node_; | 797 bool pinch_gesture_end_should_clear_scrolling_node_; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 bool touchpad_and_wheel_scroll_latching_enabled_; | 882 bool touchpad_and_wheel_scroll_latching_enabled_; |
| 880 | 883 |
| 881 ImplThreadPhase impl_thread_phase_; | 884 ImplThreadPhase impl_thread_phase_; |
| 882 | 885 |
| 883 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 886 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 884 }; | 887 }; |
| 885 | 888 |
| 886 } // namespace cc | 889 } // namespace cc |
| 887 | 890 |
| 888 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 891 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |