diff options
Diffstat (limited to 'chromium/cc/resources/image_layer_updater.cc')
-rw-r--r-- | chromium/cc/resources/image_layer_updater.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/cc/resources/image_layer_updater.cc b/chromium/cc/resources/image_layer_updater.cc index 470f518b424..d5d62ed5e97 100644 --- a/chromium/cc/resources/image_layer_updater.cc +++ b/chromium/cc/resources/image_layer_updater.cc @@ -15,8 +15,8 @@ ImageLayerUpdater::Resource::Resource(ImageLayerUpdater* updater, ImageLayerUpdater::Resource::~Resource() {} void ImageLayerUpdater::Resource::Update(ResourceUpdateQueue* queue, - gfx::Rect source_rect, - gfx::Vector2d dest_offset, + const gfx::Rect& source_rect, + const gfx::Vector2d& dest_offset, bool partial_update) { updater_->UpdateTexture( queue, texture(), source_rect, dest_offset, partial_update); @@ -35,8 +35,8 @@ scoped_ptr<LayerUpdater::Resource> ImageLayerUpdater::CreateResource( void ImageLayerUpdater::UpdateTexture(ResourceUpdateQueue* queue, PrioritizedResource* texture, - gfx::Rect source_rect, - gfx::Vector2d dest_offset, + const gfx::Rect& source_rect, + const gfx::Vector2d& dest_offset, bool partial_update) { // Source rect should never go outside the image pixels, even if this // is requested because the texture extends outside the image. |