diff options
author | a.berwal <a.berwal@samsung.com> | 2015-04-29 21:10:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-30 04:11:02 +0000 |
commit | 0c9d20046ecd599c511fd7f4ff8e8df83230b03d (patch) | |
tree | ce12ed6ac6e577c23150a82aae2690bbdc6e7215 /media/blink/webmediaplayer_impl.cc | |
parent | 2288c539cc227ec262be28c4b684ff38527f7768 (diff) | |
download | chromium_src-0c9d20046ecd599c511fd7f4ff8e8df83230b03d.zip chromium_src-0c9d20046ecd599c511fd7f4ff8e8df83230b03d.tar.gz chromium_src-0c9d20046ecd599c511fd7f4ff8e8df83230b03d.tar.bz2 |
Pass 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
Review URL: https://codereview.chromium.org/1109393002
Cr-Commit-Position: refs/heads/master@{#327651}
Diffstat (limited to 'media/blink/webmediaplayer_impl.cc')
0 files changed, 0 insertions, 0 deletions