summaryrefslogtreecommitdiffstats
path: root/cc/resources/bitmap_content_layer_updater.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/resources/bitmap_content_layer_updater.cc')
-rw-r--r--cc/resources/bitmap_content_layer_updater.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/cc/resources/bitmap_content_layer_updater.cc b/cc/resources/bitmap_content_layer_updater.cc
index 493b42e..6f2332b 100644
--- a/cc/resources/bitmap_content_layer_updater.cc
+++ b/cc/resources/bitmap_content_layer_updater.cc
@@ -21,10 +21,11 @@ BitmapContentLayerUpdater::Resource::Resource(
BitmapContentLayerUpdater::Resource::~Resource() {}
-void BitmapContentLayerUpdater::Resource::Update(ResourceUpdateQueue* queue,
- const gfx::Rect& source_rect,
- gfx::Vector2d dest_offset,
- bool partial_update) {
+void BitmapContentLayerUpdater::Resource::Update(
+ ResourceUpdateQueue* queue,
+ const gfx::Rect& source_rect,
+ const gfx::Vector2d& dest_offset,
+ bool partial_update) {
updater_->UpdateTexture(
queue, texture(), source_rect, dest_offset, partial_update);
}
@@ -88,7 +89,7 @@ void BitmapContentLayerUpdater::PrepareToUpdate(
void BitmapContentLayerUpdater::UpdateTexture(ResourceUpdateQueue* queue,
PrioritizedResource* texture,
const gfx::Rect& source_rect,
- gfx::Vector2d dest_offset,
+ const gfx::Vector2d& dest_offset,
bool partial_update) {
CHECK(canvas_);
ResourceUpdate upload = ResourceUpdate::Create(texture,