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

Unified Diff: cc/output/renderer.h

Issue 404563005: Make RenderPass::Id an isolated class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more case in mojo Created 6 years, 4 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/output/overlay_unittest.cc ('k') | cc/output/renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/renderer.h
diff --git a/cc/output/renderer.h b/cc/output/renderer.h
index b6d0cd43cff7d1bbbca6825d118fb0eb583312e5..9d2b88f5ef920e8e559dfe3e83bbb36336f5d7d8 100644
--- a/cc/output/renderer.h
+++ b/cc/output/renderer.h
@@ -7,16 +7,20 @@
#include "base/basictypes.h"
#include "cc/base/cc_export.h"
-#include "cc/quads/render_pass.h"
+#include "cc/base/scoped_ptr_vector.h"
#include "cc/trees/layer_tree_host.h"
namespace cc {
class CompositorFrameAck;
class CompositorFrameMetadata;
+class RenderPass;
+class RenderPassId;
class ScopedResource;
class Task;
+typedef ScopedPtrVector<RenderPass> RenderPassList;
+
struct RendererCapabilitiesImpl {
RendererCapabilitiesImpl();
~RendererCapabilitiesImpl();
@@ -51,7 +55,7 @@ class CC_EXPORT Renderer {
virtual void DecideRenderPassAllocationsForFrame(
const RenderPassList& render_passes_in_draw_order) {}
- virtual bool HasAllocatedResourcesForTesting(RenderPass::Id id) const;
+ virtual bool HasAllocatedResourcesForTesting(RenderPassId id) const;
// This passes ownership of the render passes to the renderer. It should
// consume them, and empty the list. The parameters here may change from frame
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/output/renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698