Index: cc/layers/picture_layer_impl.cc |
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc |
index 08b42c5f63a7d6d690033e9a99390f6810a7bf24..344a583962319a4961e1e54fd4b7f8f56f3289d0 100644 |
--- a/cc/layers/picture_layer_impl.cc |
+++ b/cc/layers/picture_layer_impl.cc |
@@ -468,7 +468,7 @@ void PictureLayerImpl::SetShouldUseGpuRasterization( |
} |
scoped_refptr<Tile> PictureLayerImpl::CreateTile(PictureLayerTiling* tiling, |
- gfx::Rect content_rect) { |
+ const gfx::Rect& content_rect) { |
if (!pile_->CanRaster(tiling->contents_scale(), content_rect)) |
return scoped_refptr<Tile>(); |
@@ -779,7 +779,7 @@ bool PictureLayerImpl::MarkVisibleTilesAsRequired( |
PictureLayerTiling* tiling, |
const PictureLayerTiling* optional_twin_tiling, |
float contents_scale, |
- gfx::Rect rect, |
+ const gfx::Rect& rect, |
const Region& missing_region) const { |
bool twin_had_missing_tile = false; |
for (PictureLayerTiling::CoverageIterator iter(tiling, |