Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / cc / resources / layer_updater.h
index 730773f..44c6765 100644 (file)
@@ -30,8 +30,9 @@ class CC_EXPORT LayerUpdater : public base::RefCounted<LayerUpdater> {
     // instead of an argument passed to Update().
     virtual void Update(ResourceUpdateQueue* queue,
                         const gfx::Rect& source_rect,
-                        gfx::Vector2d dest_offset,
+                        const gfx::Vector2d& dest_offset,
                         bool partial_update) = 0;
+
    protected:
     explicit Resource(scoped_ptr<PrioritizedResource> texture);
 
@@ -49,7 +50,7 @@ class CC_EXPORT LayerUpdater : public base::RefCounted<LayerUpdater> {
   // painted opaque. If the layer is marked opaque in the updater, then this
   // region should be ignored in preference for the entire layer's area.
   virtual void 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) {}