angler-fishThe Vulnerability History Project

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
    
commit 243e4f1996a61098947b5f9ad1798d6b5412ef0b
+1 -1
+2 -1
+2 -1
+4 -3
+4 -3
+1 -1
+1 -1
+1 -1
+2 -2
+2 -1
+5 -6
+2 -2
+1 -1
+1 -1
+2 -2
+2 -2
+1 -2
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+1 -2
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+1 -1
+4 -5
+1 -1
+1 -1
+2 -1
+1 -1
+5 -5
+1 -1
+2 -3
+1 -1
+1 -1
+1 -1
+2 -2
+1 -1
+1 -1
+1 -1
expand_less