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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 8340003: Make GLES2Implementation use a larger chunk size for mapping functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typos and formatting Created 9 years, 2 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 | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/mapped_memory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 9a9cd85b411fd3ae1b41df80ee972cdf50e2223d..12238dad5fd0825eed281e4adc58a48509cf3c14 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -562,6 +562,7 @@ GLES2Implementation::GLES2Implementation(
memset(&reserved_ids_, 0, sizeof(reserved_ids_));
mapped_memory_.reset(new MappedMemoryManager(helper_));
+ SetSharedMemoryChunkSizeMultiple(1024 * 1024 * 2);
if (share_resources) {
if (!bind_generates_resource) {
@@ -641,6 +642,11 @@ GLES2Implementation::~GLES2Implementation() {
#endif
}
+void GLES2Implementation::SetSharedMemoryChunkSizeMultiple(
+ unsigned int multiple) {
+ mapped_memory_->set_chunk_size_multiple(multiple);
+}
+
void GLES2Implementation::FreeUnusedSharedMemory() {
mapped_memory_->FreeUnused();
}
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/mapped_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698