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

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: Change hardcoded values to an enum Created 4 years, 5 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
« no previous file with comments | « content/public/common/content_switches.cc ('k') | media/gpu/dxva_video_decode_accelerator_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c32b6d928ed4cf629e28855cc0437584028e8e9e 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
+ {
+ kVpxVendorNone = 0x00,
jbauman 2016/07/06 21:06:49 Switch these to "VPX_VENDOR_NONE" style - see http
+ kVpxVendorIntel = 0x01,
+ kVpxVendorAmd = 0x02,
+ kVpxVendorAll = 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 = kVpxVendorNone;
// Enables support for avoiding copying DXGI NV12 textures.
bool enable_zero_copy_dxgi_video = false;
« no previous file with comments | « content/public/common/content_switches.cc ('k') | media/gpu/dxva_video_decode_accelerator_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698