summaryrefslogtreecommitdiffstats
path: root/ui/gfx/rect.cc
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-30 03:34:37 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-30 03:34:37 +0000
commit7e830a9541a0b76e5c929ad8b64dbf0620b58e00 (patch)
treebc75e35877859df8ee6bd3360b65e12cc2359efc /ui/gfx/rect.cc
parent8f9f3408ebc699966ffed35dd37392f75911b3ee (diff)
downloadchromium_src-7e830a9541a0b76e5c929ad8b64dbf0620b58e00.zip
chromium_src-7e830a9541a0b76e5c929ad8b64dbf0620b58e00.tar.gz
chromium_src-7e830a9541a0b76e5c929ad8b64dbf0620b58e00.tar.bz2
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) Review URL: https://chromiumcodereview.appspot.com/11428076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/rect.cc')
-rw-r--r--ui/gfx/rect.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/ui/gfx/rect.cc b/ui/gfx/rect.cc
index 0fe3813..a562faf 100644
--- a/ui/gfx/rect.cc
+++ b/ui/gfx/rect.cc
@@ -23,27 +23,6 @@ template class RectBase<Rect, Point, Size, Insets, Vector2d, int>;
typedef class RectBase<Rect, Point, Size, Insets, Vector2d, int> RectBaseT;
-Rect::Rect() : RectBaseT(gfx::Point()) {
-}
-
-Rect::Rect(int width, int height)
- : RectBaseT(gfx::Size(width, height)) {
-}
-
-Rect::Rect(int x, int y, int width, int height)
- : RectBaseT(gfx::Point(x, y), gfx::Size(width, height)) {
-}
-
-Rect::Rect(const gfx::Size& size)
- : RectBaseT(size) {
-}
-
-Rect::Rect(const gfx::Point& origin, const gfx::Size& size)
- : RectBaseT(origin, size) {
-}
-
-Rect::~Rect() {}
-
#if defined(OS_WIN)
Rect::Rect(const RECT& r)
: RectBaseT(gfx::Point(r.left, r.top)) {