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

Unified Diff: cc/stubs/float_size.h

Issue 11275113: Remove most remaining references to IntRect and FloatRect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compositor bindings 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 | « cc/stubs/Region.h ('k') | cc/stubs/int_size.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/stubs/float_size.h
diff --git a/cc/stubs/float_size.h b/cc/stubs/float_size.h
index d58fb4232445ce41345f68c2adee6c340bd1d9d5..2193ac011b61b663eb0eb88cc6d41d534abfad27 100644
--- a/cc/stubs/float_size.h
+++ b/cc/stubs/float_size.h
@@ -12,6 +12,7 @@
#include "third_party/WebKit/Source/WebCore/platform/graphics/FloatSize.h"
#endif
#include "ui/gfx/size_f.h"
+#include "ui/gfx/vector2d_f.h"
namespace cc {
class FloatSize : public WebCore::FloatSize {
@@ -43,7 +44,14 @@ public:
{
}
+ explicit FloatSize(gfx::Vector2dF vector)
+ : WebCore::FloatSize(vector.x(), vector.y())
+ {
+ }
+
operator gfx::SizeF() const { return gfx::SizeF(width(), height()); }
+
+ operator gfx::Vector2dF() const { return gfx::Vector2dF(width(), height()); }
};
}
« no previous file with comments | « cc/stubs/Region.h ('k') | cc/stubs/int_size.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698