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

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: Comment update to reflect addition to the vpx vendor 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
Index: content/public/browser/gpu_utils.cc
diff --git a/content/public/browser/gpu_utils.cc b/content/public/browser/gpu_utils.cc
index 69acbbff2bc239b929a519e7d338541de25a6cf8..28d8c412e814fd9ffffd8a2c744a5651ce9ba54b 100644
--- a/content/public/browser/gpu_utils.cc
+++ b/content/public/browser/gpu_utils.cc
@@ -48,8 +48,14 @@ const gpu::GpuPreferences GetGpuPreferencesFromCommandLine() {
command_line->HasSwitch(switches::kDisableWebRtcHWEncoding);
#endif
#if defined(OS_WIN)
- gpu_preferences.enable_accelerated_vpx_decode =
- command_line->HasSwitch(switches::kEnableAcceleratedVpxDecode);
+ uint32_t enable_accelerated_vpx_decode_val =
+ gpu::GpuPreferences::VPX_VENDOR_NONE;
+ if (GetUintFromSwitch(command_line, switches::kEnableAcceleratedVpxDecode,
+ &enable_accelerated_vpx_decode_val)) {
+ gpu_preferences.enable_accelerated_vpx_decode =
+ static_cast<gpu::GpuPreferences::VpxDecodeVendors>(
+ enable_accelerated_vpx_decode_val);
+ }
gpu_preferences.enable_zero_copy_dxgi_video =
command_line->HasSwitch(switches::kEnableZeroCopyDxgiVideo);
gpu_preferences.enable_nv12_dxgi_video =

Powered by Google App Engine
This is Rietveld 408576698