Chromium Code Reviews| Index: ui/gfx/point_f.cc |
| diff --git a/ui/gfx/point_f.cc b/ui/gfx/point_f.cc |
| index d22693a0294af9bc937d1b2c6036804f1822e578..ea683030e528527b51ecec92a37826c90f7d6d44 100644 |
| --- a/ui/gfx/point_f.cc |
| +++ b/ui/gfx/point_f.cc |
| @@ -22,4 +22,11 @@ std::string PointF::ToString() const { |
| return base::StringPrintf("%f,%f", x(), y()); |
| } |
| +PointF ScalePoint(const PointF& p, float x_scale, float y_scale) { |
| + PointF scaled_p(p); |
| + scaled_p.Scale(x_scale, y_scale); |
| + return scaled_p; |
| +} |
| + |
| + |
| } // namespace gfx |