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

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

Issue 2472173002: DXVA: Add --disable-low-latency-dxva to disable low latency decoding (Closed)
Patch Set: Created 4 years, 1 month 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 2ebdc851f53c134234bee26f6d038835116201e1..743d935942c3e001d4f84713514eee5f941ae4a4 100644
--- a/content/public/browser/gpu_utils.cc
+++ b/content/public/browser/gpu_utils.cc
@@ -58,6 +58,8 @@ const gpu::GpuPreferences GetGpuPreferencesFromCommandLine() {
static_cast<gpu::GpuPreferences::VpxDecodeVendors>(
enable_accelerated_vpx_decode_val);
}
+ gpu_preferences.enable_low_latency_dxva =
+ !command_line->HasSwitch(switches::kDisableLowLatencyDxva);
gpu_preferences.enable_zero_copy_dxgi_video =
!command_line->HasSwitch(switches::kDisableZeroCopyDxgiVideo);
gpu_preferences.enable_nv12_dxgi_video =
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | gpu/command_buffer/service/gpu_preferences.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698