| Index: gpu/command_buffer/client/shared_memory_limits.h
|
| diff --git a/gpu/command_buffer/client/shared_memory_limits.h b/gpu/command_buffer/client/shared_memory_limits.h
|
| index 8066c42348e110a2e440253af29f56da8dc08c17..de821732696f4bc0270c05f961b6e3428f8f6e47 100644
|
| --- a/gpu/command_buffer/client/shared_memory_limits.h
|
| +++ b/gpu/command_buffer/client/shared_memory_limits.h
|
| @@ -17,6 +17,16 @@ struct SharedMemoryLimits {
|
|
|
| static constexpr uint32_t kNoLimit = 0;
|
| uint32_t mapped_memory_reclaim_limit = kNoLimit;
|
| +
|
| + // These are limits for contexts only used for creating textures, mailboxing
|
| + // them and dealing with synchronization.
|
| + static SharedMemoryLimits ForMailboxContext() {
|
| + SharedMemoryLimits limits;
|
| + limits.command_buffer_size = 64 * 1024;
|
| + limits.start_transfer_buffer_size = 64 * 1024;
|
| + limits.min_transfer_buffer_size = 64 * 1024;
|
| + return limits;
|
| + }
|
| };
|
|
|
| } // namespace gpu
|
|
|