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

Unified Diff: cc/layer_quad.h

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ScaleAsVector 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_iterator_unittest.cc ('k') | cc/layer_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_quad.h
diff --git a/cc/layer_quad.h b/cc/layer_quad.h
index 9f4dfcf97e24ab8e23a4625cced154ae08f568dc..3046c14fb38c573f6c5a9483ef2341ddaaade9eb 100644
--- a/cc/layer_quad.h
+++ b/cc/layer_quad.h
@@ -23,7 +23,7 @@ public:
, m_z(0)
{
}
- Edge(const FloatPoint&, const FloatPoint&);
+ Edge(const gfx::PointF&, const gfx::PointF&);
float x() const { return m_x; }
float y() const { return m_y; }
@@ -60,9 +60,9 @@ public:
}
void scale(float s) { scale(s, s, s); }
- FloatPoint intersect(const Edge& e) const
+ gfx::PointF intersect(const Edge& e) const
{
- return FloatPoint(
+ return gfx::PointF(
(y() * e.z() - e.y() * z()) / (x() * e.y() - e.x() * y()),
(x() * e.z() - e.x() * z()) / (e.x() * y() - x() * e.y()));
}
« no previous file with comments | « cc/layer_iterator_unittest.cc ('k') | cc/layer_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698