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

Side by Side Diff: content/child/runtime_features.cc

Issue 806503003: Revert of Revert of Revert of Enable display list 2D canvas by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/shell/app/shell_main_delegate.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 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/child/runtime_features.h" 5 #include "content/child/runtime_features.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "content/common/content_switches_internal.h" 9 #include "content/common/content_switches_internal.h"
10 #include "content/public/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 if (command_line.HasSwitch(switches::kDisableFileSystem)) 139 if (command_line.HasSwitch(switches::kDisableFileSystem))
140 WebRuntimeFeatures::enableFileSystem(false); 140 WebRuntimeFeatures::enableFileSystem(false);
141 141
142 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) 142 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures))
143 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); 143 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true);
144 144
145 if (command_line.HasSwitch(switches::kEnableAcceleratedJpegDecoding)) 145 if (command_line.HasSwitch(switches::kEnableAcceleratedJpegDecoding))
146 WebRuntimeFeatures::enableDecodeToYUV(true); 146 WebRuntimeFeatures::enableDecodeToYUV(true);
147 147
148 if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) 148 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) {
149 WebRuntimeFeatures::enableDisplayList2dCanvas(false);
150 } else if (command_line.HasSwitch(switches::kForceDisplayList2dCanvas)) {
151 WebRuntimeFeatures::forceDisplayList2dCanvas(true);
152 } else if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) {
149 WebRuntimeFeatures::enableDisplayList2dCanvas(true); 153 WebRuntimeFeatures::enableDisplayList2dCanvas(true);
150 154 } else {
151 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) 155 WebRuntimeFeatures::enableDisplayList2dCanvas(
152 WebRuntimeFeatures::enableDisplayList2dCanvas(false); 156 base::FieldTrialList::FindFullName("DisplayList2dCanvas") == "Enabled"
153 157 );
154 if (command_line.HasSwitch(switches::kForceDisplayList2dCanvas)) 158 }
155 WebRuntimeFeatures::forceDisplayList2dCanvas(true);
156 159
157 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) 160 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions))
158 WebRuntimeFeatures::enableWebGLDraftExtensions(true); 161 WebRuntimeFeatures::enableWebGLDraftExtensions(true);
159 162
160 if (command_line.HasSwitch(switches::kEnableWebGLImageChromium)) 163 if (command_line.HasSwitch(switches::kEnableWebGLImageChromium))
161 WebRuntimeFeatures::enableWebGLImageChromium(true); 164 WebRuntimeFeatures::enableWebGLImageChromium(true);
162 165
163 if (command_line.HasSwitch(switches::kEnableOverlayFullscreenVideo)) 166 if (command_line.HasSwitch(switches::kEnableOverlayFullscreenVideo))
164 WebRuntimeFeatures::enableOverlayFullscreenVideo(true); 167 WebRuntimeFeatures::enableOverlayFullscreenVideo(true);
165 168
(...skipping 17 matching lines...) Expand all
183 186
184 if (command_line.HasSwitch(switches::kDisableSVG1DOM)) { 187 if (command_line.HasSwitch(switches::kDisableSVG1DOM)) {
185 WebRuntimeFeatures::enableSVG1DOM(false); 188 WebRuntimeFeatures::enableSVG1DOM(false);
186 } 189 }
187 190
188 if (command_line.HasSwitch(switches::kReducedReferrerGranularity)) 191 if (command_line.HasSwitch(switches::kReducedReferrerGranularity))
189 WebRuntimeFeatures::enableReducedReferrerGranularity(true); 192 WebRuntimeFeatures::enableReducedReferrerGranularity(true);
190 } 193 }
191 194
192 } // namespace content 195 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698