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

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

Issue 2444813002: Remove unsafe mode to enable es3 api by default for WebGL2 and ES3 context (Closed)
Patch Set: fix a bug 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') | gpu/command_buffer/service/feature_info.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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 gpu_preferences.enable_threaded_texture_mailboxes = 96 gpu_preferences.enable_threaded_texture_mailboxes =
97 command_line->HasSwitch(switches::kEnableThreadedTextureMailboxes); 97 command_line->HasSwitch(switches::kEnableThreadedTextureMailboxes);
98 gpu_preferences.gl_shader_interm_output = 98 gpu_preferences.gl_shader_interm_output =
99 command_line->HasSwitch(switches::kGLShaderIntermOutput); 99 command_line->HasSwitch(switches::kGLShaderIntermOutput);
100 gpu_preferences.emulate_shader_precision = 100 gpu_preferences.emulate_shader_precision =
101 command_line->HasSwitch(switches::kEmulateShaderPrecision); 101 command_line->HasSwitch(switches::kEmulateShaderPrecision);
102 gpu_preferences.enable_gpu_service_logging = 102 gpu_preferences.enable_gpu_service_logging =
103 command_line->HasSwitch(switches::kEnableGPUServiceLogging); 103 command_line->HasSwitch(switches::kEnableGPUServiceLogging);
104 gpu_preferences.enable_gpu_service_tracing = 104 gpu_preferences.enable_gpu_service_tracing =
105 command_line->HasSwitch(switches::kEnableGPUServiceTracing); 105 command_line->HasSwitch(switches::kEnableGPUServiceTracing);
106 gpu_preferences.enable_unsafe_es3_apis =
107 command_line->HasSwitch(switches::kEnableUnsafeES3APIs);
108 gpu_preferences.use_passthrough_cmd_decoder = 106 gpu_preferences.use_passthrough_cmd_decoder =
109 command_line->HasSwitch(switches::kUsePassthroughCmdDecoder); 107 command_line->HasSwitch(switches::kUsePassthroughCmdDecoder);
110 return gpu_preferences; 108 return gpu_preferences;
111 } 109 }
112 110
113 } // namespace content 111 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu_host_messages.h ('k') | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698