| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Enable GPU service logging. | 59 // Enable GPU service logging. |
| 60 bool enable_gpu_service_logging_gpu = false; | 60 bool enable_gpu_service_logging_gpu = false; |
| 61 | 61 |
| 62 // Turn off gpu program caching | 62 // Turn off gpu program caching |
| 63 bool disable_gpu_program_cache = false; | 63 bool disable_gpu_program_cache = false; |
| 64 | 64 |
| 65 // Enforce GL minimums. | 65 // Enforce GL minimums. |
| 66 bool enforce_gl_minimums = false; | 66 bool enforce_gl_minimums = false; |
| 67 | 67 |
| 68 // Sets the total amount of memory that may be allocated for GPU resources | 68 // Sets the total amount of memory that may be allocated for GPU resources |
| 69 size_t force_gpu_mem_available = 0; | 69 unsigned int force_gpu_mem_available = 0; |
| 70 | 70 |
| 71 // Sets the maximum size of the in-memory gpu program cache, in kb | 71 // Sets the maximum size of the in-memory gpu program cache, in kb |
| 72 size_t gpu_program_cache_size = kDefaultMaxProgramCacheMemoryBytes; | 72 unsigned int gpu_program_cache_size = kDefaultMaxProgramCacheMemoryBytes; |
| 73 | 73 |
| 74 // Disables the GPU shader on disk cache. | 74 // Disables the GPU shader on disk cache. |
| 75 bool disable_gpu_shader_disk_cache = false; | 75 bool disable_gpu_shader_disk_cache = false; |
| 76 | 76 |
| 77 // Allows async texture uploads (off main thread) via GL context sharing. | 77 // Allows async texture uploads (off main thread) via GL context sharing. |
| 78 bool enable_share_group_async_texture_upload = false; | 78 bool enable_share_group_async_texture_upload = false; |
| 79 | 79 |
| 80 // Enable WebGL subscribe uniform extension. | 80 // Enable WebGL subscribe uniform extension. |
| 81 bool enable_subscribe_uniform_extension = false; | 81 bool enable_subscribe_uniform_extension = false; |
| 82 | 82 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 101 // Turns on calling TRACE for every GL call. | 101 // Turns on calling TRACE for every GL call. |
| 102 bool enable_gpu_service_tracing = false; | 102 bool enable_gpu_service_tracing = false; |
| 103 | 103 |
| 104 // Enable OpenGL ES 3 APIs without proper service side validation. | 104 // Enable OpenGL ES 3 APIs without proper service side validation. |
| 105 bool enable_unsafe_es3_apis = false; | 105 bool enable_unsafe_es3_apis = false; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // namespace gpu | 108 } // namespace gpu |
| 109 | 109 |
| 110 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ | 110 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ |
| OLD | NEW |