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

Unified Diff: cc/shared_quad_state.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/renderer.h ('k') | cc/shared_quad_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/shared_quad_state.h
diff --git a/cc/shared_quad_state.h b/cc/shared_quad_state.h
index 0f5e386410d599588d644bbf42f78912e8d1bef3..00e508078d93f21585a4d8a49ed0ae85b703bac1 100644
--- a/cc/shared_quad_state.h
+++ b/cc/shared_quad_state.h
@@ -5,8 +5,8 @@
#ifndef CCSharedQuadState_h
#define CCSharedQuadState_h
-#include "IntRect.h"
#include "base/memory/scoped_ptr.h"
+#include "ui/gfx/rect.h"
#include <public/WebTransformationMatrix.h>
namespace cc {
@@ -17,13 +17,13 @@ struct CCSharedQuadState {
// Transforms from quad's original content space to its target content space.
WebKit::WebTransformationMatrix quadTransform;
// This rect lives in the content space for the quad's originating layer.
- IntRect visibleContentRect;
- IntRect clippedRectInTarget;
+ gfx::Rect visibleContentRect;
+ gfx::Rect clippedRectInTarget;
float opacity;
bool opaque;
- static scoped_ptr<CCSharedQuadState> create(const WebKit::WebTransformationMatrix& quadTransform, const IntRect& visibleContentRect, const IntRect& clippedRectInTarget, float opacity, bool opaque);
- CCSharedQuadState(const WebKit::WebTransformationMatrix& quadTransform, const IntRect& visibleContentRect, const IntRect& clippedRectInTarget, float opacity, bool opaque);
+ static scoped_ptr<CCSharedQuadState> create(const WebKit::WebTransformationMatrix& quadTransform, const gfx::Rect& visibleContentRect, const gfx::Rect& clippedRectInTarget, float opacity, bool opaque);
+ CCSharedQuadState(const WebKit::WebTransformationMatrix& quadTransform, const gfx::Rect& visibleContentRect, const gfx::Rect& clippedRectInTarget, float opacity, bool opaque);
scoped_ptr<CCSharedQuadState> copy() const;
};
« no previous file with comments | « cc/renderer.h ('k') | cc/shared_quad_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698