| Index: cc/stubs/FloatPoint.h
|
| diff --git a/cc/stubs/FloatPoint.h b/cc/stubs/FloatPoint.h
|
| index 4ce268188aa7ee6f97d8945426f71c013ae55194..21ce9f4066db2a63163118ce7704602d36e06737 100644
|
| --- a/cc/stubs/FloatPoint.h
|
| +++ b/cc/stubs/FloatPoint.h
|
| @@ -12,6 +12,7 @@
|
| #else
|
| #include "third_party/WebKit/Source/WebCore/platform/graphics/FloatPoint.h"
|
| #endif
|
| +#include <public/WebFloatPoint.h>
|
|
|
| namespace cc {
|
|
|
| @@ -42,7 +43,16 @@ public:
|
| FloatPoint(WebCore::FloatPoint point)
|
| : WebCore::FloatPoint(point.x(), point.y())
|
| {
|
| + }
|
|
|
| + FloatPoint(WebKit::WebFloatPoint point)
|
| + : WebCore::FloatPoint(point.x, point.y)
|
| + {
|
| + }
|
| +
|
| + operator WebKit::WebFloatPoint() const
|
| + {
|
| + return WebKit::WebFloatPoint(x(), y());
|
| }
|
| };
|
|
|
|
|