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

Unified Diff: cc/geometry.h

Issue 11293194: ui: Prefer +/- operators to apply offsets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: floats 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: cc/geometry.h
diff --git a/cc/geometry.h b/cc/geometry.h
index 91989270997e17155654c2f9aa3be0338fdc81b2..d9e14ee9e56fe0a727e2893212416ce77187141e 100644
--- a/cc/geometry.h
+++ b/cc/geometry.h
@@ -65,19 +65,6 @@ inline gfx::PointF BottomRight(gfx::RectF rect) {
return gfx::PointF(rect.right(), rect.bottom());
}
-// Return a vector that is |v| scaled by the given scale factors along each
-// axis.
-inline gfx::Vector2dF ScaleVector2d(gfx::Vector2dF v, float x_scale, float y_scale) {
- gfx::Vector2dF scaled = v;
- scaled.Scale(x_scale, y_scale);
- return scaled;
-}
-
-// Return a vector that is |v| scaled by the given scale factor.
-inline gfx::Vector2dF ScaleVector2d(gfx::Vector2dF v, float scale) {
- return ScaleVector2d(v, scale, scale);
-}
-
} // namespace cc
#endif // CC_GEOMETRY_H_
« .gitmodules ('K') | « .gitmodules ('k') | cc/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698