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

Issue 130443005: [#5] Pass gfx structs by const ref (gfx::Vector2dF) (Closed)

Created:
6 years, 11 months ago by Berwal
Modified:
6 years, 11 months ago
CC:
r.kasibhatla, prashant.n
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Pass gfx structs by const ref (gfx::Vector2dF) Avoid unneccessary copy of structures gfx::Vector2dF 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::Vector2dF) BUG=159273 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246563

Patch Set 1 #

Total comments: 4

Patch Set 2 : Incorporated review comments #

Patch Set 3 : Fixing the trybot results #

Total comments: 2

Patch Set 4 : Incorporated the review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -75 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M cc/animation/layer_animation_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/animation/layer_animation_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/animation/layer_animation_value_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/animation/scroll_offset_animation_curve.h View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/animation/scroll_offset_animation_curve.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M cc/base/math_util.h View 1 chunk +4 lines, -4 lines 0 comments Download
M cc/base/math_util.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M cc/input/input_handler.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/input/layer_scroll_offset_delegate.h View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/input/page_scale_animation.h View 4 chunks +4 lines, -4 lines 0 comments Download
M cc/input/page_scale_animation.cc View 5 chunks +8 lines, -8 lines 0 comments Download
M cc/input/top_controls_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/input/top_controls_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/layer.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer_impl.h View 4 chunks +6 lines, -5 lines 0 comments Download
M cc/layers/layer_impl.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 2 chunks +7 lines, -5 lines 0 comments Download
M cc/test/animation_test_common.h View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/test/animation_test_common.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_sorter.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 3 chunks +4 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/input/input_handler_proxy_unittest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
r.kasibhatla
Correct the given files. https://codereview.chromium.org/130443005/diff/1/AUTHORS File AUTHORS (right): https://codereview.chromium.org/130443005/diff/1/AUTHORS#newcode17 AUTHORS:17: Ajay Berwal <ajay.berwal@samsung.com> Have you ...
6 years, 11 months ago (2014-01-21 10:28:03 UTC) #1
prashant.n
Change the subject line with patch counter, e.g. [#5]
6 years, 11 months ago (2014-01-21 11:29:04 UTC) #2
prashant.n
PTAL
6 years, 11 months ago (2014-01-22 09:23:23 UTC) #3
prashant.n
Adding bulach@ for synchronous_compositor_impl.h and synchronous_compositor_impl.cc Adding jdduke@ for input_handler_proxy_unittest.cc
6 years, 11 months ago (2014-01-22 09:30:26 UTC) #4
Berwal
i have fixed all the compiler issues...now PTAL
6 years, 11 months ago (2014-01-22 14:24:40 UTC) #5
danakj
LGTM https://codereview.chromium.org/130443005/diff/140019/content/renderer/input/input_handler_proxy_unittest.cc File content/renderer/input/input_handler_proxy_unittest.cc (left): https://codereview.chromium.org/130443005/diff/140019/content/renderer/input/input_handler_proxy_unittest.cc#oldcode80 content/renderer/input/input_handler_proxy_unittest.cc:80: keep this line?
6 years, 11 months ago (2014-01-22 17:39:42 UTC) #6
jdduke (slow)
content/renderer/input/input_handler_proxy_unittest.cc lgtm with nit. https://codereview.chromium.org/130443005/diff/140019/content/renderer/input/input_handler_proxy_unittest.cc File content/renderer/input/input_handler_proxy_unittest.cc (right): https://codereview.chromium.org/130443005/diff/140019/content/renderer/input/input_handler_proxy_unittest.cc#newcode51 content/renderer/input/input_handler_proxy_unittest.cc:51: const gfx::Vector2dF& scroll_delta)); Nit: Please ...
6 years, 11 months ago (2014-01-22 18:07:27 UTC) #7
Berwal
On 2014/01/22 17:39:42, danakj wrote: > LGTM > > https://codereview.chromium.org/130443005/diff/140019/content/renderer/input/input_handler_proxy_unittest.cc > File content/renderer/input/input_handler_proxy_unittest.cc (left): > ...
6 years, 11 months ago (2014-01-23 08:59:06 UTC) #8
Berwal
On 2014/01/22 17:39:42, danakj wrote: > LGTM > > https://codereview.chromium.org/130443005/diff/140019/content/renderer/input/input_handler_proxy_unittest.cc > File content/renderer/input/input_handler_proxy_unittest.cc (left): > ...
6 years, 11 months ago (2014-01-23 08:59:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/130443005/60002
6 years, 11 months ago (2014-01-23 09:00:24 UTC) #10
commit-bot: I haz the power
6 years, 11 months ago (2014-01-23 10:39:20 UTC) #11
Message was sent while issue was closed.
Change committed as 246563

Powered by Google App Engine
This is Rietveld 408576698