| Index: cc/base/math_util.cc
|
| diff --git a/cc/base/math_util.cc b/cc/base/math_util.cc
|
| index 07ad77bd7703d8fc2ed7768858044a7a9b348688..5e34824f445c8c016311033c1babc931b1c4f19d 100644
|
| --- a/cc/base/math_util.cc
|
| +++ b/cc/base/math_util.cc
|
| @@ -606,6 +606,13 @@ scoped_ptr<base::Value> MathUtil::AsValue(const gfx::Vector2d& v) {
|
| return res.PassAs<base::Value>();
|
| }
|
|
|
| +scoped_ptr<base::Value> MathUtil::AsValue(const gfx::Vector2dF& v) {
|
| + scoped_ptr<base::ListValue> res(new base::ListValue());
|
| + res->AppendDouble(v.x());
|
| + res->AppendDouble(v.y());
|
| + return res.PassAs<base::Value>();
|
| +}
|
| +
|
| scoped_ptr<base::Value> MathUtil::AsValue(const gfx::QuadF& q) {
|
| scoped_ptr<base::ListValue> res(new base::ListValue());
|
| res->AppendDouble(q.p1().x());
|
|
|