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

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

Issue 2076293002: Revert of Enable zero-copy DXGI video by default. (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 unified diff | Download patch
« no previous file with comments | « no previous file | 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 command_line->HasSwitch(switches::kDisableVaapiAcceleratedVideoEncode); 44 command_line->HasSwitch(switches::kDisableVaapiAcceleratedVideoEncode);
45 #endif 45 #endif
46 #if defined(ENABLE_WEBRTC) 46 #if defined(ENABLE_WEBRTC)
47 gpu_preferences.disable_web_rtc_hw_encoding = 47 gpu_preferences.disable_web_rtc_hw_encoding =
48 command_line->HasSwitch(switches::kDisableWebRtcHWEncoding); 48 command_line->HasSwitch(switches::kDisableWebRtcHWEncoding);
49 #endif 49 #endif
50 #if defined(OS_WIN) 50 #if defined(OS_WIN)
51 gpu_preferences.enable_accelerated_vpx_decode = 51 gpu_preferences.enable_accelerated_vpx_decode =
52 command_line->HasSwitch(switches::kEnableAcceleratedVpxDecode); 52 command_line->HasSwitch(switches::kEnableAcceleratedVpxDecode);
53 gpu_preferences.enable_zero_copy_dxgi_video = 53 gpu_preferences.enable_zero_copy_dxgi_video =
54 !command_line->HasSwitch(switches::kDisableZeroCopyDxgiVideo); 54 command_line->HasSwitch(switches::kEnableZeroCopyDxgiVideo);
55 #endif 55 #endif
56 gpu_preferences.compile_shader_always_succeeds = 56 gpu_preferences.compile_shader_always_succeeds =
57 command_line->HasSwitch(switches::kCompileShaderAlwaysSucceeds); 57 command_line->HasSwitch(switches::kCompileShaderAlwaysSucceeds);
58 gpu_preferences.disable_gl_error_limit = 58 gpu_preferences.disable_gl_error_limit =
59 command_line->HasSwitch(switches::kDisableGLErrorLimit); 59 command_line->HasSwitch(switches::kDisableGLErrorLimit);
60 gpu_preferences.disable_glsl_translator = 60 gpu_preferences.disable_glsl_translator =
61 command_line->HasSwitch(switches::kDisableGLSLTranslator); 61 command_line->HasSwitch(switches::kDisableGLSLTranslator);
62 gpu_preferences.disable_gpu_driver_bug_workarounds = 62 gpu_preferences.disable_gpu_driver_bug_workarounds =
63 command_line->HasSwitch(switches::kDisableGpuDriverBugWorkarounds); 63 command_line->HasSwitch(switches::kDisableGpuDriverBugWorkarounds);
64 gpu_preferences.disable_shader_name_hashing = 64 gpu_preferences.disable_shader_name_hashing =
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 gpu_preferences.enable_gpu_service_tracing = 96 gpu_preferences.enable_gpu_service_tracing =
97 command_line->HasSwitch(switches::kEnableGPUServiceTracing); 97 command_line->HasSwitch(switches::kEnableGPUServiceTracing);
98 gpu_preferences.enable_unsafe_es3_apis = 98 gpu_preferences.enable_unsafe_es3_apis =
99 command_line->HasSwitch(switches::kEnableUnsafeES3APIs); 99 command_line->HasSwitch(switches::kEnableUnsafeES3APIs);
100 gpu_preferences.use_passthrough_cmd_decoder = 100 gpu_preferences.use_passthrough_cmd_decoder =
101 command_line->HasSwitch(switches::kUsePassthroughCmdDecoder); 101 command_line->HasSwitch(switches::kUsePassthroughCmdDecoder);
102 return gpu_preferences; 102 return gpu_preferences;
103 } 103 }
104 104
105 } // namespace content 105 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698