| Index: cc/base/math_util.cc
|
| diff --git a/cc/base/math_util.cc b/cc/base/math_util.cc
|
| index 641d6499cd147a759453baa86095101851ab5b6e..a619b50698b4c536ec3cd9542b60b67e5349b4c3 100644
|
| --- a/cc/base/math_util.cc
|
| +++ b/cc/base/math_util.cc
|
| @@ -591,6 +591,14 @@ scoped_ptr<base::Value> MathUtil::AsValue(const gfx::PointF& pt) {
|
| return res.PassAs<base::Value>();
|
| }
|
|
|
| +scoped_ptr<base::Value> MathUtil::AsValue(const gfx::Point3F& pt) {
|
| + scoped_ptr<base::ListValue> res(new base::ListValue());
|
| + res->AppendDouble(pt.x());
|
| + res->AppendDouble(pt.y());
|
| + res->AppendDouble(pt.z());
|
| + return res.PassAs<base::Value>();
|
| +}
|
| +
|
| scoped_ptr<base::Value> MathUtil::AsValue(const gfx::Vector2d& v) {
|
| scoped_ptr<base::ListValue> res(new base::ListValue());
|
| res->AppendInteger(v.x());
|
|
|