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

Unified Diff: cc/geometry_binding.cc

Issue 11275113: Remove most remaining references to IntRect and FloatRect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compositor bindings 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/geometry_binding.h ('k') | cc/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/geometry_binding.cc
diff --git a/cc/geometry_binding.cc b/cc/geometry_binding.cc
index b8116d79bb888644f8009e630bcc9a6a44fa64cb..89fda4398a3d1d6cdca21e391f0d5f975767b50d 100644
--- a/cc/geometry_binding.cc
+++ b/cc/geometry_binding.cc
@@ -8,21 +8,22 @@
#include "cc/gl_renderer.h" // For the GLC() macro.
#include "third_party/khronos/GLES2/gl2.h"
+#include "ui/gfx/rect_f.h"
#include <public/WebGraphicsContext3D.h>
namespace cc {
-GeometryBinding::GeometryBinding(WebKit::WebGraphicsContext3D* context, const FloatRect& quadVertexRect)
+GeometryBinding::GeometryBinding(WebKit::WebGraphicsContext3D* context, const gfx::RectF& quadVertexRect)
: m_context(context)
, m_quadVerticesVbo(0)
, m_quadElementsVbo(0)
, m_initialized(false)
{
// Vertex positions and texture coordinates for the 4 corners of a 1x1 quad.
- float vertices[] = { quadVertexRect.x(), quadVertexRect.maxY(), 0.0f, 0.0f, 1.0f,
+ float vertices[] = { quadVertexRect.x(), quadVertexRect.bottom(), 0.0f, 0.0f, 1.0f,
quadVertexRect.x(), quadVertexRect.y(), 0.0f, 0.0f, 0.0f,
- quadVertexRect.maxX(), quadVertexRect.y(), 0.0f, 1.0f, 0.0f,
- quadVertexRect.maxX(), quadVertexRect.maxY(), 0.0f, 1.0f, 1.0f };
+ quadVertexRect.right(), quadVertexRect.y(), 0.0f, 1.0f, 0.0f,
+ quadVertexRect.right(), quadVertexRect.bottom(), 0.0f, 1.0f, 1.0f };
uint16_t indices[] = { 0, 1, 2, 0, 2, 3, // The two triangles that make up the layer quad.
0, 1, 2, 3}; // A line path for drawing the layer border.
« no previous file with comments | « cc/geometry_binding.h ('k') | cc/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698