| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 // Runs the renderer and plugins in the same process as the browser. | 26 // Runs the renderer and plugins in the same process as the browser. |
| 27 bool single_process = false; | 27 bool single_process = false; |
| 28 | 28 |
| 29 // Run the GPU process as a thread in the browser process. | 29 // Run the GPU process as a thread in the browser process. |
| 30 bool in_process_gpu = false; | 30 bool in_process_gpu = false; |
| 31 | 31 |
| 32 // Prioritizes the UI's command stream in the GPU process. | 32 // Prioritizes the UI's command stream in the GPU process. |
| 33 bool ui_prioritize_in_gpu_process = false; | 33 bool ui_prioritize_in_gpu_process = false; |
| 34 | 34 |
| 35 // Disables hardware acceleration of video decode, where available. | |
| 36 bool disable_accelerated_video_decode = false; | |
| 37 | |
| 38 #if defined(OS_CHROMEOS) | |
| 39 // Disables VA-API accelerated video encode. | |
| 40 bool disable_vaapi_accelerated_video_encode = false; | |
| 41 #endif | |
| 42 | |
| 43 #if defined(ENABLE_WEBRTC) | |
| 44 // Disables HW encode acceleration for WebRTC. | |
| 45 bool disable_web_rtc_hw_encoding = false; | |
| 46 #endif | |
| 47 | |
| 48 #if defined(OS_WIN) | |
| 49 // Enables experimental hardware acceleration for VP8/VP9 video decoding. | |
| 50 bool enable_accelerated_vpx_decode = false; | |
| 51 #endif | |
| 52 | |
| 53 // =================================== | 35 // =================================== |
| 54 // Settings from //gpu/command_buffer/service/gpu_switches.cc | 36 // Settings from //gpu/command_buffer/service/gpu_switches.cc |
| 55 | 37 |
| 56 // Always return success when compiling a shader. Linking will still fail. | 38 // Always return success when compiling a shader. Linking will still fail. |
| 57 bool compile_shader_always_succeeds = false; | 39 bool compile_shader_always_succeeds = false; |
| 58 | 40 |
| 59 // Disable the GL error log limit. | 41 // Disable the GL error log limit. |
| 60 bool disable_gl_error_limit = false; | 42 bool disable_gl_error_limit = false; |
| 61 | 43 |
| 62 // Disable the GLSL translator. | 44 // Disable the GLSL translator. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // Turns on calling TRACE for every GL call. | 101 // Turns on calling TRACE for every GL call. |
| 120 bool enable_gpu_service_tracing = false; | 102 bool enable_gpu_service_tracing = false; |
| 121 | 103 |
| 122 // Enable OpenGL ES 3 APIs without proper service side validation. | 104 // Enable OpenGL ES 3 APIs without proper service side validation. |
| 123 bool enable_unsafe_es3_apis = false; | 105 bool enable_unsafe_es3_apis = false; |
| 124 }; | 106 }; |
| 125 | 107 |
| 126 } // namespace gpu | 108 } // namespace gpu |
| 127 | 109 |
| 128 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ | 110 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ |
| OLD | NEW |