From 96baf3e81b1df4b0836d70c3cded9795e63fa789 Mon Sep 17 00:00:00 2001 From: "enne@chromium.org" Date: Mon, 22 Oct 2012 23:09:55 +0000 Subject: cc: Rename cc classes and members to match filenames Fixed reland of https://chromiumcodereview.appspot.com/11189043/ TBR=jam@chromium.org,jamesr@chromium.org BUG=155413 Review URL: https://codereview.chromium.org/11231054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163429 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/renderer.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'cc/renderer.h') diff --git a/cc/renderer.h b/cc/renderer.h index a1cb51d..661bc8e 100644 --- a/cc/renderer.h +++ b/cc/renderer.h @@ -13,35 +13,35 @@ 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 setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) = 0; virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) = 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(); } gfx::Size viewportSize() { return m_client->deviceViewportSize(); } int viewportWidth() { return viewportSize().width(); } @@ -49,10 +49,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; @@ -68,14 +68,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); }; } -- cgit v1.1