diff options
author | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 05:57:45 +0000 |
---|---|---|
committer | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 05:57:45 +0000 |
commit | 721532e2b9f182f026ecd31055c133429464adaa (patch) | |
tree | 6e7f5cf1eff01334538bc7c40f7167d63d8c6308 | |
parent | 7b497d034487829e1945907f14c67d07c7ea2c4b (diff) | |
download | chromium_src-721532e2b9f182f026ecd31055c133429464adaa.zip chromium_src-721532e2b9f182f026ecd31055c133429464adaa.tar.gz chromium_src-721532e2b9f182f026ecd31055c133429464adaa.tar.bz2 |
Reduce resource limit with software compositor.
Every resource takes an FD, so we want to limit this to avoid running out.
BUG=384654
Review URL: https://codereview.chromium.org/357423002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283370 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | content/renderer/gpu/compositor_output_surface.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc index 5215a90..218b42f 100644 --- a/content/renderer/gpu/compositor_output_surface.cc +++ b/content/renderer/gpu/compositor_output_surface.cc @@ -107,7 +107,7 @@ bool CompositorOutputSurface::BindToClient( client->SetMemoryPolicy(cc::ManagedMemoryPolicy( 128 * 1024 * 1024, gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE, - cc::ManagedMemoryPolicy::kDefaultNumResourcesLimit)); + base::SharedMemory::GetHandleLimit() / 3)); } return true; |