| 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 <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 LayerImpl* InnerViewportScrollLayer() const; | 312 LayerImpl* InnerViewportScrollLayer() const; |
| 313 LayerImpl* OuterViewportScrollLayer() const; | 313 LayerImpl* OuterViewportScrollLayer() const; |
| 314 LayerImpl* CurrentlyScrollingLayer() const; | 314 LayerImpl* CurrentlyScrollingLayer() const; |
| 315 | 315 |
| 316 int scroll_layer_id_when_mouse_over_scrollbar() const { | 316 int scroll_layer_id_when_mouse_over_scrollbar() const { |
| 317 return scroll_layer_id_when_mouse_over_scrollbar_; | 317 return scroll_layer_id_when_mouse_over_scrollbar_; |
| 318 } | 318 } |
| 319 bool scroll_affects_scroll_handler() const { | 319 bool scroll_affects_scroll_handler() const { |
| 320 return scroll_affects_scroll_handler_; | 320 return scroll_affects_scroll_handler_; |
| 321 } | 321 } |
| 322 void QueueScrollUpdateLatencyInfo(const ui::LatencyInfo& latency_info); |
| 322 | 323 |
| 323 bool IsCurrentlyScrolling() const; | 324 bool IsCurrentlyScrolling() const; |
| 324 | 325 |
| 325 virtual void SetVisible(bool visible); | 326 virtual void SetVisible(bool visible); |
| 326 bool visible() const { return visible_; } | 327 bool visible() const { return visible_; } |
| 327 | 328 |
| 328 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } | 329 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } |
| 329 void SetNeedsRedraw(); | 330 void SetNeedsRedraw(); |
| 330 | 331 |
| 331 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; | 332 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 void StartScrollbarFadeRecursive(LayerImpl* layer); | 545 void StartScrollbarFadeRecursive(LayerImpl* layer); |
| 545 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy, | 546 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy, |
| 546 bool zero_budget); | 547 bool zero_budget); |
| 547 void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy); | 548 void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy); |
| 548 | 549 |
| 549 void DidInitializeVisibleTile(); | 550 void DidInitializeVisibleTile(); |
| 550 | 551 |
| 551 void MarkUIResourceNotEvicted(UIResourceId uid); | 552 void MarkUIResourceNotEvicted(UIResourceId uid); |
| 552 | 553 |
| 553 void NotifySwapPromiseMonitorsOfSetNeedsRedraw(); | 554 void NotifySwapPromiseMonitorsOfSetNeedsRedraw(); |
| 555 void NotifySwapPromiseMonitorsOfForwardingToMainThread(); |
| 554 | 556 |
| 555 typedef base::hash_map<UIResourceId, UIResourceData> | 557 typedef base::hash_map<UIResourceId, UIResourceData> |
| 556 UIResourceMap; | 558 UIResourceMap; |
| 557 UIResourceMap ui_resource_map_; | 559 UIResourceMap ui_resource_map_; |
| 558 | 560 |
| 559 // Resources that were evicted by EvictAllUIResources. Resources are removed | 561 // Resources that were evicted by EvictAllUIResources. Resources are removed |
| 560 // from this when they are touched by a create or destroy from the UI resource | 562 // from this when they are touched by a create or destroy from the UI resource |
| 561 // request queue. | 563 // request queue. |
| 562 std::set<UIResourceId> evicted_ui_resources_; | 564 std::set<UIResourceId> evicted_ui_resources_; |
| 563 | 565 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 590 // In impl-side painting mode, inert tree with layers that can be recycled | 592 // In impl-side painting mode, inert tree with layers that can be recycled |
| 591 // by the next sync from the main thread. | 593 // by the next sync from the main thread. |
| 592 scoped_ptr<LayerTreeImpl> recycle_tree_; | 594 scoped_ptr<LayerTreeImpl> recycle_tree_; |
| 593 | 595 |
| 594 InputHandlerClient* input_handler_client_; | 596 InputHandlerClient* input_handler_client_; |
| 595 bool did_lock_scrolling_layer_; | 597 bool did_lock_scrolling_layer_; |
| 596 bool should_bubble_scrolls_; | 598 bool should_bubble_scrolls_; |
| 597 bool wheel_scrolling_; | 599 bool wheel_scrolling_; |
| 598 bool scroll_affects_scroll_handler_; | 600 bool scroll_affects_scroll_handler_; |
| 599 int scroll_layer_id_when_mouse_over_scrollbar_; | 601 int scroll_layer_id_when_mouse_over_scrollbar_; |
| 602 std::vector<ui::LatencyInfo> scroll_update_latency_infos_; |
| 600 | 603 |
| 601 bool tile_priorities_dirty_; | 604 bool tile_priorities_dirty_; |
| 602 | 605 |
| 603 // The optional delegate for the root layer scroll offset. | 606 // The optional delegate for the root layer scroll offset. |
| 604 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; | 607 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
| 605 LayerTreeSettings settings_; | 608 LayerTreeSettings settings_; |
| 606 LayerTreeDebugState debug_state_; | 609 LayerTreeDebugState debug_state_; |
| 607 bool visible_; | 610 bool visible_; |
| 608 ManagedMemoryPolicy cached_managed_memory_policy_; | 611 ManagedMemoryPolicy cached_managed_memory_policy_; |
| 609 | 612 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 size_t transfer_buffer_memory_limit_; | 694 size_t transfer_buffer_memory_limit_; |
| 692 | 695 |
| 693 std::vector<PictureLayerImpl*> picture_layers_; | 696 std::vector<PictureLayerImpl*> picture_layers_; |
| 694 | 697 |
| 695 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 698 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 696 }; | 699 }; |
| 697 | 700 |
| 698 } // namespace cc | 701 } // namespace cc |
| 699 | 702 |
| 700 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 703 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |