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

Issue 1115653002: 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
CC:
chromium-reviews, jdduke+watch_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam
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. 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -21 lines) Patch
M cc/animation/scroll_offset_animation_curve.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layers/layer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/texture_uploader.h View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/resources/texture_uploader.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/android/overscroll_glow.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/android/overscroll_glow.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_perftest.cc View 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
a.berwal
PTAL
5 years, 7 months ago (2015-04-29 11:29:13 UTC) #2
jamesr
What benchmark+platform are you observing a speedup on? Can you post the numbers on the ...
5 years, 7 months ago (2015-04-29 14:12:48 UTC) #3
danakj
On 2015/04/29 14:12:48, jamesr wrote: > What benchmark+platform are you observing a speedup on? Can ...
5 years, 7 months ago (2015-04-29 17:07:28 UTC) #4
danakj
LGTM
5 years, 7 months ago (2015-04-29 17:08:00 UTC) #5
Avi (use Gerrit)
lgtm
5 years, 7 months ago (2015-04-29 17:56:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1115653002/1
5 years, 7 months ago (2015-04-30 03:13:52 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/11495)
5 years, 7 months ago (2015-04-30 03:38:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1115653002/20001
5 years, 7 months ago (2015-04-30 04:01:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1115653002/40001
5 years, 7 months ago (2015-04-30 04:25:27 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/17807)
5 years, 7 months ago (2015-04-30 05:01:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1115653002/60001
5 years, 7 months ago (2015-04-30 05:55:01 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-04-30 06:43:23 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-04-30 06:44:10 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/299999051553ce065f4277c809e7291150c26364
Cr-Commit-Position: refs/heads/master@{#327659}

Powered by Google App Engine
This is Rietveld 408576698