DescriptionPass gfx structs by const ref (gfx::PointF)
Avoid unneccessary copy of structures gfx::PointF 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.
Reviewed at https://chromiumcodereview.appspot.com/139233002
BUG=159273
Committed: https://crrev.com/0c9d20046ecd599c511fd7f4ff8e8df83230b03d
Cr-Commit-Position: refs/heads/master@{#327651}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|