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

Unified Diff: cc/renderer.h

Issue 11419269: cc: Give ownership of render passes to the renderer when drawing a frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/layer_tree_host_impl_unittest.cc ('k') | cc/test/layer_tree_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/renderer.h
diff --git a/cc/renderer.h b/cc/renderer.h
index 9e8e8771c68493cd69386e89d5292d4a68652be8..04949dc800ed11f391c13b9a2092f2039618d76d 100644
--- a/cc/renderer.h
+++ b/cc/renderer.h
@@ -53,7 +53,9 @@ public:
virtual void decideRenderPassAllocationsForFrame(const RenderPassList&) { }
virtual bool haveCachedResourcesForRenderPassId(RenderPass::Id) const;
- virtual void drawFrame(const RenderPassList&, const RenderPassIdHashMap&) = 0;
+ // This passes ownership of the render passes to the renderer. It should
+ // consume them, and empty the list and hash map.
+ virtual void drawFrame(RenderPassList&, RenderPassIdHashMap&) = 0;
// waits for rendering to finish
virtual void finish() = 0;
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/test/layer_tree_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698