Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: content/renderer/render_widget.cc

Issue 1969163002: Give the media context small memory limits (same as compositor). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: limitsmedia: . Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | gpu/command_buffer/client/shared_memory_limits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 276ebd0e8e978b44066ff9684ddadc71d5404c2c..30bd0de9a33ad1e8e89a59e279b01e9f1052bb0c 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -761,13 +761,10 @@ std::unique_ptr<cc::OutputSurface> RenderWidget::CreateOutputSurface(
return nullptr;
}
- gpu::SharedMemoryLimits limits;
// The renderer compositor context doesn't do a lot of stuff, so we don't
// expect it to need a lot of space for commands or transfer. Raster and
// uploads happen on the worker context instead.
- limits.command_buffer_size = 64 * 1024;
- limits.start_transfer_buffer_size = 64 * 1024;
- limits.min_transfer_buffer_size = 64 * 1024;
+ gpu::SharedMemoryLimits limits = gpu::SharedMemoryLimits::ForMailboxContext();
// This is for an offscreen context for the compositor. So the default
// framebuffer doesn't need alpha, depth, stencil, antialiasing.
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | gpu/command_buffer/client/shared_memory_limits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698