diff options
Diffstat (limited to 'cc/resources/picture_layer_tiling_set_unittest.cc')
-rw-r--r-- | cc/resources/picture_layer_tiling_set_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cc/resources/picture_layer_tiling_set_unittest.cc b/cc/resources/picture_layer_tiling_set_unittest.cc index 96129c6..3939f09 100644 --- a/cc/resources/picture_layer_tiling_set_unittest.cc +++ b/cc/resources/picture_layer_tiling_set_unittest.cc @@ -157,7 +157,7 @@ class PictureLayerTilingSetSyncTest : public testing::Test { } // Sync from source to target. - void SyncTilings(gfx::Size new_bounds, + void SyncTilings(const gfx::Size& new_bounds, const Region& invalidation, float minimum_scale) { for (size_t i = 0; i < source_->num_tilings(); ++i) @@ -168,19 +168,19 @@ class PictureLayerTilingSetSyncTest : public testing::Test { target_->SyncTilings( *source_.get(), new_bounds, invalidation, minimum_scale); } - void SyncTilings(gfx::Size new_bounds) { + void SyncTilings(const gfx::Size& new_bounds) { Region invalidation; SyncTilings(new_bounds, invalidation, 0.f); } - void SyncTilings(gfx::Size new_bounds, const Region& invalidation) { + void SyncTilings(const gfx::Size& new_bounds, const Region& invalidation) { SyncTilings(new_bounds, invalidation, 0.f); } - void SyncTilings(gfx::Size new_bounds, float minimum_scale) { + void SyncTilings(const gfx::Size& new_bounds, float minimum_scale) { Region invalidation; SyncTilings(new_bounds, invalidation, minimum_scale); } - void VerifyTargetEqualsSource(gfx::Size new_bounds) const { + void VerifyTargetEqualsSource(const gfx::Size& new_bounds) const { ASSERT_FALSE(new_bounds.IsEmpty()); EXPECT_EQ(target_->num_tilings(), source_->num_tilings()); EXPECT_EQ(target_->layer_bounds().ToString(), new_bounds.ToString()); |