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

Unified Diff: cc/math_util.h

Issue 11367080: cc: Remove all remaining use of WebCore Rect/Point/Size types from the compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « cc/layer_unittest.cc ('k') | cc/math_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/math_util.h
diff --git a/cc/math_util.h b/cc/math_util.h
index 7d22c6cb865acdb1e6a1e7972ef9b0b5943a3128..1caf6595c0a8483335ae6784c94e8d1bee567c68 100644
--- a/cc/math_util.h
+++ b/cc/math_util.h
@@ -18,12 +18,11 @@ namespace gfx {
class QuadF;
class Rect;
class RectF;
+class Vector2dF;
}
namespace cc {
-class FloatSize;
-
struct HomogeneousCoordinate {
HomogeneousCoordinate(double newX, double newY, double newZ, double newW)
: x(newX)
@@ -104,10 +103,10 @@ public:
// Returns the smallest angle between the given two vectors in degrees. Neither vector is
// assumed to be normalized.
- static float smallestAngleBetweenVectors(const FloatSize&, const FloatSize&);
+ static float smallestAngleBetweenVectors(gfx::Vector2dF, gfx::Vector2dF);
// Projects the |source| vector onto |destination|. Neither vector is assumed to be normalized.
- static FloatSize projectVector(const FloatSize& source, const FloatSize& destination);
+ static gfx::Vector2dF projectVector(gfx::Vector2dF source, gfx::Vector2dF destination);
};
} // namespace cc
« no previous file with comments | « cc/layer_unittest.cc ('k') | cc/math_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698