summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 05:57:45 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 05:57:45 +0000
commit721532e2b9f182f026ecd31055c133429464adaa (patch)
tree6e7f5cf1eff01334538bc7c40f7167d63d8c6308
parent7b497d034487829e1945907f14c67d07c7ea2c4b (diff)
downloadchromium_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.cc2
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;