Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / cc / output / software_output_device.h
index e203902..f03e964 100644 (file)
@@ -36,7 +36,7 @@ class CC_EXPORT SoftwareOutputDevice {
   // Discards any pre-existing backing buffers and allocates memory for a
   // software device of |size|. This must be called before the
   // |SoftwareOutputDevice| can be used in other ways.
-  virtual void Resize(gfx::Size size);
+  virtual void Resize(const gfx::Size& size);
 
   // Called on BeginDrawingFrame. The compositor will draw into the returned
   // SkCanvas. The |SoftwareOutputDevice| implementation needs to provide a
@@ -55,8 +55,7 @@ class CC_EXPORT SoftwareOutputDevice {
 
   // Blit the pixel content of the SoftwareOutputDevice by |delta| with the
   // write clipped to |clip_rect|.
-  virtual void Scroll(gfx::Vector2d delta,
-                      const gfx::Rect& clip_rect);
+  virtual void Scroll(const gfx::Vector2d& delta, const gfx::Rect& clip_rect);
 
   // Discard the backing buffer in the surface provided by this instance.
   virtual void DiscardBackbuffer() {}