Pass gfx structs by const ref (gfx::Vector2d)
Avoid unneccessary copy of structures gfx::Vector2d
by passing them by const ref rather than value.

Any struct of size > 4 bytes should be passed by const ref.
Passing by ref for these structs is faster than passing
by value, especially when invoking function has multiple parameters.


Pass gfx structs by const ref (gfx::Vector2d)

BUG=159273

Review URL: https://codereview.chromium.org/132163009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248941 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/cc/test/pixel_test.h b/cc/test/pixel_test.h
index 6d5c552..f902613 100644
--- a/cc/test/pixel_test.h
+++ b/cc/test/pixel_test.h
@@ -60,7 +60,7 @@
   void SetUpSoftwareRenderer();
 
   void ForceExpandedViewport(const gfx::Size& surface_expansion);
-  void ForceViewportOffset(gfx::Vector2d viewport_offset);
+  void ForceViewportOffset(const gfx::Vector2d& viewport_offset);
   void ForceDeviceClip(const gfx::Rect& clip);
   void EnableExternalStencilTest();