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

Unified Diff: cc/CCRenderer.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: Created 8 years, 3 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/CCRenderPassTest.cpp ('k') | cc/CCRendererGL.h » ('j') | cc/math/clamp.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCRenderer.h
diff --git a/cc/CCRenderer.h b/cc/CCRenderer.h
index 78a60819794b2f6e76280c429eecea4fa6e13aa4..4720c8d67af4fe798ead557c2dc2ec5a0c7d1baf 100644
--- a/cc/CCRenderer.h
+++ b/cc/CCRenderer.h
@@ -8,7 +8,6 @@
#include "CCLayerTreeHost.h"
#include "CCRenderPass.h"
#include "FloatQuad.h"
-#include "IntRect.h"
#include <wtf/Noncopyable.h>
#include <wtf/PassRefPtr.h>
@@ -18,7 +17,7 @@ class CCScopedTexture;
class CCRendererClient {
public:
- virtual const IntSize& deviceViewportSize() const = 0;
+ virtual const cc::IntSize& deviceViewportSize() const = 0;
virtual const CCLayerTreeSettings& settings() const = 0;
virtual void didLoseContext() = 0;
virtual void onSwapBuffersComplete() = 0;
@@ -45,7 +44,7 @@ public:
const CCLayerTreeSettings& settings() const { return m_client->settings(); }
- const IntSize& viewportSize() { return m_client->deviceViewportSize(); }
+ ccmath::IntSize viewportSize() { return m_client->deviceViewportSize(); }
int viewportWidth() { return viewportSize().width(); }
int viewportHeight() { return viewportSize().height(); }
@@ -63,7 +62,7 @@ public:
// puts backbuffer onscreen
virtual bool swapBuffers() = 0;
- virtual void getFramebufferPixels(void *pixels, const IntRect&) = 0;
+ virtual void getFramebufferPixels(void *pixels, const cc::IntRect&) = 0;
virtual bool isContextLost();
« no previous file with comments | « cc/CCRenderPassTest.cpp ('k') | cc/CCRendererGL.h » ('j') | cc/math/clamp.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698