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

Unified Diff: ui/gfx/quad_f.h

Issue 11299290: Inline gfx::QuadF and gfx::Transform ctor/dtors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased (QuadF only) Created 7 years, 12 months 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 | « no previous file | ui/gfx/quad_f.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/quad_f.h
diff --git a/ui/gfx/quad_f.h b/ui/gfx/quad_f.h
index 7e6bce10579c10ddf889efd102447f95f7303e26..a63dcfced1f707b99b31d40f9b51510bf2b4af5b 100644
--- a/ui/gfx/quad_f.h
+++ b/ui/gfx/quad_f.h
@@ -17,10 +17,18 @@ namespace gfx {
// axis-aligned, unlike a Rect.
class UI_EXPORT QuadF {
public:
- QuadF();
- QuadF(const PointF& p1, const PointF& p2, const PointF& p3, const PointF& p4);
- explicit QuadF(const RectF& rect);
- ~QuadF();
+ QuadF() {}
+ QuadF(const PointF& p1, const PointF& p2, const PointF& p3, const PointF& p4)
+ : p1_(p1),
+ p2_(p2),
+ p3_(p3),
+ p4_(p4) {}
+
+ explicit QuadF(const RectF& rect)
+ : p1_(rect.x(), rect.y()),
+ p2_(rect.right(), rect.y()),
+ p3_(rect.right(), rect.bottom()),
+ p4_(rect.x(), rect.bottom()) {}
void operator=(const QuadF& quad);
void operator=(const RectF& rect);
« no previous file with comments | « no previous file | ui/gfx/quad_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698