Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Issue 1112813003: Pass gfx structs by const ref (gfx::Vector2d/F) (Closed)

Created:
5 years, 7 months ago by a.berwal
Modified:
5 years, 7 months ago
Reviewers:
danakj, sadrul, sky
CC:
chromium-reviews, ozone-reviews_chromium.org, tdanderson+views_chromium.org, tdresser+watch_chromium.org, Ian Vollick, tfarina, sievers+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, jdduke+watch_chromium.org, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -11 lines) Patch
M ui/aura_extra/image_window_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gesture_detection/velocity_tracker_unittest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M ui/events/ozone/evdev/device_event_dispatcher_evdev.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/device_event_dispatcher_evdev.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (8 generated)
a.berwal
PTAL
5 years, 7 months ago (2015-04-29 10:50:17 UTC) #2
sadrul
https://codereview.chromium.org/1112813003/diff/1/ui/events/gesture_detection/velocity_tracker_unittest.cc File ui/events/gesture_detection/velocity_tracker_unittest.cc (right): https://codereview.chromium.org/1112813003/diff/1/ui/events/gesture_detection/velocity_tracker_unittest.cc#newcode51 ui/events/gesture_detection/velocity_tracker_unittest.cc:51: gfx::PointF p0, This too? https://codereview.chromium.org/1112813003/diff/1/ui/events/gesture_detection/velocity_tracker_unittest.cc#newcode60 ui/events/gesture_detection/velocity_tracker_unittest.cc:60: gfx::PointF p0, ditto ...
5 years, 7 months ago (2015-04-29 15:09:53 UTC) #3
danakj
ui/compositor LGTM
5 years, 7 months ago (2015-04-29 17:04:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1112813003/1
5 years, 7 months ago (2015-04-30 03:14:17 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/60127)
5 years, 7 months ago (2015-04-30 03:20:58 UTC) #9
a.berwal
https://chromiumcodereview.appspot.com/1112813003/diff/1/ui/events/gesture_detection/velocity_tracker_unittest.cc File ui/events/gesture_detection/velocity_tracker_unittest.cc (right): https://chromiumcodereview.appspot.com/1112813003/diff/1/ui/events/gesture_detection/velocity_tracker_unittest.cc#newcode51 ui/events/gesture_detection/velocity_tracker_unittest.cc:51: gfx::PointF p0, On 2015/04/29 15:09:53, sadrul wrote: > This ...
5 years, 7 months ago (2015-04-30 03:25:11 UTC) #10
a.berwal
Can i TBR here?
5 years, 7 months ago (2015-04-30 04:12:21 UTC) #11
jdduke (slow)
On 2015/04/30 04:12:21, a.berwal wrote: > Can i TBR here? In general, no, unless it's ...
5 years, 7 months ago (2015-04-30 04:16:41 UTC) #12
a.berwal
On 2015/04/30 04:16:41, jdduke wrote: > On 2015/04/30 04:12:21, a.berwal wrote: > > Can i ...
5 years, 7 months ago (2015-04-30 04:18:45 UTC) #13
sky
LGTM
5 years, 7 months ago (2015-04-30 18:05:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1112813003/1
5 years, 7 months ago (2015-05-04 03:00:16 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/63423)
5 years, 7 months ago (2015-05-04 03:02:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1112813003/20001
5 years, 7 months ago (2015-05-04 07:27:54 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-04 08:28:46 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-05-04 08:29:38 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b98996a2d5ad7a6f7164a1fb7121cb0b95840fe0
Cr-Commit-Position: refs/heads/master@{#328104}

Powered by Google App Engine
This is Rietveld 408576698