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

Side by Side Diff: chrome/renderer/render_thread.cc

Issue 3348012: Enable webgl and accelerated compositing by default on all platforms. Removes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 | « chrome/common/sandbox_policy.cc ('k') | chrome/renderer/render_view.cc » ('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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/renderer/render_thread.h" 5 #include "chrome/renderer/render_thread.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 WebRuntimeFeatures::enableSessionStorage( 938 WebRuntimeFeatures::enableSessionStorage(
939 !command_line.HasSwitch(switches::kDisableSessionStorage)); 939 !command_line.HasSwitch(switches::kDisableSessionStorage));
940 940
941 WebRuntimeFeatures::enableIndexedDatabase( 941 WebRuntimeFeatures::enableIndexedDatabase(
942 command_line.HasSwitch(switches::kEnableIndexedDatabase)); 942 command_line.HasSwitch(switches::kEnableIndexedDatabase));
943 943
944 WebRuntimeFeatures::enableGeolocation( 944 WebRuntimeFeatures::enableGeolocation(
945 !command_line.HasSwitch(switches::kDisableGeolocation)); 945 !command_line.HasSwitch(switches::kDisableGeolocation));
946 946
947 WebRuntimeFeatures::enableWebGL( 947 WebRuntimeFeatures::enableWebGL(
948 command_line.HasSwitch(switches::kEnableExperimentalWebGL)); 948 !command_line.HasSwitch(switches::kDisableExperimentalWebGL));
949 949
950 WebRuntimeFeatures::enablePushState(true); 950 WebRuntimeFeatures::enablePushState(true);
951 951
952 WebRuntimeFeatures::enableTouch( 952 WebRuntimeFeatures::enableTouch(
953 command_line.HasSwitch(switches::kEnableTouch)); 953 command_line.HasSwitch(switches::kEnableTouch));
954 954
955 WebRuntimeFeatures::enableDeviceMotion( 955 WebRuntimeFeatures::enableDeviceMotion(
956 command_line.HasSwitch(switches::kEnableDeviceMotion)); 956 command_line.HasSwitch(switches::kEnableDeviceMotion));
957 957
958 WebRuntimeFeatures::enableDeviceOrientation( 958 WebRuntimeFeatures::enableDeviceOrientation(
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 1101
1102 scoped_refptr<base::MessageLoopProxy> 1102 scoped_refptr<base::MessageLoopProxy>
1103 RenderThread::GetFileThreadMessageLoopProxy() { 1103 RenderThread::GetFileThreadMessageLoopProxy() {
1104 DCHECK(message_loop() == MessageLoop::current()); 1104 DCHECK(message_loop() == MessageLoop::current());
1105 if (!file_thread_.get()) { 1105 if (!file_thread_.get()) {
1106 file_thread_.reset(new base::Thread("Renderer::FILE")); 1106 file_thread_.reset(new base::Thread("Renderer::FILE"));
1107 file_thread_->Start(); 1107 file_thread_->Start();
1108 } 1108 }
1109 return file_thread_->message_loop_proxy(); 1109 return file_thread_->message_loop_proxy();
1110 } 1110 }
OLDNEW
« no previous file with comments | « chrome/common/sandbox_policy.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698