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

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: Created 4 years, 6 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..1f6b99e7c212f280797041defe1b66d5189673be 100644
--- a/content/public/browser/gpu_utils.cc
+++ b/content/public/browser/gpu_utils.cc
@@ -48,9 +48,11 @@ 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);
- gpu_preferences.enable_zero_copy_dxgi_video =
+ if (!GetUintFromSwitch(command_line, switches::kEnableAcceleratedVpxDecode,
+ &gpu_preferences.enable_accelerated_vpx_decode)) {
+ gpu_preferences.enable_accelerated_vpx_decode = 2;
jbauman 2016/06/28 20:24:22 = 0;
kplum 2016/06/28 21:35:14 I figured this would be brought up :) What would b
+ }
+ gpu_preferences.enable_zero_copy_dxgi_video =
command_line->HasSwitch(switches::kEnableZeroCopyDxgiVideo);
#endif
gpu_preferences.compile_shader_always_succeeds =
« no previous file with comments | « no previous file | content/public/common/content_switches.cc » ('j') | gpu/command_buffer/service/gpu_preferences.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698