| Index: gpu/command_buffer/common/constants.h
|
| diff --git a/gpu/command_buffer/common/constants.h b/gpu/command_buffer/common/constants.h
|
| index 7b80a33651160f7f7609b136d40eda7e344069a4..40fe3d579b8e113c90a8fc482e30bf6e17b2c435 100644
|
| --- a/gpu/command_buffer/common/constants.h
|
| +++ b/gpu/command_buffer/common/constants.h
|
| @@ -8,6 +8,8 @@
|
| #include <stddef.h>
|
| #include <stdint.h>
|
|
|
| +#include "build/build_config.h"
|
| +
|
| namespace gpu {
|
|
|
| typedef int32_t CommandBufferOffset;
|
| @@ -68,8 +70,13 @@ const int32_t kInvalidSharedMemoryId = -1;
|
| // Common Command Buffer shared memory transfer buffer ID.
|
| const int32_t kCommandBufferSharedMemoryId = 4;
|
|
|
| -// The size to set for the program cache.
|
| +// The size to set for the program cache for default and low-end device cases.
|
| +#if !defined(OS_ANDROID)
|
| const size_t kDefaultMaxProgramCacheMemoryBytes = 6 * 1024 * 1024;
|
| +#else
|
| +const size_t kDefaultMaxProgramCacheMemoryBytes = 2 * 1024 * 1024;
|
| +const size_t kLowEndMaxProgramCacheMemoryBytes = 512 * 1024;
|
| +#endif
|
|
|
| // Namespace used to separate various command buffer types.
|
| enum CommandBufferNamespace : int8_t {
|
|
|