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

Unified Diff: content/public/browser/gpu_utils.cc

Issue 2105693003: Vp9 decoder mft support for AMD apu/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change enum to follow chromium style enum naming, remove unecessary media:: scope 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
Index: content/public/browser/gpu_utils.cc
diff --git a/content/public/browser/gpu_utils.cc b/content/public/browser/gpu_utils.cc
index 7c264710c9c070651eae3161b854687c511b5f89..73e9639ab3e7dacf773ccbd53997ad8fedf0652d 100644
--- a/content/public/browser/gpu_utils.cc
+++ b/content/public/browser/gpu_utils.cc
@@ -48,8 +48,13 @@ const gpu::GpuPreferences GetGpuPreferencesFromCommandLine() {
command_line->HasSwitch(switches::kDisableWebRtcHWEncoding);
#endif
#if defined(OS_WIN)
+ uint32_t enable_accelerated_vpx_decode_val =
+ gpu::GpuPreferences::VPX_VENDOR_NONE;
+ GetUintFromSwitch(command_line, switches::kEnableAcceleratedVpxDecode,
DaleCurtis 2016/07/07 20:30:16 This returns a boolean value that should be checke
+ &enable_accelerated_vpx_decode_val);
gpu_preferences.enable_accelerated_vpx_decode =
- command_line->HasSwitch(switches::kEnableAcceleratedVpxDecode);
+ static_cast<gpu::GpuPreferences::VpxDecodeVendors>
+ (enable_accelerated_vpx_decode_val);
gpu_preferences.enable_zero_copy_dxgi_video =
command_line->HasSwitch(switches::kEnableZeroCopyDxgiVideo);
#endif

Powered by Google App Engine
This is Rietveld 408576698