| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Sets the maximum size of the in-memory gpu program cache, in kb | 91 // Sets the maximum size of the in-memory gpu program cache, in kb |
| 92 uint32_t gpu_program_cache_size = kDefaultMaxProgramCacheMemoryBytes; | 92 uint32_t gpu_program_cache_size = kDefaultMaxProgramCacheMemoryBytes; |
| 93 | 93 |
| 94 // Disables the GPU shader on disk cache. | 94 // Disables the GPU shader on disk cache. |
| 95 bool disable_gpu_shader_disk_cache = false; | 95 bool disable_gpu_shader_disk_cache = false; |
| 96 | 96 |
| 97 // Allows async texture uploads (off main thread) via GL context sharing. | 97 // Allows async texture uploads (off main thread) via GL context sharing. |
| 98 bool enable_share_group_async_texture_upload = false; | 98 bool enable_share_group_async_texture_upload = false; |
| 99 | 99 |
| 100 // Enable WebGL subscribe uniform extension. | |
| 101 bool enable_subscribe_uniform_extension = false; | |
| 102 | |
| 103 // Simulates shared textures when share groups are not available. | 100 // Simulates shared textures when share groups are not available. |
| 104 // Not available everywhere. | 101 // Not available everywhere. |
| 105 bool enable_threaded_texture_mailboxes = false; | 102 bool enable_threaded_texture_mailboxes = false; |
| 106 | 103 |
| 107 // Include ANGLE's intermediate representation (AST) output in shader | 104 // Include ANGLE's intermediate representation (AST) output in shader |
| 108 // compilation info logs. | 105 // compilation info logs. |
| 109 bool gl_shader_interm_output = false; | 106 bool gl_shader_interm_output = false; |
| 110 | 107 |
| 111 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to | 108 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to |
| 112 // round intermediate values in ANGLE. | 109 // round intermediate values in ANGLE. |
| 113 bool emulate_shader_precision = false; | 110 bool emulate_shader_precision = false; |
| 114 | 111 |
| 115 // =================================== | 112 // =================================== |
| 116 // Settings from //ui/gl/gl_switches.h | 113 // Settings from //ui/gl/gl_switches.h |
| 117 | 114 |
| 118 // Turns on GPU logging (debug build only). | 115 // Turns on GPU logging (debug build only). |
| 119 bool enable_gpu_service_logging = false; | 116 bool enable_gpu_service_logging = false; |
| 120 | 117 |
| 121 // Turns on calling TRACE for every GL call. | 118 // Turns on calling TRACE for every GL call. |
| 122 bool enable_gpu_service_tracing = false; | 119 bool enable_gpu_service_tracing = false; |
| 123 | 120 |
| 124 // Enable OpenGL ES 3 APIs without proper service side validation. | 121 // Enable OpenGL ES 3 APIs without proper service side validation. |
| 125 bool enable_unsafe_es3_apis = false; | 122 bool enable_unsafe_es3_apis = false; |
| 126 }; | 123 }; |
| 127 | 124 |
| 128 } // namespace gpu | 125 } // namespace gpu |
| 129 | 126 |
| 130 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ | 127 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ |
| OLD | NEW |