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

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

Issue 2473933002: Enable WebGL 2 by default! (on desktop) (Closed)
Patch Set: undo rename of GpuPreferences::enable_unsafe_es3_apis 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
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 gpu_preferences.enable_threaded_texture_mailboxes = 98 gpu_preferences.enable_threaded_texture_mailboxes =
99 command_line->HasSwitch(switches::kEnableThreadedTextureMailboxes); 99 command_line->HasSwitch(switches::kEnableThreadedTextureMailboxes);
100 gpu_preferences.gl_shader_interm_output = 100 gpu_preferences.gl_shader_interm_output =
101 command_line->HasSwitch(switches::kGLShaderIntermOutput); 101 command_line->HasSwitch(switches::kGLShaderIntermOutput);
102 gpu_preferences.emulate_shader_precision = 102 gpu_preferences.emulate_shader_precision =
103 command_line->HasSwitch(switches::kEmulateShaderPrecision); 103 command_line->HasSwitch(switches::kEmulateShaderPrecision);
104 gpu_preferences.enable_gpu_service_logging = 104 gpu_preferences.enable_gpu_service_logging =
105 command_line->HasSwitch(switches::kEnableGPUServiceLogging); 105 command_line->HasSwitch(switches::kEnableGPUServiceLogging);
106 gpu_preferences.enable_gpu_service_tracing = 106 gpu_preferences.enable_gpu_service_tracing =
107 command_line->HasSwitch(switches::kEnableGPUServiceTracing); 107 command_line->HasSwitch(switches::kEnableGPUServiceTracing);
108 gpu_preferences.enable_unsafe_es3_apis =
109 command_line->HasSwitch(switches::kEnableUnsafeES3APIs) &&
110 !command_line->HasSwitch(switches::kDisableES3APIs);
111 gpu_preferences.use_passthrough_cmd_decoder = 108 gpu_preferences.use_passthrough_cmd_decoder =
112 command_line->HasSwitch(switches::kUsePassthroughCmdDecoder); 109 command_line->HasSwitch(switches::kUsePassthroughCmdDecoder);
110 // Some of these preferences are set or adjusted in
111 // GpuDataManagerImplPrivate::AppendGpuCommandLine.
113 return gpu_preferences; 112 return gpu_preferences;
114 } 113 }
115 114
116 } // namespace content 115 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | content/test/gpu/gpu_tests/pixel_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698