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

Unified Diff: ui/gfx/rect_f.h

Issue 11428076: Inline hot ctor/dtors for struct-like gfx:: geometry types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style issues Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/rect.cc ('k') | ui/gfx/rect_f.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/rect_f.h
diff --git a/ui/gfx/rect_f.h b/ui/gfx/rect_f.h
index 2bc367c94e33cd232a7e4ec025e31cf1e8a1f9ae..bbc16cc42c23261dae5cbb6c24bd494d3159f025 100644
--- a/ui/gfx/rect_f.h
+++ b/ui/gfx/rect_f.h
@@ -20,13 +20,27 @@ class InsetsF;
class UI_EXPORT RectF
: public RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> {
public:
- RectF();
- RectF(float width, float height);
- RectF(float x, float y, float width, float height);
- explicit RectF(const gfx::SizeF& size);
- RectF(const gfx::PointF& origin, const gfx::SizeF& size);
+ RectF()
+ : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
+ (SizeF()) {}
- ~RectF();
+ RectF(float width, float height)
+ : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
+ (SizeF(width, height)) {}
+
+ RectF(float x, float y, float width, float height)
+ : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
+ (PointF(x, y), SizeF(width, height)) {}
+
+ explicit RectF(const SizeF& size)
+ : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
+ (size) {}
+
+ RectF(const PointF& origin, const SizeF& size)
+ : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>
+ (origin, size) {}
+
+ ~RectF() {}
// Scales the rectangle by |scale|.
void Scale(float scale) {
« no previous file with comments | « ui/gfx/rect.cc ('k') | ui/gfx/rect_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698