|
Inline hot ctor/dtors for struct-like gfx:: geometry types
This inlines the ctors and (empty) dtors for gfx::PointF, SizeF and RectF. On
a ToT chromium mac release build, inlining these is a 8.5% speedup on cc_perftests.
Based on profiling data from instruments inlining QuadF would be a speedup as well,
but the chromium-style plugin thinks it's too complex (even though the dtor has no
code).
BUG=
NOTRY=true (yoda style)
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170378
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+48 lines, -97 lines) |
Patch |
 |
M |
ui/gfx/point.h
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/point.cc
|
View
|
1
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/point_f.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/point_f.cc
|
View
|
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/rect.h
|
View
|
1
2
|
2 chunks |
+17 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/rect.cc
|
View
|
1
|
1 chunk |
+0 lines, -21 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/rect_f.h
|
View
|
|
1 chunk |
+20 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/rect_f.cc
|
View
|
|
1 chunk |
+0 lines, -21 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/size.h
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/size.cc
|
View
|
1
|
2 chunks |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/size_f.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/size_f.cc
|
View
|
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|