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

Unified Diff: cc/trees/layer_tree_host_common.h

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! 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_tree_host.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 727244864ee00dbad724546a24531538ab5dc6f2..a15f9c0040356c7bb89747091413c73fc8ab8013 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -24,8 +24,8 @@ class Layer;
class CC_EXPORT LayerTreeHostCommon {
public:
- static gfx::Rect CalculateVisibleRect(gfx::Rect target_surface_rect,
- gfx::Rect layer_bound_rect,
+ static gfx::Rect CalculateVisibleRect(const gfx::Rect& target_surface_rect,
+ const gfx::Rect& layer_bound_rect,
const gfx::Transform& transform);
template <typename LayerType, typename RenderSurfaceLayerListType>
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698