From fd32d12c2b5df2ea7391003dca7307094535a297 Mon Sep 17 00:00:00 2001 From: "piman@chromium.org" Date: Sat, 29 Jun 2013 13:11:04 +0000 Subject: cc: Pipe visibility and memory allocation to DelegatingRenderer The GPU process makes memory allocation decisions based on the visibility of surface. In the DelegatingRenderer case we don't use the surface directly, but we still have it - just like composite-to-mailbox. So we can use setVisibilityCHROMIUM to signal the GPU process, and listen to the memory allocation callback. This CL refactors a bunch of the logic that was hardcoded in GLRenderer into OutputSurface which is shared. That also opens the door to implementing a memory manager for the software renderer. BUG=123444 Review URL: https://chromiumcodereview.appspot.com/18121005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209287 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/output/software_renderer.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cc/output/software_renderer.cc') diff --git a/cc/output/software_renderer.cc b/cc/output/software_renderer.cc index 1cf221c..2da959f 100644 --- a/cc/output/software_renderer.cc +++ b/cc/output/software_renderer.cc @@ -490,4 +490,10 @@ void SoftwareRenderer::SetVisible(bool visible) { visible_ = visible; } +void SoftwareRenderer::SetDiscardBackBufferWhenNotVisible(bool discard) { + // TODO(piman, skaslev): Can we release the backbuffer? We don't currently + // receive memory policy yet anyway. + NOTIMPLEMENTED(); +} + } // namespace cc -- cgit v1.1