Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: ui/gfx/point.h

Issue 11369144: ui: Make gfx::Point::Scale() mutate the class, similar to gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for aura Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/point.h
diff --git a/ui/gfx/point.h b/ui/gfx/point.h
index 2e476d0e061464af2111e431ab551fa9ce21ec2f..133e93602da7e50713a011272078d1fbdcab74fb 100644
--- a/ui/gfx/point.h
+++ b/ui/gfx/point.h
@@ -49,14 +49,6 @@ class UI_EXPORT Point : public PointBase<Point, int, Vector2d> {
return PointF(x(), y());
}
- 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;
};
« cc/layer_impl.cc ('K') | « ui/compositor/dip_util.cc ('k') | ui/gfx/point_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698