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

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

Issue 139233002: [#4] Pass gfx structs by const ref (gfx::PointF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected as per review comments! Created 6 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 | « cc/trees/layer_sorter.cc ('k') | cc/trees/layer_tree_host_common.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_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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 CalcDrawPropsMainInputsForTesting; 90 CalcDrawPropsMainInputsForTesting;
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* FindLayerThatIsHitByPoint( 99 static LayerImpl* FindLayerThatIsHitByPoint(
100 gfx::PointF screen_space_point, 100 const gfx::PointF& screen_space_point,
101 const LayerImplList& render_surface_layer_list); 101 const LayerImplList& render_surface_layer_list);
102 102
103 static LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( 103 static LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion(
104 gfx::PointF screen_space_point, 104 const gfx::PointF& screen_space_point,
105 const LayerImplList& render_surface_layer_list); 105 const LayerImplList& render_surface_layer_list);
106 106
107 static bool LayerHasTouchEventHandlersAt(gfx::PointF screen_space_point, 107 static bool LayerHasTouchEventHandlersAt(
108 LayerImpl* layer_impl); 108 const gfx::PointF& screen_space_point,
109 LayerImpl* layer_impl);
109 110
110 template <typename LayerType> 111 template <typename LayerType>
111 static bool RenderSurfaceContributesToTarget(LayerType*, 112 static bool RenderSurfaceContributesToTarget(LayerType*,
112 int target_surface_layer_id); 113 int target_surface_layer_id);
113 114
114 template <typename LayerType> 115 template <typename LayerType>
115 static void CallFunctionForSubtree( 116 static void CallFunctionForSubtree(
116 LayerType* root_layer, 117 LayerType* root_layer,
117 const base::Callback<void(LayerType* layer)>& function); 118 const base::Callback<void(LayerType* layer)>& function);
118 119
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 true, 250 true,
250 false, 251 false,
251 render_surface_layer_list) { 252 render_surface_layer_list) {
252 DCHECK(root_layer); 253 DCHECK(root_layer);
253 DCHECK(render_surface_layer_list); 254 DCHECK(render_surface_layer_list);
254 } 255 }
255 256
256 } // namespace cc 257 } // namespace cc
257 258
258 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 259 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_sorter.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698