Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / cc / resources / image_layer_updater.cc
index 470f518..0538d96 100644 (file)
@@ -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);
@@ -29,14 +29,14 @@ scoped_refptr<ImageLayerUpdater> ImageLayerUpdater::Create() {
 
 scoped_ptr<LayerUpdater::Resource> ImageLayerUpdater::CreateResource(
     PrioritizedResourceManager* manager) {
-  return scoped_ptr<LayerUpdater::Resource>(
+  return make_scoped_ptr(
       new Resource(this, PrioritizedResource::Create(manager)));
 }
 
 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.