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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.h
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h
index a15f9c0040356c7bb89747091413c73fc8ab8013..d639afdb3760c517808f5cad3ddb109924062ee5 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -97,15 +97,16 @@ class CC_EXPORT LayerTreeHostCommon {
// Performs hit testing for a given render_surface_layer_list.
static LayerImpl* FindLayerThatIsHitByPoint(
- gfx::PointF screen_space_point,
+ const gfx::PointF& screen_space_point,
const LayerImplList& render_surface_layer_list);
static LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion(
- gfx::PointF screen_space_point,
+ const gfx::PointF& screen_space_point,
const LayerImplList& render_surface_layer_list);
- static bool LayerHasTouchEventHandlersAt(gfx::PointF screen_space_point,
- LayerImpl* layer_impl);
+ static bool LayerHasTouchEventHandlersAt(
+ const gfx::PointF& screen_space_point,
+ LayerImpl* layer_impl);
template <typename LayerType>
static bool RenderSurfaceContributesToTarget(LayerType*,
« 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