Index: cc/layers/tiled_layer.cc |
diff --git a/cc/layers/tiled_layer.cc b/cc/layers/tiled_layer.cc |
index 25074700f95231fb760bb4fea087fd730e27ef09..d4ec763faea48164e8e7e682f90e4fe4c989297c 100644 |
--- a/cc/layers/tiled_layer.cc |
+++ b/cc/layers/tiled_layer.cc |
@@ -686,7 +686,7 @@ void TiledLayer::ResetUpdateState() { |
} |
namespace { |
-gfx::Rect ExpandRectByDelta(const gfx::Rect& rect, gfx::Vector2d delta) { |
+gfx::Rect ExpandRectByDelta(const gfx::Rect& rect, const gfx::Vector2d& delta) { |
int width = rect.width() + std::abs(delta.x()); |
int height = rect.height() + std::abs(delta.y()); |
int x = rect.x() + ((delta.x() < 0) ? delta.x() : 0); |