Index: ui/gfx/point_f.h |
diff --git a/ui/gfx/point_f.h b/ui/gfx/point_f.h |
index ff1c4dfdff0912077ea580070c0ffcc53b191964..a0b367f9789ea165b4efd8873720c3223e96d6ca 100644 |
--- a/ui/gfx/point_f.h |
+++ b/ui/gfx/point_f.h |
@@ -19,6 +19,14 @@ class UI_EXPORT PointF : public PointBase<PointF, float> { |
PointF(float x, float y); |
~PointF(); |
+ PointF Scale(float scale) const WARN_UNUSED_RESULT { |
+ return Scale(scale, scale); |
+ } |
+ |
+ PointF Scale(float x_scale, float y_scale) const WARN_UNUSED_RESULT { |
+ return PointF(x() * x_scale, y() * y_scale); |
+ } |
+ |
// Returns a string representation of point. |
std::string ToString() const; |
}; |