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.
BUG=159273
Committed: https://crrev.com/b98996a2d5ad7a6f7164a1fb7121cb0b95840fe0
Cr-Commit-Position: refs/heads/master@{#328104}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Rebasing #
Messages
Total messages: 23 (8 generated)
|