summaryrefslogtreecommitdiffstats
path: root/cc/stubs/float_point_3d.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/stubs/float_point_3d.h')
-rw-r--r--cc/stubs/float_point_3d.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cc/stubs/float_point_3d.h b/cc/stubs/float_point_3d.h
index 02ff076..92e036f 100644
--- a/cc/stubs/float_point_3d.h
+++ b/cc/stubs/float_point_3d.h
@@ -39,10 +39,16 @@ public:
{
}
+
FloatPoint3D(WebCore::FloatPoint point)
: WebCore::FloatPoint3D(point)
{
}
+
+ explicit FloatPoint3D(gfx::PointF point)
+ : WebCore::FloatPoint3D(point.x(), point.y(), 0)
+ {
+ }
};
}