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

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: some missed intstuff Created 8 years, 2 months 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/layer_quad.h
diff --git a/cc/layer_quad.h b/cc/layer_quad.h
index 9f4dfcf97e24ab8e23a4625cced154ae08f568dc..9c760611f57b44bd14c95766fba2369c961949c1 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,7 +60,7 @@ public:
}
void scale(float s) { scale(s, s, s); }
- FloatPoint intersect(const Edge& e) const
+ gfx::PointF intersect(const Edge& e) const
{
return FloatPoint(
enne (OOO) 2012/10/29 22:23:47 Don't rely on implicit conversion here.
danakj 2012/10/31 19:45:43 Oh, thanks. I just missed that one.
(y() * e.z() - e.y() * z()) / (x() * e.y() - e.x() * y()),
« no previous file with comments | « cc/layer_iterator_unittest.cc ('k') | cc/layer_quad.cc » ('j') | cc/layer_tiling_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698