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

Unified Diff: cc/layer_quad.h

Issue 11364044: cc: Replace WebCore::FloatQuad with gfx::QuadF. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reeebase. 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/gl_renderer.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 7283d9cad9ed1617c561dee9edd8f18365d4ca02..4de7bd818e91b584160b0ed0e714e665004cd776 100644
--- a/cc/layer_quad.h
+++ b/cc/layer_quad.h
@@ -6,7 +6,11 @@
#ifndef CCLayerQuad_h
#define CCLayerQuad_h
-#include "FloatQuad.h"
+#include "ui/gfx/point_f.h"
+
+namespace gfx {
+class QuadF;
+}
static const float kAntiAliasingInflateDistance = 0.5f;
@@ -73,7 +77,7 @@ public:
};
LayerQuad(const Edge& left, const Edge& top, const Edge& right, const Edge& bottom);
- LayerQuad(const FloatQuad&);
+ LayerQuad(const gfx::QuadF&);
Edge left() const { return m_left; }
Edge top() const { return m_top; }
@@ -85,7 +89,7 @@ public:
void inflate(float d) { inflateX(d); inflateY(d); }
void inflateAntiAliasingDistance() { inflate(kAntiAliasingInflateDistance); }
- FloatQuad floatQuad() const;
+ gfx::QuadF ToQuadF() const;
void toFloatArray(float[12]) const;
« no previous file with comments | « cc/gl_renderer.cc ('k') | cc/layer_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698