diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 20:58:10 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 20:58:10 +0000 |
commit | 184fac5add06d5f4670fa6be4a4d3b39232d51bb (patch) | |
tree | 7efc1d20146fcafdbe408fa67292117c41e9393f /cc/renderer.h | |
parent | fb7ffba75e81a79436434bab0715be0d6e67bc07 (diff) | |
download | chromium_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/renderer.h')
-rw-r--r-- | cc/renderer.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/cc/renderer.h b/cc/renderer.h index 1b32436..9c5336e 100644 --- a/cc/renderer.h +++ b/cc/renderer.h @@ -13,34 +13,34 @@ namespace cc { -class CCScopedTexture; +class ScopedTexture; -class CCRendererClient { +class RendererClient { public: virtual const IntSize& deviceViewportSize() const = 0; - virtual const CCLayerTreeSettings& settings() const = 0; + virtual const LayerTreeSettings& settings() const = 0; virtual void didLoseContext() = 0; virtual void onSwapBuffersComplete() = 0; virtual void setFullRootLayerDamage() = 0; virtual void setMemoryAllocationLimitBytes(size_t) = 0; protected: - virtual ~CCRendererClient() { } + virtual ~RendererClient() { } }; -class CCRenderer { +class Renderer { public: - // This enum defines the various resource pools for the CCResourceProvider + // This enum defines the various resource pools for the ResourceProvider // where textures get allocated. enum ResourcePool { ImplPool = 1, // This pool is for textures that get allocated on the impl thread (e.g. RenderSurfaces). ContentPool // This pool is for textures that get allocated on the main thread (e.g. tiles). }; - virtual ~CCRenderer() { } + virtual ~Renderer() { } virtual const RendererCapabilities& capabilities() const = 0; - const CCLayerTreeSettings& settings() const { return m_client->settings(); } + const LayerTreeSettings& settings() const { return m_client->settings(); } const IntSize& viewportSize() { return m_client->deviceViewportSize(); } int viewportWidth() { return viewportSize().width(); } @@ -48,10 +48,10 @@ public: virtual void viewportChanged() { } - virtual void decideRenderPassAllocationsForFrame(const CCRenderPassList&) { } - virtual bool haveCachedResourcesForRenderPassId(CCRenderPass::Id) const; + virtual void decideRenderPassAllocationsForFrame(const RenderPassList&) { } + virtual bool haveCachedResourcesForRenderPassId(RenderPass::Id) const; - virtual void drawFrame(const CCRenderPassList&, const CCRenderPassIdHashMap&) = 0; + virtual void drawFrame(const RenderPassList&, const RenderPassIdHashMap&) = 0; // waits for rendering to finish virtual void finish() = 0; @@ -67,14 +67,14 @@ public: virtual void setVisible(bool) = 0; protected: - explicit CCRenderer(CCRendererClient* client) + explicit Renderer(RendererClient* client) : m_client(client) { } - CCRendererClient* m_client; + RendererClient* m_client; - DISALLOW_COPY_AND_ASSIGN(CCRenderer); + DISALLOW_COPY_AND_ASSIGN(Renderer); }; } |