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

Issue 132163009: [#6]Pass gfx structs by const ref (gfx::Vector2d) (Closed)

Created:
6 years, 11 months ago by Berwal
Modified:
6 years, 10 months ago
CC:
chromium-reviews, jbauman+watch_chromium.org, Ian Vollick, jam, sievers+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org, r.kasibhatla, prashant.n
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 2

Patch Set 2 : Incorporated the review comments #

Patch Set 3 : Fixed some errors #

Patch Set 4 : Solved applying issue #

Patch Set 5 : Rebased to ToT! #

Patch Set 6 : rebase on TOT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -75 lines) Patch
M cc/input/input_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M cc/layers/tiled_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/output/direct_renderer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/output/direct_renderer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/output/software_output_device.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M cc/output/software_output_device.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/bitmap_content_layer_updater.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/resources/bitmap_content_layer_updater.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M cc/resources/bitmap_skpicture_content_layer_updater.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/bitmap_skpicture_content_layer_updater.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/image_layer_updater.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/resources/image_layer_updater.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/resources/layer_updater.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/prioritized_resource.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/prioritized_resource.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/resource_update.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/resource_update.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_layer_tree_host_client.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/pixel_test.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/tiled_layer_test_common.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/tiled_layer_test_common.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_client.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_perftest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/input/input_handler_proxy_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/compositor_app/compositor_host.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/compositor_app/compositor_host.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 70 (0 generated)
r.kasibhatla
Correct the 2 issues. https://codereview.chromium.org/132163009/diff/1/cc/resources/bitmap_content_layer_updater.cc File cc/resources/bitmap_content_layer_updater.cc (right): https://codereview.chromium.org/132163009/diff/1/cc/resources/bitmap_content_layer_updater.cc#newcode27 cc/resources/bitmap_content_layer_updater.cc:27: bool partial_update) { The alignment ...
6 years, 11 months ago (2014-01-24 05:32:15 UTC) #1
r.kasibhatla
6 years, 11 months ago (2014-01-24 05:32:38 UTC) #2
Berwal
On 2014/01/24 05:32:15, r.kasibhatla wrote: > Correct the 2 issues. > > https://codereview.chromium.org/132163009/diff/1/cc/resources/bitmap_content_layer_updater.cc > File ...
6 years, 11 months ago (2014-01-24 07:40:41 UTC) #3
Berwal
PTAL.......
6 years, 11 months ago (2014-01-24 13:36:49 UTC) #4
jdduke (slow)
On 2014/01/24 13:36:49, ajay.berwal wrote: > PTAL....... content/renderer/input lgtm
6 years, 11 months ago (2014-01-24 16:42:40 UTC) #5
Berwal
@danakj PTAL at cc/ @Aoron Boodman PTAL at mojo/
6 years, 11 months ago (2014-01-27 13:33:07 UTC) #6
danakj
LGTM
6 years, 11 months ago (2014-01-27 19:34:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/132163009/270001
6 years, 10 months ago (2014-01-28 18:18:15 UTC) #8
danakj
+piman for content/ +jamesr mojo/
6 years, 10 months ago (2014-01-28 18:19:32 UTC) #9
jamesr
lgtm
6 years, 10 months ago (2014-01-28 18:22:38 UTC) #10
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=46806
6 years, 10 months ago (2014-01-28 18:58:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/132163009/270001
6 years, 10 months ago (2014-01-29 05:23:47 UTC) #12
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=46923
6 years, 10 months ago (2014-01-29 06:02:00 UTC) #13
Berwal
@piman PTAL
6 years, 10 months ago (2014-01-30 05:36:46 UTC) #14
Berwal
@avi PTAL content/
6 years, 10 months ago (2014-01-31 12:11:50 UTC) #15
Avi (use Gerrit)
Content lgtm
6 years, 10 months ago (2014-01-31 15:34:49 UTC) #16
Berwal
The CQ bit was checked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-01-31 16:05:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/132163009/270001
6 years, 10 months ago (2014-01-31 16:05:42 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-01-31 16:05:59 UTC) #19
commit-bot: I haz the power
Failed to apply patch for cc/layers/layer.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-01-31 16:06:00 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 16:06:04 UTC) #21
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 16:06:06 UTC) #22
Berwal
The CQ bit was unchecked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-01-31 16:11:15 UTC) #23
Berwal
The CQ bit was checked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-01-31 16:11:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/132163009/270001
6 years, 10 months ago (2014-01-31 16:11:29 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-01-31 16:11:47 UTC) #26
commit-bot: I haz the power
Failed to apply patch for cc/layers/layer.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-01-31 16:11:48 UTC) #27
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 16:11:54 UTC) #28
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 16:11:56 UTC) #29
Berwal
The CQ bit was checked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-01-31 22:28:42 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/132163009/270001
6 years, 10 months ago (2014-01-31 22:29:19 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-01-31 22:29:35 UTC) #32
commit-bot: I haz the power
Failed to apply patch for cc/layers/layer.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-01-31 22:29:35 UTC) #33
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 22:29:38 UTC) #34
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 22:29:42 UTC) #35
Berwal
The CQ bit was checked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-02-02 18:59:04 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/132163009/390002
6 years, 10 months ago (2014-02-02 18:59:15 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-02 19:17:51 UTC) #38
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=222065
6 years, 10 months ago (2014-02-02 19:17:53 UTC) #39
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-02 19:17:54 UTC) #40
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-02 19:17:55 UTC) #41
Berwal
The CQ bit was checked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-02-02 20:09:22 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/132163009/730001
6 years, 10 months ago (2014-02-02 20:09:34 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-02 20:27:15 UTC) #44
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=219594
6 years, 10 months ago (2014-02-02 20:27:16 UTC) #45
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-02 20:27:24 UTC) #46
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-02 20:27:25 UTC) #47
Berwal
The CQ bit was unchecked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-02-03 09:26:58 UTC) #48
Berwal
The CQ bit was checked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-02-03 09:27:00 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/132163009/940001
6 years, 10 months ago (2014-02-03 09:27:14 UTC) #50
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-03 09:43:27 UTC) #51
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=222163
6 years, 10 months ago (2014-02-03 09:43:29 UTC) #52
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 09:43:35 UTC) #53
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 09:43:37 UTC) #54
Berwal
The CQ bit was checked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-02-04 13:37:14 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/132163009/1160001
6 years, 10 months ago (2014-02-04 13:37:53 UTC) #56
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-04 13:38:21 UTC) #57
commit-bot: I haz the power
Failed to apply patch for cc/scheduler/texture_uploader.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 10 months ago (2014-02-04 13:38:22 UTC) #58
skia-commit-bot
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-04 13:38:32 UTC) #59
Berwal
The CQ bit was checked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-02-04 15:56:51 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/132163009/1240001
6 years, 10 months ago (2014-02-04 15:58:42 UTC) #61
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-04 16:40:00 UTC) #62
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=223293
6 years, 10 months ago (2014-02-04 16:40:01 UTC) #63
skia-commit-bot
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-04 16:40:02 UTC) #64
Berwal
The CQ bit was checked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-02-05 07:46:35 UTC) #65
Berwal
The CQ bit was unchecked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-02-05 07:46:35 UTC) #66
Berwal
The CQ bit was unchecked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-02-05 07:48:18 UTC) #67
Berwal
The CQ bit was checked by ajay.berwal@samsung.com
6 years, 10 months ago (2014-02-05 07:48:49 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajay.berwal@samsung.com/132163009/1240001
6 years, 10 months ago (2014-02-05 07:51:31 UTC) #69
commit-bot: I haz the power
6 years, 10 months ago (2014-02-05 09:18:49 UTC) #70
Message was sent while issue was closed.
Change committed as 248941

Powered by Google App Engine
This is Rietveld 408576698