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

Unified Diff: cc/CCRenderer.h

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/CCRenderSurfaceFilters.cpp ('k') | cc/CCRenderer.cpp » ('j') | no next file with comments »
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 740ba0b293e7588b133829a21fd2f7feef445a2f..3e37b7f8ac36b73b7c9e4fbb6524aaf452a67cc9 100644
--- a/cc/CCRenderer.h
+++ b/cc/CCRenderer.h
@@ -2,83 +2,5 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CCRenderer_h
-#define CCRenderer_h
-
-#include "base/basictypes.h"
-#include "CCLayerTreeHost.h"
-#include "CCRenderPass.h"
-#include "FloatQuad.h"
-#include "IntRect.h"
-#include <wtf/PassRefPtr.h>
-
-namespace cc {
-
-class CCScopedTexture;
-
-class CCRendererClient {
-public:
- virtual const IntSize& deviceViewportSize() const = 0;
- virtual const CCLayerTreeSettings& settings() const = 0;
- virtual void didLoseContext() = 0;
- virtual void onSwapBuffersComplete() = 0;
- virtual void releaseContentsTextures() = 0;
- virtual void setFullRootLayerDamage() = 0;
- virtual void setMemoryAllocationLimitBytes(size_t) = 0;
-protected:
- virtual ~CCRendererClient() { }
-};
-
-class CCRenderer {
-public:
- // This enum defines the various resource pools for the CCResourceProvider
- // 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 const RendererCapabilities& capabilities() const = 0;
-
- const CCLayerTreeSettings& settings() const { return m_client->settings(); }
-
- const IntSize& viewportSize() { return m_client->deviceViewportSize(); }
- int viewportWidth() { return viewportSize().width(); }
- int viewportHeight() { return viewportSize().height(); }
-
- virtual void viewportChanged() { }
-
- virtual void decideRenderPassAllocationsForFrame(const CCRenderPassList&) { }
- virtual bool haveCachedResourcesForRenderPassId(CCRenderPass::Id) const;
-
- virtual void drawFrame(const CCRenderPassList&, const CCRenderPassIdHashMap&) = 0;
-
- // waits for rendering to finish
- virtual void finish() = 0;
-
- virtual void doNoOp() { }
- // puts backbuffer onscreen
- virtual bool swapBuffers() = 0;
-
- virtual void getFramebufferPixels(void *pixels, const IntRect&) = 0;
-
- virtual bool isContextLost();
-
- virtual void setVisible(bool) = 0;
-
-protected:
- explicit CCRenderer(CCRendererClient* client)
- : m_client(client)
- {
- }
-
- CCRendererClient* m_client;
-
- DISALLOW_COPY_AND_ASSIGN(CCRenderer);
-};
-
-}
-
-#endif // CCRenderer_h
+// Temporary forwarding header
+#include "cc/renderer.h"
« no previous file with comments | « cc/CCRenderSurfaceFilters.cpp ('k') | cc/CCRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698