|
[#4] 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.
Pass by value creates unneccessary overhead which should be avoided.
BUG= 159273
R=danakj, enne, piman
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245467
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+95 lines, -88 lines) |
Patch |
|
M |
cc/base/math_util.h
|
View
|
1
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
cc/base/math_util.cc
|
View
|
1
|
6 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
|
M |
cc/debug/overdraw_metrics.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/layers/layer.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/layers/layer.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/layers/layer_impl.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
cc/layers/layer_impl.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
cc/layers/layer_position_constraint_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/layers/texture_layer.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/layers/texture_layer.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
cc/layers/texture_layer_impl.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/layers/ui_resource_layer.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/layers/ui_resource_layer.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
cc/layers/ui_resource_layer_impl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/layers/ui_resource_layer_impl.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/quads/texture_draw_quad.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
cc/quads/texture_draw_quad.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
cc/resources/layer_quad.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/resources/layer_quad.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/trees/layer_sorter.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/trees/layer_sorter.cc
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_common.h
|
View
|
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_common.cc
|
View
|
|
6 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_common_unittest.cc
|
View
|
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_impl.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_impl.cc
|
View
|
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_unittest_occlusion.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/trees/occlusion_tracker_unittest.cc
|
View
|
|
8 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|