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

Unified Diff: cc/texture_draw_quad.h

Issue 10984053: cc: Use ui/gfx geometry types for the CCRenderPass and CCDrawQuad classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « cc/test/mock_quad_culler.cc ('k') | cc/texture_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture_draw_quad.h
diff --git a/cc/texture_draw_quad.h b/cc/texture_draw_quad.h
index daa600f717f6d44da2ffe9151391c63c8aa9057e..0c5736ee3b0954a132506bacc770f65be8c9ae26 100644
--- a/cc/texture_draw_quad.h
+++ b/cc/texture_draw_quad.h
@@ -6,8 +6,8 @@
#define CCTextureDrawQuad_h
#include "CCDrawQuad.h"
-#include "FloatRect.h"
#include "base/memory/scoped_ptr.h"
+#include "ui/gfx/rect_f.h"
namespace cc {
@@ -15,8 +15,8 @@ namespace cc {
class CCTextureDrawQuad : public CCDrawQuad {
public:
- static scoped_ptr<CCTextureDrawQuad> create(const CCSharedQuadState*, const IntRect&, unsigned resourceId, bool premultipliedAlpha, const FloatRect& uvRect, bool flipped);
- FloatRect uvRect() const { return m_uvRect; }
+ static scoped_ptr<CCTextureDrawQuad> create(const CCSharedQuadState*, const gfx::Rect&, unsigned resourceId, bool premultipliedAlpha, const gfx::RectF& uvRect, bool flipped);
+ gfx::RectF uvRect() const { return m_uvRect; }
unsigned resourceId() const { return m_resourceId; }
bool premultipliedAlpha() const { return m_premultipliedAlpha; }
@@ -26,11 +26,11 @@ public:
static const CCTextureDrawQuad* materialCast(const CCDrawQuad*);
private:
- CCTextureDrawQuad(const CCSharedQuadState*, const IntRect&, unsigned resourceId, bool premultipliedAlpha, const FloatRect& uvRect, bool flipped);
+ CCTextureDrawQuad(const CCSharedQuadState*, const gfx::Rect&, unsigned resourceId, bool premultipliedAlpha, const gfx::RectF& uvRect, bool flipped);
unsigned m_resourceId;
bool m_premultipliedAlpha;
- FloatRect m_uvRect;
+ gfx::RectF m_uvRect;
bool m_flipped;
};
« no previous file with comments | « cc/test/mock_quad_culler.cc ('k') | cc/texture_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698