diff options
Diffstat (limited to 'gpu/command_buffer/client/gles2_implementation.cc')
-rw-r--r-- | gpu/command_buffer/client/gles2_implementation.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc index 9a9cd85..12238da 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(); } |