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

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: Resolve merge conflict with AUTHORS 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
« no previous file with comments | « content/common/gpu_host_messages.h ('k') | content/public/common/content_switches.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/gpu_utils.cc
diff --git a/content/public/browser/gpu_utils.cc b/content/public/browser/gpu_utils.cc
index 859be2ef08ec11dd03d1ddca25561f7e7ff0387a..af52366b68bdf8e226b7cdd970ec9f9d1b342f8b 100644
--- a/content/public/browser/gpu_utils.cc
+++ b/content/public/browser/gpu_utils.cc
@@ -48,11 +48,13 @@ const gpu::GpuPreferences GetGpuPreferencesFromCommandLine() {
command_line->HasSwitch(switches::kDisableWebRtcHWEncoding);
#endif
#if defined(OS_WIN)
- gpu_preferences.enable_accelerated_vpx_decode = true;
- uint32_t enable_vpx_decode;
+ uint32_t enable_accelerated_vpx_decode_val =
+ gpu::GpuPreferences::VPX_VENDOR_MICROSOFT;
if (GetUintFromSwitch(command_line, switches::kEnableAcceleratedVpxDecode,
- &enable_vpx_decode)) {
- gpu_preferences.enable_accelerated_vpx_decode = !!enable_vpx_decode;
+ &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::kDisableZeroCopyDxgiVideo);
« no previous file with comments | « content/common/gpu_host_messages.h ('k') | content/public/common/content_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698