DescriptionPass gfx structs by const ref(gfx::Vector2D/F)
Pass gfx structs by const ref (gfx::Vector2d/F)
Avoid unneccessary copy of structures gfx::Vector2d/F
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/F)
BUG=159273
Committed: https://crrev.com/299999051553ce065f4277c809e7291150c26364
Cr-Commit-Position: refs/heads/master@{#327659}
Patch Set 1 #Patch Set 2 : fixing build errors #Patch Set 3 : fixing build issues #Patch Set 4 : fixing some build issue #
Messages
Total messages: 23 (10 generated)
|