diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 03:56:07 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 03:56:07 +0000 |
commit | 85167c7673eec9a00a7d4daab61620c802567191 (patch) | |
tree | 7a51e95b0f0a0e9e312608250319d61ca56ed2a2 /cc/gl_renderer_unittest.cc | |
parent | d1e47321daf1b0e929d47dced30cdd267650135b (diff) | |
download | chromium_src-85167c7673eec9a00a7d4daab61620c802567191.zip chromium_src-85167c7673eec9a00a7d4daab61620c802567191.tar.gz chromium_src-85167c7673eec9a00a7d4daab61620c802567191.tar.bz2 |
cc: Give ownership of render passes to the renderer when drawing a frame.
Instead of giving const pointers to the renderer, we should provide it with
non-const pointers, and expect it to consume the render passes that we provide
it.
In ubercomp, the delegating renderer will pass ownership of the passes to the
CompositorFrame.
Covered by existing tests, no change in behaviour.
BUG=152337
R=enne,piman
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/11419269
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170877 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/gl_renderer_unittest.cc')
-rw-r--r-- | cc/gl_renderer_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/gl_renderer_unittest.cc b/cc/gl_renderer_unittest.cc index a8da143..919c4d5 100644 --- a/cc/gl_renderer_unittest.cc +++ b/cc/gl_renderer_unittest.cc @@ -80,8 +80,8 @@ public: void setLastCallWasSetVisibilityPointer(bool* lastCallWasSetVisibility) { m_lastCallWasSetVisibility = lastCallWasSetVisibility; } RenderPass* rootRenderPass() { return m_renderPassesInDrawOrder.back(); } - const RenderPassList& renderPassesInDrawOrder() const { return m_renderPassesInDrawOrder; } - const RenderPassIdHashMap& renderPasses() const { return m_renderPasses; } + RenderPassList& renderPassesInDrawOrder() { return m_renderPassesInDrawOrder; } + RenderPassIdHashMap& renderPasses() { return m_renderPasses; } size_t memoryAllocationLimitBytes() const { return m_memoryAllocationLimitBytes; } |