| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #if defined(ENABLE_WEBRTC) | 54 #if defined(ENABLE_WEBRTC) |
| 55 // Disables HW encode acceleration for WebRTC. | 55 // Disables HW encode acceleration for WebRTC. |
| 56 bool disable_web_rtc_hw_encoding = false; | 56 bool disable_web_rtc_hw_encoding = false; |
| 57 #endif | 57 #endif |
| 58 | 58 |
| 59 #if defined(OS_WIN) | 59 #if defined(OS_WIN) |
| 60 // Enables experimental hardware acceleration for VP8/VP9 video decoding. | 60 // Enables experimental hardware acceleration for VP8/VP9 video decoding. |
| 61 // Bitmask - 0x1=Microsoft, 0x2=AMD, 0x03=Try all. | 61 // Bitmask - 0x1=Microsoft, 0x2=AMD, 0x03=Try all. |
| 62 VpxDecodeVendors enable_accelerated_vpx_decode = VPX_VENDOR_MICROSOFT; | 62 VpxDecodeVendors enable_accelerated_vpx_decode = VPX_VENDOR_MICROSOFT; |
| 63 | 63 |
| 64 // Enables using CODECAPI_AVLowLatencyMode. |
| 65 bool enable_low_latency_dxva = true; |
| 66 |
| 64 // Enables support for avoiding copying DXGI NV12 textures. | 67 // Enables support for avoiding copying DXGI NV12 textures. |
| 65 bool enable_zero_copy_dxgi_video = false; | 68 bool enable_zero_copy_dxgi_video = false; |
| 66 | 69 |
| 67 // Enables support for outputting NV12 video frames. | 70 // Enables support for outputting NV12 video frames. |
| 68 bool enable_nv12_dxgi_video = false; | 71 bool enable_nv12_dxgi_video = false; |
| 69 #endif | 72 #endif |
| 70 | 73 |
| 71 // =================================== | 74 // =================================== |
| 72 // Settings from //gpu/command_buffer/service/gpu_switches.cc | 75 // Settings from //gpu/command_buffer/service/gpu_switches.cc |
| 73 | 76 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool enable_unsafe_es3_apis = false; | 138 bool enable_unsafe_es3_apis = false; |
| 136 | 139 |
| 137 // Use the Pass-through command decoder, skipping all validation and state | 140 // Use the Pass-through command decoder, skipping all validation and state |
| 138 // tracking. | 141 // tracking. |
| 139 bool use_passthrough_cmd_decoder = false; | 142 bool use_passthrough_cmd_decoder = false; |
| 140 }; | 143 }; |
| 141 | 144 |
| 142 } // namespace gpu | 145 } // namespace gpu |
| 143 | 146 |
| 144 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ | 147 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_PREFERENCES_H_ |
| OLD | NEW |