Index: cc/resources/picture_layer_tiling_set.cc |
diff --git a/cc/resources/picture_layer_tiling_set.cc b/cc/resources/picture_layer_tiling_set.cc |
index 2047c3a7fed9f771453dafb02a5a2985c8ebe061..c8ac64822f7b0f42c49f55e2f31febb6d0eec3f2 100644 |
--- a/cc/resources/picture_layer_tiling_set.cc |
+++ b/cc/resources/picture_layer_tiling_set.cc |
@@ -22,7 +22,7 @@ class LargestToSmallestScaleFunctor { |
PictureLayerTilingSet::PictureLayerTilingSet( |
PictureLayerTilingClient* client, |
- gfx::Size layer_bounds) |
+ const gfx::Size& layer_bounds) |
: client_(client), |
layer_bounds_(layer_bounds) { |
} |
@@ -38,7 +38,7 @@ void PictureLayerTilingSet::SetClient(PictureLayerTilingClient* client) { |
void PictureLayerTilingSet::SyncTilings( |
const PictureLayerTilingSet& other, |
- gfx::Size new_layer_bounds, |
+ const gfx::Size& new_layer_bounds, |
const Region& layer_invalidation, |
float minimum_contents_scale) { |
if (new_layer_bounds.IsEmpty()) { |
@@ -303,11 +303,11 @@ PictureLayerTilingSet::CoverageIterator::operator bool() const { |
void PictureLayerTilingSet::UpdateTilePriorities( |
WhichTree tree, |
- gfx::Size device_viewport, |
+ const gfx::Size& device_viewport, |
const gfx::Rect& viewport_in_content_space, |
const gfx::Rect& visible_content_rect, |
- gfx::Size last_layer_bounds, |
- gfx::Size current_layer_bounds, |
+ const gfx::Size& last_layer_bounds, |
+ const gfx::Size& current_layer_bounds, |
float last_layer_contents_scale, |
float current_layer_contents_scale, |
const gfx::Transform& last_screen_transform, |