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

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

Issue 1755163003: CL for perf tryjob on mac Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) 115 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas))
116 WebRuntimeFeatures::enableDisplayList2dCanvas(false); 116 WebRuntimeFeatures::enableDisplayList2dCanvas(false);
117 117
118 if (command_line.HasSwitch(switches::kForceDisplayList2dCanvas)) 118 if (command_line.HasSwitch(switches::kForceDisplayList2dCanvas))
119 WebRuntimeFeatures::forceDisplayList2dCanvas(true); 119 WebRuntimeFeatures::forceDisplayList2dCanvas(true);
120 120
121 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) 121 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions))
122 WebRuntimeFeatures::enableWebGLDraftExtensions(true); 122 WebRuntimeFeatures::enableWebGLDraftExtensions(true);
123 123
124 #if defined(OS_MACOSX)
125 bool enable_canvas_2d_image_chromium = command_line.HasSwitch(
126 switches::kEnableGpuMemoryBufferCompositorResources) &&
127 !command_line.HasSwitch(switches::kDisable2dCanvasImageChromium) &&
128 !command_line.HasSwitch(switches::kDisableGpu);
129 #else
130 bool enable_canvas_2d_image_chromium = false;
131 #endif
132 WebRuntimeFeatures::enableCanvas2dImageChromium(
133 enable_canvas_2d_image_chromium);
134
124 if (command_line.HasSwitch(switches::kEnableWebGLImageChromium)) 135 if (command_line.HasSwitch(switches::kEnableWebGLImageChromium))
125 WebRuntimeFeatures::enableWebGLImageChromium(true); 136 WebRuntimeFeatures::enableWebGLImageChromium(true);
126 137
127 if (command_line.HasSwitch(switches::kForceOverlayFullscreenVideo)) 138 if (command_line.HasSwitch(switches::kForceOverlayFullscreenVideo))
128 WebRuntimeFeatures::forceOverlayFullscreenVideo(true); 139 WebRuntimeFeatures::forceOverlayFullscreenVideo(true);
129 140
130 if (ui::IsOverlayScrollbarEnabled()) 141 if (ui::IsOverlayScrollbarEnabled())
131 WebRuntimeFeatures::enableOverlayScrollbars(true); 142 WebRuntimeFeatures::enableOverlayScrollbars(true);
132 143
133 if (command_line.HasSwitch(switches::kEnablePreciseMemoryInfo)) 144 if (command_line.HasSwitch(switches::kEnablePreciseMemoryInfo))
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 203 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
193 std::vector<std::string> disabled_features = base::SplitString( 204 std::vector<std::string> disabled_features = base::SplitString(
194 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 205 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
195 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 206 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
196 for (const std::string& feature : disabled_features) 207 for (const std::string& feature : disabled_features)
197 WebRuntimeFeatures::enableFeatureFromString(feature, false); 208 WebRuntimeFeatures::enableFeatureFromString(feature, false);
198 } 209 }
199 } 210 }
200 211
201 } // namespace content 212 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698