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

Unified Diff: ui/gfx/size_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/size.cc ('k') | ui/gfx/size_f.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/size_f.h
diff --git a/ui/gfx/size_f.h b/ui/gfx/size_f.h
index 98d2e0cc77fcb574eb37bae6d4f4e251ba5b9086..a38d3f6caffffd1e3eb4941f015bb0c32a4f70cc 100644
--- a/ui/gfx/size_f.h
+++ b/ui/gfx/size_f.h
@@ -16,9 +16,9 @@ namespace gfx {
// A floating version of gfx::Size.
class UI_EXPORT SizeF : public SizeBase<SizeF, float> {
public:
- SizeF();
- SizeF(float width, float height);
- ~SizeF();
+ SizeF() : SizeBase<SizeF, float>(0, 0) {}
+ SizeF(float width, float height) : SizeBase<SizeF, float>(width, height) {}
+ ~SizeF() {}
void Scale(float scale) {
Scale(scale, scale);
« no previous file with comments | « ui/gfx/size.cc ('k') | ui/gfx/size_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698