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

Unified Diff: cc/direct_renderer.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/delegated_renderer_layer_impl_unittest.cc ('k') | cc/direct_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/direct_renderer.h
diff --git a/cc/direct_renderer.h b/cc/direct_renderer.h
index edf4001812e187f088929caa6147fc38f66c7aa5..2744f6acf53bdf4e98474d711725b01f63feaae7 100644
--- a/cc/direct_renderer.h
+++ b/cc/direct_renderer.h
@@ -39,12 +39,12 @@ protected:
const CCRenderPass* currentRenderPass;
const CCScopedTexture* currentTexture;
- FloatRect rootDamageRect;
+ gfx::RectF rootDamageRect;
WebKit::WebTransformationMatrix projectionMatrix;
WebKit::WebTransformationMatrix windowMatrix;
bool flippedY;
- FloatRect scissorRectInRenderPassSpace;
+ gfx::RectF scissorRectInRenderPassSpace;
};
class CachedTexture : public CCScopedTexture {
@@ -71,9 +71,9 @@ protected:
};
static FloatRect quadVertexRect();
- static void quadRectTransform(WebKit::WebTransformationMatrix* quadRectTransform, const WebKit::WebTransformationMatrix& quadTransform, const FloatRect& quadRect);
- static void initializeMatrices(DrawingFrame&, const IntRect& drawRect, bool flipY);
- static IntRect moveScissorToWindowSpace(const DrawingFrame&, FloatRect scissorRect);
+ static void quadRectTransform(WebKit::WebTransformationMatrix* quadRectTransform, const WebKit::WebTransformationMatrix& quadTransform, const gfx::RectF& quadRect);
+ static void initializeMatrices(DrawingFrame&, const gfx::Rect& drawRect, bool flipY);
+ static gfx::Rect moveScissorToWindowSpace(const DrawingFrame&, gfx::RectF scissorRect);
bool haveCachedResources(CCRenderPass::Id) const;
static IntSize renderPassTextureSize(const CCRenderPass*);
@@ -83,9 +83,9 @@ protected:
bool useRenderPass(DrawingFrame&, const CCRenderPass*);
virtual void bindFramebufferToOutputSurface(DrawingFrame&) = 0;
- virtual bool bindFramebufferToTexture(DrawingFrame&, const CCScopedTexture*, const IntRect& framebufferRect) = 0;
- virtual void setDrawViewportSize(const IntSize&) = 0;
- virtual void enableScissorTestRect(const IntRect& scissorRect) = 0;
+ virtual bool bindFramebufferToTexture(DrawingFrame&, const CCScopedTexture*, const gfx::Rect& framebufferRect) = 0;
+ virtual void setDrawViewportSize(const gfx::Size&) = 0;
+ virtual void enableScissorTestRect(const gfx::Rect& scissorRect) = 0;
virtual void disableScissorTest() = 0;
virtual void clearFramebuffer(DrawingFrame&) = 0;
virtual void drawQuad(DrawingFrame&, const CCDrawQuad*) = 0;
« no previous file with comments | « cc/delegated_renderer_layer_impl_unittest.cc ('k') | cc/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698