Index: cc/resources/picture_layer_tiling_unittest.cc |
diff --git a/cc/resources/picture_layer_tiling_unittest.cc b/cc/resources/picture_layer_tiling_unittest.cc |
index 002e9aad8dd5af2f38a7e2a900291d36dbba780a..83dc4aa09bd61ae7f3f218d2832d93c80e69a26a 100644 |
--- a/cc/resources/picture_layer_tiling_unittest.cc |
+++ b/cc/resources/picture_layer_tiling_unittest.cc |
@@ -18,7 +18,7 @@ namespace { |
static gfx::Rect ViewportInLayerSpace( |
const gfx::Transform& transform, |
- gfx::Size device_viewport) { |
+ const gfx::Size& device_viewport) { |
gfx::Transform inverse; |
if (!transform.GetInverse(&inverse)) |
@@ -37,7 +37,7 @@ class TestablePictureLayerTiling : public PictureLayerTiling { |
static scoped_ptr<TestablePictureLayerTiling> Create( |
float contents_scale, |
- gfx::Size layer_bounds, |
+ const gfx::Size& layer_bounds, |
PictureLayerTilingClient* client) { |
return make_scoped_ptr(new TestablePictureLayerTiling( |
contents_scale, |
@@ -47,7 +47,7 @@ class TestablePictureLayerTiling : public PictureLayerTiling { |
protected: |
TestablePictureLayerTiling(float contents_scale, |
- gfx::Size layer_bounds, |
+ const gfx::Size& layer_bounds, |
PictureLayerTilingClient* client) |
: PictureLayerTiling(contents_scale, layer_bounds, client) { } |
}; |
@@ -57,9 +57,9 @@ class PictureLayerTilingIteratorTest : public testing::Test { |
PictureLayerTilingIteratorTest() {} |
virtual ~PictureLayerTilingIteratorTest() {} |
- void Initialize(gfx::Size tile_size, |
+ void Initialize(const gfx::Size& tile_size, |
float contents_scale, |
- gfx::Size layer_bounds) { |
+ const gfx::Size& layer_bounds) { |
client_.SetTileSize(tile_size); |
tiling_ = TestablePictureLayerTiling::Create(contents_scale, |
layer_bounds, |