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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 LayerImpl* CurrentlyScrollingLayer() const; | 455 LayerImpl* CurrentlyScrollingLayer() const; |
456 | 456 |
457 int scroll_layer_id_when_mouse_over_scrollbar() const { | 457 int scroll_layer_id_when_mouse_over_scrollbar() const { |
458 return scroll_layer_id_when_mouse_over_scrollbar_; | 458 return scroll_layer_id_when_mouse_over_scrollbar_; |
459 } | 459 } |
460 bool scroll_affects_scroll_handler() const { | 460 bool scroll_affects_scroll_handler() const { |
461 return scroll_affects_scroll_handler_; | 461 return scroll_affects_scroll_handler_; |
462 } | 462 } |
463 void QueueSwapPromiseForMainThreadScrollUpdate( | 463 void QueueSwapPromiseForMainThreadScrollUpdate( |
464 std::unique_ptr<SwapPromise> swap_promise); | 464 std::unique_ptr<SwapPromise> swap_promise); |
| 465 void QueueForcedRedrawSwapPromise(std::unique_ptr<SwapPromise> swap_promise); |
465 | 466 |
466 bool IsActivelyScrolling() const; | 467 bool IsActivelyScrolling() const; |
467 | 468 |
468 virtual void SetVisible(bool visible); | 469 virtual void SetVisible(bool visible); |
469 bool visible() const { return visible_; } | 470 bool visible() const { return visible_; } |
470 | 471 |
471 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } | 472 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } |
472 void SetNeedsOneBeginImplFrame(); | 473 void SetNeedsOneBeginImplFrame(); |
473 void SetNeedsRedraw(); | 474 void SetNeedsRedraw(); |
474 | 475 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 // by the next sync from the main thread. | 761 // by the next sync from the main thread. |
761 std::unique_ptr<LayerTreeImpl> recycle_tree_; | 762 std::unique_ptr<LayerTreeImpl> recycle_tree_; |
762 | 763 |
763 InputHandlerClient* input_handler_client_; | 764 InputHandlerClient* input_handler_client_; |
764 bool did_lock_scrolling_layer_; | 765 bool did_lock_scrolling_layer_; |
765 bool wheel_scrolling_; | 766 bool wheel_scrolling_; |
766 bool scroll_affects_scroll_handler_; | 767 bool scroll_affects_scroll_handler_; |
767 int scroll_layer_id_when_mouse_over_scrollbar_; | 768 int scroll_layer_id_when_mouse_over_scrollbar_; |
768 std::vector<std::unique_ptr<SwapPromise>> | 769 std::vector<std::unique_ptr<SwapPromise>> |
769 swap_promises_for_main_thread_scroll_update_; | 770 swap_promises_for_main_thread_scroll_update_; |
| 771 std::vector<std::unique_ptr<SwapPromise>> forced_redraw_swap_promises_; |
770 | 772 |
771 // An object to implement the ScrollElasticityHelper interface and | 773 // An object to implement the ScrollElasticityHelper interface and |
772 // hold all state related to elasticity. May be NULL if never requested. | 774 // hold all state related to elasticity. May be NULL if never requested. |
773 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; | 775 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; |
774 | 776 |
775 bool tile_priorities_dirty_; | 777 bool tile_priorities_dirty_; |
776 | 778 |
777 const LayerTreeSettings settings_; | 779 const LayerTreeSettings settings_; |
778 LayerTreeDebugState debug_state_; | 780 LayerTreeDebugState debug_state_; |
779 bool visible_; | 781 bool visible_; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 | 856 |
855 std::unique_ptr<PendingTreeDurationHistogramTimer> | 857 std::unique_ptr<PendingTreeDurationHistogramTimer> |
856 pending_tree_duration_timer_; | 858 pending_tree_duration_timer_; |
857 | 859 |
858 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 860 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
859 }; | 861 }; |
860 | 862 |
861 } // namespace cc | 863 } // namespace cc |
862 | 864 |
863 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 865 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |