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

Unified Diff: cc/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/direct_renderer.cc ('k') | cc/draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/draw_quad.h
diff --git a/cc/draw_quad.h b/cc/draw_quad.h
index 89fc674becc427effe33ab43877b95519834e236..7476d45cda1c6e765c1e879beb3d099481dbbe44 100644
--- a/cc/draw_quad.h
+++ b/cc/draw_quad.h
@@ -38,19 +38,19 @@ public:
StreamVideoContent,
};
- IntRect quadRect() const { return m_quadRect; }
+ gfx::Rect quadRect() const { return m_quadRect; }
const WebKit::WebTransformationMatrix& quadTransform() const { return m_sharedQuadState->quadTransform; }
- IntRect visibleContentRect() const { return m_sharedQuadState->visibleContentRect; }
- IntRect clippedRectInTarget() const { return m_sharedQuadState->clippedRectInTarget; }
+ gfx::Rect visibleContentRect() const { return m_sharedQuadState->visibleContentRect; }
+ gfx::Rect clippedRectInTarget() const { return m_sharedQuadState->clippedRectInTarget; }
float opacity() const { return m_sharedQuadState->opacity; }
// For the purposes of blending, what part of the contents of this quad are opaque?
- IntRect opaqueRect() const;
- bool needsBlending() const { return m_needsBlending || !opaqueRect().contains(m_quadVisibleRect); }
+ gfx::Rect opaqueRect() const;
+ bool needsBlending() const { return m_needsBlending || !opaqueRect().Contains(m_quadVisibleRect); }
// Allows changing the rect that gets drawn to make it smaller. Parameter passed
// in will be clipped to quadRect().
- void setQuadVisibleRect(const IntRect&);
- IntRect quadVisibleRect() const { return m_quadVisibleRect; }
+ void setQuadVisibleRect(gfx::Rect);
+ gfx::Rect quadVisibleRect() const { return m_quadVisibleRect; }
bool isDebugQuad() const { return m_material == DebugBorder; }
Material material() const { return m_material; }
@@ -66,7 +66,7 @@ public:
void setSharedQuadState(const CCSharedQuadState*);
protected:
- CCDrawQuad(const CCSharedQuadState*, Material, const IntRect&);
+ CCDrawQuad(const CCSharedQuadState*, Material, const gfx::Rect&);
// Stores state common to a large bundle of quads; kept separate for memory
// efficiency. There is special treatment to reconstruct these pointers
@@ -75,8 +75,8 @@ protected:
int m_sharedQuadStateId;
Material m_material;
- IntRect m_quadRect;
- IntRect m_quadVisibleRect;
+ gfx::Rect m_quadRect;
+ gfx::Rect m_quadVisibleRect;
// By default, the shared quad state determines whether or not this quad is
// opaque or needs blending. Derived classes can override with these
@@ -86,7 +86,7 @@ protected:
// Be default, this rect is empty. It is used when the shared quad state and above
// variables determine that the quad is not fully opaque but may be partially opaque.
- IntRect m_opaqueRect;
+ gfx::Rect m_opaqueRect;
};
#pragma pack(pop)
« no previous file with comments | « cc/direct_renderer.cc ('k') | cc/draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698