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

Unified Diff: ui/gfx/point_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/point.cc ('k') | ui/gfx/point_f.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/point_f.h
diff --git a/ui/gfx/point_f.h b/ui/gfx/point_f.h
index 7a828befcd163da693d5b381b608d0b566c39f0f..a7b841f23db9faa802e61bc7b9f1662b3c4fd3f5 100644
--- a/ui/gfx/point_f.h
+++ b/ui/gfx/point_f.h
@@ -16,9 +16,9 @@ namespace gfx {
// A floating version of gfx::Point.
class UI_EXPORT PointF : public PointBase<PointF, float, Vector2dF> {
public:
- PointF();
- PointF(float x, float y);
- ~PointF();
+ PointF() : PointBase<PointF, float, Vector2dF>(0, 0) {}
+ PointF(float x, float y) : PointBase<PointF, float, Vector2dF>(x, y) {}
+ ~PointF() {}
void Scale(float scale) {
Scale(scale, scale);
« no previous file with comments | « ui/gfx/point.cc ('k') | ui/gfx/point_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698