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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 23130004: Enforce a memory limit on MappedMemoryManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set chunk size Created 7 years, 4 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
Index: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index a3bcf1758bfb45d1f910f8e2f08425236345d2cc..97a8373f81cc7900bdfdba10dbbea16dd0a9cb19 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -390,7 +390,9 @@ CreateGpuProcessViewContext(
64 * 1024, // start transfer buffer size
64 * 1024, // min transfer buffer size
std::min(3 * full_screen_texture_size_in_bytes,
- kDefaultMaxTransferBufferSize))) {
+ kDefaultMaxTransferBufferSize),
+ 64 * 1024 // mapped memory limit
no sievers 2013/08/20 02:46:54 Can you put this in a separate change? We have to
kaanb 2013/08/20 22:15:46 Done.
+ )) {
LOG(ERROR) << "Failed to create 3D context for compositor.";
return scoped_ptr<WebGraphicsContext3DCommandBufferImpl>();
}

Powered by Google App Engine
This is Rietveld 408576698