Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / cc / resources / bitmap_content_layer_updater.cc
index 312b5a5..6f2332b 100644 (file)
@@ -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);
 }
@@ -55,7 +56,7 @@ scoped_ptr<LayerUpdater::Resource> BitmapContentLayerUpdater::CreateResource(
 
 void BitmapContentLayerUpdater::PrepareToUpdate(
     const gfx::Rect& content_rect,
-    gfx::Size tile_size,
+    const gfx::Size& tile_size,
     float contents_width_scale,
     float contents_height_scale,
     gfx::Rect* resulting_opaque_rect) {
@@ -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,