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

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

Issue 266913021: Hit test on the layer tree rather than the RSLL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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_COMMON_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_
6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs); 91 static void CalculateDrawProperties(CalcDrawPropsMainInputs* inputs);
92 92
93 typedef CalcDrawPropsInputs<LayerImpl, LayerImplList> CalcDrawPropsImplInputs; 93 typedef CalcDrawPropsInputs<LayerImpl, LayerImplList> CalcDrawPropsImplInputs;
94 typedef CalcDrawPropsInputsForTesting<LayerImpl, LayerImplList> 94 typedef CalcDrawPropsInputsForTesting<LayerImpl, LayerImplList>
95 CalcDrawPropsImplInputsForTesting; 95 CalcDrawPropsImplInputsForTesting;
96 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs); 96 static void CalculateDrawProperties(CalcDrawPropsImplInputs* inputs);
97 97
98 // Performs hit testing for a given render_surface_layer_list. 98 // Performs hit testing for a given render_surface_layer_list.
99 static LayerImpl* FindFirstScrollingLayerThatIsHitByPoint( 99 static LayerImpl* FindFirstScrollingLayerThatIsHitByPoint(
100 const gfx::PointF& screen_space_point, 100 const gfx::PointF& screen_space_point,
101 const LayerImplList& render_surface_layer_list); 101 LayerImpl* root);
102 102
103 // Performs hit testing for a given render_surface_layer_list. 103 // Performs hit testing for a given render_surface_layer_list.
104 static LayerImpl* FindLayerThatIsHitByPoint( 104 static LayerImpl* FindLayerThatIsHitByPoint(
105 const gfx::PointF& screen_space_point, 105 const gfx::PointF& screen_space_point,
106 const LayerImplList& render_surface_layer_list); 106 LayerImpl* root);
107 107
108 static LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( 108 static LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion(
109 const gfx::PointF& screen_space_point, 109 const gfx::PointF& screen_space_point,
110 const LayerImplList& render_surface_layer_list); 110 LayerImpl* root);
111 111
112 static bool LayerHasTouchEventHandlersAt( 112 static bool LayerHasTouchEventHandlersAt(
113 const gfx::PointF& screen_space_point, 113 const gfx::PointF& screen_space_point,
114 LayerImpl* layer_impl); 114 LayerImpl* layer_impl);
115 115
116 template <typename LayerType> 116 template <typename LayerType>
117 static bool RenderSurfaceContributesToTarget(LayerType*, 117 static bool RenderSurfaceContributesToTarget(LayerType*,
118 int target_surface_layer_id); 118 int target_surface_layer_id);
119 119
120 template <typename LayerType> 120 template <typename LayerType>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 true, 257 true,
258 false, 258 false,
259 render_surface_layer_list) { 259 render_surface_layer_list) {
260 DCHECK(root_layer); 260 DCHECK(root_layer);
261 DCHECK(render_surface_layer_list); 261 DCHECK(render_surface_layer_list);
262 } 262 }
263 263
264 } // namespace cc 264 } // namespace cc
265 265
266 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 266 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698