Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: gpu/command_buffer/service/gpu_preferences.h

Issue 2105693003: Vp9 decoder mft support for AMD apu/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase once more to resolve cq issue Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 bb158f5fd5f2b5cc52b7aaaf22ea218bf54d371e..ceac72d068454cd80174a67dad8e0b3ec51cfcf8 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.
+ // VPX_VENDOR_ALL should be updated whenever a new entry is added.
+ enum VpxDecodeVendors {
+ VPX_VENDOR_NONE = 0x00,
+ VPX_VENDOR_MICROSOFT = 0x01,
+ VPX_VENDOR_AMD = 0x02,
+ VPX_VENDOR_ALL = 0x03,
+ };
// ===================================
// Settings from //content/public/common/content_switches.h
@@ -49,7 +58,8 @@ struct GPU_EXPORT GpuPreferences {
#if defined(OS_WIN)
// Enables experimental hardware acceleration for VP8/VP9 video decoding.
- bool enable_accelerated_vpx_decode = false;
+ // Bitmask - 0x1=Microsoft, 0x2=AMD, 0x03=Try all.
+ VpxDecodeVendors enable_accelerated_vpx_decode = VPX_VENDOR_NONE;
jbauman 2016/08/22 18:20:50 This should be VPX_VENDOR_MICROSOFT.
// Enables support for avoiding copying DXGI NV12 textures.
bool enable_zero_copy_dxgi_video = false;

Powered by Google App Engine
This is Rietveld 408576698