diff options
author | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-01 09:53:35 +0000 |
---|---|---|
committer | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-01 09:53:35 +0000 |
commit | 0b8ef28478075b6b47bddc7d5e75513ca713e0d1 (patch) | |
tree | 11a8eb6b32e89d07e69221270be05ca3b2d78151 /cc/test/test_context_provider.h | |
parent | 7c310d3e5f9f0dcc96cf87c92f7c80dcb3b48179 (diff) | |
download | chromium_src-0b8ef28478075b6b47bddc7d5e75513ca713e0d1.zip chromium_src-0b8ef28478075b6b47bddc7d5e75513ca713e0d1.tar.gz chromium_src-0b8ef28478075b6b47bddc7d5e75513ca713e0d1.tar.bz2 |
Do not give GPU memory to backgrounded compositors.
This has already been disabled on all platforms except Windows and
Chrome OS to be more conservative about GPU memory.
All platforms are moving to a delegated renderer where, if keeping
around resources for a fast tab-switch is desired, it can be
accomplished by not releasing those resources in the browser process.
This feature was originally requested in crbug.com/134750.
Also remove the infrastructure for preserving backbuffers of
backgrounded renderers. This feature was never enabled.
BUG=276559
Review URL: https://codereview.chromium.org/53633003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232324 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_context_provider.h')
-rw-r--r-- | cc/test/test_context_provider.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cc/test/test_context_provider.h b/cc/test/test_context_provider.h index 2c64fe5..749cade 100644 --- a/cc/test/test_context_provider.h +++ b/cc/test/test_context_provider.h @@ -47,8 +47,7 @@ class TestContextProvider : public cc::ContextProvider { // makeContextCurrent on the context returned from this method. TestWebGraphicsContext3D* UnboundTestContext3d(); - void SetMemoryAllocation(const ManagedMemoryPolicy& policy, - bool discard_backbuffer_when_not_visible); + void SetMemoryAllocation(const ManagedMemoryPolicy& policy); void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes); |