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