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

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

Issue 2718833002: Refactor unreliable hit test code to avoid owning_layers (Closed)
Patch Set: Fix bug when directly hitting a drawn scrollbar Created 3 years, 9 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 | « cc/layers/layer_impl.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 // Returns true if status changed. 644 // Returns true if status changed.
645 bool UpdateGpuRasterizationStatus(); 645 bool UpdateGpuRasterizationStatus();
646 void UpdateTreeResourcesForGpuRasterizationIfNeeded(); 646 void UpdateTreeResourcesForGpuRasterizationIfNeeded();
647 647
648 Viewport* viewport() const { return viewport_.get(); } 648 Viewport* viewport() const { return viewport_.get(); }
649 649
650 InputHandler::ScrollStatus ScrollBeginImpl( 650 InputHandler::ScrollStatus ScrollBeginImpl(
651 ScrollState* scroll_state, 651 ScrollState* scroll_state,
652 LayerImpl* scrolling_layer_impl, 652 LayerImpl* scrolling_layer_impl,
653 InputHandler::ScrollInputType type); 653 InputHandler::ScrollInputType type);
654 bool IsInitialScrollHitTestReliable(LayerImpl* layer, const gfx::PointF&);
654 void DistributeScrollDelta(ScrollState* scroll_state); 655 void DistributeScrollDelta(ScrollState* scroll_state);
655 656
656 bool AnimatePageScale(base::TimeTicks monotonic_time); 657 bool AnimatePageScale(base::TimeTicks monotonic_time);
657 bool AnimateScrollbars(base::TimeTicks monotonic_time); 658 bool AnimateScrollbars(base::TimeTicks monotonic_time);
658 bool AnimateBrowserControls(base::TimeTicks monotonic_time); 659 bool AnimateBrowserControls(base::TimeTicks monotonic_time);
659 660
660 void TrackDamageForAllSurfaces( 661 void TrackDamageForAllSurfaces(
661 const LayerImplList& render_surface_layer_list); 662 const LayerImplList& render_surface_layer_list);
662 663
663 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); 664 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy);
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 834
834 std::unique_ptr<PendingTreeDurationHistogramTimer> 835 std::unique_ptr<PendingTreeDurationHistogramTimer>
835 pending_tree_duration_timer_; 836 pending_tree_duration_timer_;
836 837
837 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 838 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
838 }; 839 };
839 840
840 } // namespace cc 841 } // namespace cc
841 842
842 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 843 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698