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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc

Issue 22900018: cc: Set the mapped memory reclaim limit for the renderer compositor on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate code reviews 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/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index 80f4ebd043d36b6ccbb2052ebf9b4fa10564dac9..162eb1021867721abfcb6070f65decb7fb1a36ca 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -481,11 +481,16 @@ bool WebGraphicsContext3DCommandBufferImpl::CreateContext(
lock.reset();
}
+ size_t gl_mapped_memory_limit = gpu::gles2::GLES2Implementation::kNoLimit;
+#if defined(OS_ANDROID)
+ gl_mapped_memory_limit = mapped_memory_limit_;
+#endif
piman 2013/08/30 03:31:07 noooo! This is taking the problem upside down. Y
+
if (!real_gl_->Initialize(
start_transfer_buffer_size_,
min_transfer_buffer_size_,
max_transfer_buffer_size_,
- mapped_memory_limit_)) {
+ gl_mapped_memory_limit)) {
return false;
}
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698