summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;