summaryrefslogtreecommitdiffstats
path: root/cc/gl_renderer.h
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 20:58:10 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 20:58:10 +0000
commit184fac5add06d5f4670fa6be4a4d3b39232d51bb (patch)
tree7efc1d20146fcafdbe408fa67292117c41e9393f /cc/gl_renderer.h
parentfb7ffba75e81a79436434bab0715be0d6e67bc07 (diff)
downloadchromium_src-184fac5add06d5f4670fa6be4a4d3b39232d51bb.zip
chromium_src-184fac5add06d5f4670fa6be4a4d3b39232d51bb.tar.gz
chromium_src-184fac5add06d5f4670fa6be4a4d3b39232d51bb.tar.bz2
cc: Rename cc classes and members to match filenames
BUG=155413 Review URL: https://codereview.chromium.org/11189043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/gl_renderer.h')
-rw-r--r--cc/gl_renderer.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/cc/gl_renderer.h b/cc/gl_renderer.h
index e6d1652..fc9ddfb 100644
--- a/cc/gl_renderer.h
+++ b/cc/gl_renderer.h
@@ -21,21 +21,21 @@ class WebGraphicsContext3D;
namespace cc {
-class CCScopedTexture;
-class CCStreamVideoDrawQuad;
-class CCTextureDrawQuad;
+class ScopedTexture;
+class StreamVideoDrawQuad;
+class TextureDrawQuad;
class GeometryBinding;
class ScopedEnsureFramebufferAllocation;
// Class that handles drawing of composited render layers using GL.
-class CCRendererGL : public CCDirectRenderer,
+class GLRenderer : public DirectRenderer,
public WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM,
public WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM ,
public WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback {
public:
- static scoped_ptr<CCRendererGL> create(CCRendererClient*, CCResourceProvider*);
+ static scoped_ptr<GLRenderer> create(RendererClient*, ResourceProvider*);
- virtual ~CCRendererGL();
+ virtual ~GLRenderer();
virtual const RendererCapabilities& capabilities() const OVERRIDE;
@@ -57,14 +57,14 @@ public:
const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get(); }
virtual void getFramebufferPixels(void *pixels, const IntRect&) OVERRIDE;
- bool getFramebufferTexture(CCScopedTexture*, const IntRect& deviceRect);
+ bool getFramebufferTexture(ScopedTexture*, const IntRect& deviceRect);
virtual bool isContextLost() OVERRIDE;
virtual void setVisible(bool) OVERRIDE;
protected:
- CCRendererGL(CCRendererClient*, CCResourceProvider*);
+ GLRenderer(RendererClient*, ResourceProvider*);
bool isFramebufferDiscarded() const { return m_isFramebufferDiscarded; }
bool initialize();
@@ -72,12 +72,12 @@ protected:
void releaseRenderPassTextures();
virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE;
- virtual bool bindFramebufferToTexture(DrawingFrame&, const CCScopedTexture*, const IntRect& framebufferRect) OVERRIDE;
+ virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, const IntRect& framebufferRect) OVERRIDE;
virtual void setDrawViewportSize(const IntSize&) OVERRIDE;
virtual void enableScissorTestRect(const IntRect& scissorRect) OVERRIDE;
virtual void disableScissorTest() OVERRIDE;
virtual void clearFramebuffer(DrawingFrame&) OVERRIDE;
- virtual void drawQuad(DrawingFrame&, const CCDrawQuad*) OVERRIDE;
+ virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE;
virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE;
virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE;
virtual bool flippedFramebuffer() const OVERRIDE;
@@ -85,16 +85,16 @@ protected:
private:
static void toGLMatrix(float*, const WebKit::WebTransformationMatrix&);
- void drawCheckerboardQuad(const DrawingFrame&, const CCCheckerboardDrawQuad*);
- void drawDebugBorderQuad(const DrawingFrame&, const CCDebugBorderDrawQuad*);
- scoped_ptr<CCScopedTexture> drawBackgroundFilters(DrawingFrame&, const CCRenderPassDrawQuad*, const WebKit::WebFilterOperations&, const WebKit::WebTransformationMatrix& deviceTransform);
- void drawRenderPassQuad(DrawingFrame&, const CCRenderPassDrawQuad*);
- void drawSolidColorQuad(const DrawingFrame&, const CCSolidColorDrawQuad*);
- void drawStreamVideoQuad(const DrawingFrame&, const CCStreamVideoDrawQuad*);
- void drawTextureQuad(const DrawingFrame&, const CCTextureDrawQuad*);
- void drawIOSurfaceQuad(const DrawingFrame&, const CCIOSurfaceDrawQuad*);
- void drawTileQuad(const DrawingFrame&, const CCTileDrawQuad*);
- void drawYUVVideoQuad(const DrawingFrame&, const CCYUVVideoDrawQuad*);
+ void drawCheckerboardQuad(const DrawingFrame&, const CheckerboardDrawQuad*);
+ void drawDebugBorderQuad(const DrawingFrame&, const DebugBorderDrawQuad*);
+ scoped_ptr<ScopedTexture> drawBackgroundFilters(DrawingFrame&, const RenderPassDrawQuad*, const WebKit::WebFilterOperations&, const WebKit::WebTransformationMatrix& deviceTransform);
+ void drawRenderPassQuad(DrawingFrame&, const RenderPassDrawQuad*);
+ void drawSolidColorQuad(const DrawingFrame&, const SolidColorDrawQuad*);
+ void drawStreamVideoQuad(const DrawingFrame&, const StreamVideoDrawQuad*);
+ void drawTextureQuad(const DrawingFrame&, const TextureDrawQuad*);
+ void drawIOSurfaceQuad(const DrawingFrame&, const IOSurfaceDrawQuad*);
+ void drawTileQuad(const DrawingFrame&, const TileDrawQuad*);
+ void drawYUVVideoQuad(const DrawingFrame&, const YUVVideoDrawQuad*);
void setShaderOpacity(float opacity, int alphaLocation);
void setShaderFloatQuad(const FloatQuad&, int quadLocation);
@@ -102,7 +102,7 @@ private:
void copyTextureToFramebuffer(const DrawingFrame&, int textureId, const IntRect&, const WebKit::WebTransformationMatrix& drawMatrix);
- bool useScopedTexture(DrawingFrame&, const CCScopedTexture*, const IntRect& viewportRect);
+ bool useScopedTexture(DrawingFrame&, const ScopedTexture*, const IntRect& viewportRect);
bool makeContextCurrent();
@@ -211,9 +211,9 @@ private:
bool m_isUsingBindUniform;
bool m_visible;
- scoped_ptr<CCResourceProvider::ScopedWriteLockGL> m_currentFramebufferLock;
+ scoped_ptr<ResourceProvider::ScopedWriteLockGL> m_currentFramebufferLock;
- DISALLOW_COPY_AND_ASSIGN(CCRendererGL);
+ DISALLOW_COPY_AND_ASSIGN(GLRenderer);
};
@@ -223,7 +223,7 @@ private:
#define DEBUG_GL_CALLS 0
#if DEBUG_GL_CALLS && !defined(NDEBUG)
-#define GLC(context, x) (x, CCRendererGL::debugGLCall(&*context, #x, __FILE__, __LINE__))
+#define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __LINE__))
#else
#define GLC(context, x) (x)
#endif