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

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

Issue 2391753003: Stop exposing --disable-gpu-compositing as a Blink RuntimeEnabledFeature (Closed)
Patch Set: simplify changes Created 4 years, 2 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/renderer/renderer_blink_platform_impl.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 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) 111 if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas))
112 WebRuntimeFeatures::enableDisplayList2dCanvas(true); 112 WebRuntimeFeatures::enableDisplayList2dCanvas(true);
113 113
114 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) 114 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas))
115 WebRuntimeFeatures::enableDisplayList2dCanvas(false); 115 WebRuntimeFeatures::enableDisplayList2dCanvas(false);
116 116
117 if (command_line.HasSwitch(switches::kForceDisplayList2dCanvas)) 117 if (command_line.HasSwitch(switches::kForceDisplayList2dCanvas))
118 WebRuntimeFeatures::forceDisplayList2dCanvas(true); 118 WebRuntimeFeatures::forceDisplayList2dCanvas(true);
119 119
120 if (command_line.HasSwitch(switches::kDisableGpuCompositing) ||
121 command_line.HasSwitch(switches::kDisableGpu))
122 WebRuntimeFeatures::enableGpuCompositing(false);
123 else
124 WebRuntimeFeatures::enableGpuCompositing(true);
125
126 if (command_line.HasSwitch( 120 if (command_line.HasSwitch(
127 switches::kEnableCanvas2dDynamicRenderingModeSwitching)) 121 switches::kEnableCanvas2dDynamicRenderingModeSwitching))
128 WebRuntimeFeatures::enableCanvas2dDynamicRenderingModeSwitching(true); 122 WebRuntimeFeatures::enableCanvas2dDynamicRenderingModeSwitching(true);
129 123
130 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) 124 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions))
131 WebRuntimeFeatures::enableWebGLDraftExtensions(true); 125 WebRuntimeFeatures::enableWebGLDraftExtensions(true);
132 126
133 #if defined(OS_MACOSX) 127 #if defined(OS_MACOSX)
134 bool enable_canvas_2d_image_chromium = command_line.HasSwitch( 128 bool enable_canvas_2d_image_chromium = command_line.HasSwitch(
135 switches::kEnableGpuMemoryBufferCompositorResources) && 129 switches::kEnableGpuMemoryBufferCompositorResources) &&
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 318 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
325 std::vector<std::string> disabled_features = base::SplitString( 319 std::vector<std::string> disabled_features = base::SplitString(
326 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 320 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
327 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 321 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
328 for (const std::string& feature : disabled_features) 322 for (const std::string& feature : disabled_features)
329 WebRuntimeFeatures::enableFeatureFromString(feature, false); 323 WebRuntimeFeatures::enableFeatureFromString(feature, false);
330 } 324 }
331 } 325 }
332 326
333 } // namespace content 327 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/renderer_blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698