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

Side by Side Diff: content/renderer/web_preferences.cc

Issue 292983005: Removed privileged WebGL extension flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/web_preferences.h" 5 #include "content/public/renderer/web_preferences.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "third_party/WebKit/public/platform/WebString.h" 8 #include "third_party/WebKit/public/platform/WebString.h"
9 #include "third_party/WebKit/public/platform/WebURL.h" 9 #include "third_party/WebKit/public/platform/WebURL.h"
10 #include "third_party/WebKit/public/web/WebKit.h" 10 #include "third_party/WebKit/public/web/WebKit.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // Enable the web audio API if requested on the command line. 176 // Enable the web audio API if requested on the command line.
177 settings->setWebAudioEnabled(prefs.webaudio_enabled); 177 settings->setWebAudioEnabled(prefs.webaudio_enabled);
178 178
179 // Enable experimental WebGL support if requested on command line 179 // Enable experimental WebGL support if requested on command line
180 // and support is compiled in. 180 // and support is compiled in.
181 settings->setExperimentalWebGLEnabled(prefs.experimental_webgl_enabled); 181 settings->setExperimentalWebGLEnabled(prefs.experimental_webgl_enabled);
182 182
183 // Disable GL multisampling if requested on command line. 183 // Disable GL multisampling if requested on command line.
184 settings->setOpenGLMultisamplingEnabled(prefs.gl_multisampling_enabled); 184 settings->setOpenGLMultisamplingEnabled(prefs.gl_multisampling_enabled);
185 185
186 // Enable privileged WebGL extensions for Chrome extensions or if requested
187 // on command line.
188 settings->setPrivilegedWebGLExtensionsEnabled(
189 prefs.privileged_webgl_extensions_enabled);
190
191 // Enable WebGL errors to the JS console if requested. 186 // Enable WebGL errors to the JS console if requested.
192 settings->setWebGLErrorsToConsoleEnabled( 187 settings->setWebGLErrorsToConsoleEnabled(
193 prefs.webgl_errors_to_console_enabled); 188 prefs.webgl_errors_to_console_enabled);
194 189
195 // Uses the mock theme engine for scrollbars. 190 // Uses the mock theme engine for scrollbars.
196 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled); 191 settings->setMockScrollbarsEnabled(prefs.mock_scrollbars_enabled);
197 192
198 settings->setLayerSquashingEnabled(prefs.layer_squashing_enabled); 193 settings->setLayerSquashingEnabled(prefs.layer_squashing_enabled);
199 194
200 // Enable gpu-accelerated compositing always. 195 // Enable gpu-accelerated compositing always.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 settings->setPinchOverlayScrollbarThickness( 334 settings->setPinchOverlayScrollbarThickness(
340 prefs.pinch_overlay_scrollbar_thickness); 335 prefs.pinch_overlay_scrollbar_thickness);
341 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); 336 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars);
342 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); 337 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing);
343 338
344 settings->setThreadedHTMLParser(true); 339 settings->setThreadedHTMLParser(true);
345 settings->setUseThreadedHTMLParserForDataURLs(true); 340 settings->setUseThreadedHTMLParserForDataURLs(true);
346 } 341 }
347 342
348 } // namespace content 343 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698