| Index: gpu/command_buffer/service/gpu_preferences.h
|
| diff --git a/gpu/command_buffer/service/gpu_preferences.h b/gpu/command_buffer/service/gpu_preferences.h
|
| index 67f5b92999e5d213d92e33ed38f795984e3f6249..d906cca05be9f89a716fca2a24744d7c9a07bda0 100644
|
| --- a/gpu/command_buffer/service/gpu_preferences.h
|
| +++ b/gpu/command_buffer/service/gpu_preferences.h
|
| @@ -22,6 +22,15 @@ struct GPU_EXPORT GpuPreferences {
|
|
|
| ~GpuPreferences();
|
|
|
| + // support for accelerated Vpx decoding for various vendors
|
| + // intended to be used as a bitfield
|
| + enum VpxDecodeVendors
|
| + {
|
| + VPX_VENDOR_NONE = 0x00,
|
| + VPX_VENDOR_INTEL = 0x01,
|
| + VPX_VENDOR_AMD = 0x02,
|
| + VPX_VENDOR_ALL = 0xff,
|
| + };
|
| // ===================================
|
| // Settings from //content/public/common/content_switches.h
|
|
|
| @@ -48,8 +57,10 @@ struct GPU_EXPORT GpuPreferences {
|
| #endif
|
|
|
| #if defined(OS_WIN)
|
| - // Enables experimental hardware acceleration for VP8/VP9 video decoding.
|
| - bool enable_accelerated_vpx_decode = false;
|
| + // Enables experimental hardware acceleration for VP8/VP9 video decoding
|
| + // bitmask - 0x1=Intel; 0x2=AMD; 0xff=all
|
| +
|
| + VpxDecodeVendors enable_accelerated_vpx_decode = VPX_VENDOR_NONE;
|
|
|
| // Enables support for avoiding copying DXGI NV12 textures.
|
| bool enable_zero_copy_dxgi_video = false;
|
|
|