summaryrefslogtreecommitdiffstats
path: root/cc/renderer.h
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-22 23:09:55 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-22 23:09:55 +0000
commit96baf3e81b1df4b0836d70c3cded9795e63fa789 (patch)
tree4332d128a05777ae34641ca2f185b7b548330b8d /cc/renderer.h
parent1597399122fa6d8343dc6d5cdb771f95908c09b1 (diff)
downloadchromium_src-96baf3e81b1df4b0836d70c3cded9795e63fa789.zip
chromium_src-96baf3e81b1df4b0836d70c3cded9795e63fa789.tar.gz
chromium_src-96baf3e81b1df4b0836d70c3cded9795e63fa789.tar.bz2
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
Diffstat (limited to 'cc/renderer.h')
-rw-r--r--cc/renderer.h28
1 files changed, 14 insertions, 14 deletions
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);
};
}