| 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()); }
|
| };
|
|
|
| }
|
|
|