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

Side by Side Diff: content/public/browser/gpu_utils.cc

Issue 2472173002: DXVA: Add --disable-low-latency-dxva to disable low latency decoding (Closed)
Patch Set: IPC 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 unified diff | Download patch
« no previous file with comments | « content/common/gpu_host_messages.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/browser/gpu_utils.h" 5 #include "content/public/browser/gpu_utils.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "content/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 #include "gpu/command_buffer/service/gpu_switches.h" 10 #include "gpu/command_buffer/service/gpu_switches.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #endif 51 #endif
52 #if defined(OS_WIN) 52 #if defined(OS_WIN)
53 uint32_t enable_accelerated_vpx_decode_val = 53 uint32_t enable_accelerated_vpx_decode_val =
54 gpu::GpuPreferences::VPX_VENDOR_MICROSOFT; 54 gpu::GpuPreferences::VPX_VENDOR_MICROSOFT;
55 if (GetUintFromSwitch(command_line, switches::kEnableAcceleratedVpxDecode, 55 if (GetUintFromSwitch(command_line, switches::kEnableAcceleratedVpxDecode,
56 &enable_accelerated_vpx_decode_val)) { 56 &enable_accelerated_vpx_decode_val)) {
57 gpu_preferences.enable_accelerated_vpx_decode = 57 gpu_preferences.enable_accelerated_vpx_decode =
58 static_cast<gpu::GpuPreferences::VpxDecodeVendors>( 58 static_cast<gpu::GpuPreferences::VpxDecodeVendors>(
59 enable_accelerated_vpx_decode_val); 59 enable_accelerated_vpx_decode_val);
60 } 60 }
61 gpu_preferences.enable_low_latency_dxva =
62 !command_line->HasSwitch(switches::kDisableLowLatencyDxva);
61 gpu_preferences.enable_zero_copy_dxgi_video = 63 gpu_preferences.enable_zero_copy_dxgi_video =
62 !command_line->HasSwitch(switches::kDisableZeroCopyDxgiVideo); 64 !command_line->HasSwitch(switches::kDisableZeroCopyDxgiVideo);
63 gpu_preferences.enable_nv12_dxgi_video = 65 gpu_preferences.enable_nv12_dxgi_video =
64 !command_line->HasSwitch(switches::kDisableNv12DxgiVideo); 66 !command_line->HasSwitch(switches::kDisableNv12DxgiVideo);
65 #endif 67 #endif
66 gpu_preferences.compile_shader_always_succeeds = 68 gpu_preferences.compile_shader_always_succeeds =
67 command_line->HasSwitch(switches::kCompileShaderAlwaysSucceeds); 69 command_line->HasSwitch(switches::kCompileShaderAlwaysSucceeds);
68 gpu_preferences.disable_gl_error_limit = 70 gpu_preferences.disable_gl_error_limit =
69 command_line->HasSwitch(switches::kDisableGLErrorLimit); 71 command_line->HasSwitch(switches::kDisableGLErrorLimit);
70 gpu_preferences.disable_glsl_translator = 72 gpu_preferences.disable_glsl_translator =
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 command_line->HasSwitch(switches::kEnableGPUServiceTracing); 107 command_line->HasSwitch(switches::kEnableGPUServiceTracing);
106 gpu_preferences.enable_unsafe_es3_apis = 108 gpu_preferences.enable_unsafe_es3_apis =
107 command_line->HasSwitch(switches::kEnableUnsafeES3APIs) && 109 command_line->HasSwitch(switches::kEnableUnsafeES3APIs) &&
108 !command_line->HasSwitch(switches::kDisableES3APIs); 110 !command_line->HasSwitch(switches::kDisableES3APIs);
109 gpu_preferences.use_passthrough_cmd_decoder = 111 gpu_preferences.use_passthrough_cmd_decoder =
110 command_line->HasSwitch(switches::kUsePassthroughCmdDecoder); 112 command_line->HasSwitch(switches::kUsePassthroughCmdDecoder);
111 return gpu_preferences; 113 return gpu_preferences;
112 } 114 }
113 115
114 } // namespace content 116 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu_host_messages.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698