Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 2621133002: Return main thread scroll layer in FindScrollLayerForDeviceViewportPoint (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 DrawResult CalculateRenderPasses(FrameData* frame); 653 DrawResult CalculateRenderPasses(FrameData* frame);
654 654
655 void ClearCurrentlyScrollingLayer(); 655 void ClearCurrentlyScrollingLayer();
656 656
657 LayerImpl* FindScrollLayerForDeviceViewportPoint( 657 LayerImpl* FindScrollLayerForDeviceViewportPoint(
658 const gfx::PointF& device_viewport_point, 658 const gfx::PointF& device_viewport_point,
659 InputHandler::ScrollInputType type, 659 InputHandler::ScrollInputType type,
660 LayerImpl* layer_hit_by_point, 660 LayerImpl* layer_hit_by_point,
661 bool* scroll_on_main_thread, 661 bool* scroll_on_main_thread,
662 uint32_t* main_thread_scrolling_reason) const; 662 uint32_t* main_thread_scrolling_reason) const;
663
664 LayerImpl* FindScrollLayerByLayer(LayerImpl* layer_impl) const;
665
663 float DeviceSpaceDistanceToLayer(const gfx::PointF& device_viewport_point, 666 float DeviceSpaceDistanceToLayer(const gfx::PointF& device_viewport_point,
664 LayerImpl* layer_impl); 667 LayerImpl* layer_impl);
665 void StartScrollbarFadeRecursive(LayerImpl* layer); 668 void StartScrollbarFadeRecursive(LayerImpl* layer);
666 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy); 669 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy);
667 670
668 void MarkUIResourceNotEvicted(UIResourceId uid); 671 void MarkUIResourceNotEvicted(UIResourceId uid);
669 void ClearUIResources(); 672 void ClearUIResources();
670 673
671 void NotifySwapPromiseMonitorsOfSetNeedsRedraw(); 674 void NotifySwapPromiseMonitorsOfSetNeedsRedraw();
672 void NotifySwapPromiseMonitorsOfForwardingToMainThread(); 675 void NotifySwapPromiseMonitorsOfForwardingToMainThread();
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 821
819 std::unique_ptr<PendingTreeDurationHistogramTimer> 822 std::unique_ptr<PendingTreeDurationHistogramTimer>
820 pending_tree_duration_timer_; 823 pending_tree_duration_timer_;
821 824
822 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 825 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
823 }; 826 };
824 827
825 } // namespace cc 828 } // namespace cc
826 829
827 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 830 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698