| Index: cc/stubs/int_size.h
|
| diff --git a/cc/stubs/int_size.h b/cc/stubs/int_size.h
|
| index 8b75f1ee43e7c47874268fd71a0764706cf7ab05..9e1c3e60fb5e76ff5bf2b940f571f88ff78c3880 100644
|
| --- a/cc/stubs/int_size.h
|
| +++ b/cc/stubs/int_size.h
|
| @@ -11,6 +11,7 @@
|
| #include "third_party/WebKit/Source/WebCore/platform/graphics/IntSize.h"
|
| #endif
|
| #include "ui/gfx/size.h"
|
| +#include "ui/gfx/vector2d.h"
|
|
|
| namespace cc {
|
|
|
| @@ -34,7 +35,14 @@ public:
|
| {
|
| }
|
|
|
| + explicit IntSize(gfx::Vector2d vector)
|
| + : WebCore::IntSize(vector.x(), vector.y())
|
| + {
|
| + }
|
| +
|
| operator gfx::Size() const { return gfx::Size(width(), height()); }
|
| +
|
| + operator gfx::Vector2d() const { return gfx::Vector2d(width(), height()); }
|
| };
|
|
|
| }
|
|
|