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

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

Issue 2903053002: Removing canvas rendering mode switching feature (Closed)
Patch Set: fix test failure Created 3 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
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) 132 if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas))
133 WebRuntimeFeatures::EnableDisplayList2dCanvas(true); 133 WebRuntimeFeatures::EnableDisplayList2dCanvas(true);
134 134
135 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) 135 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas))
136 WebRuntimeFeatures::EnableDisplayList2dCanvas(false); 136 WebRuntimeFeatures::EnableDisplayList2dCanvas(false);
137 137
138 if (command_line.HasSwitch(switches::kForceDisplayList2dCanvas)) 138 if (command_line.HasSwitch(switches::kForceDisplayList2dCanvas))
139 WebRuntimeFeatures::ForceDisplayList2dCanvas(true); 139 WebRuntimeFeatures::ForceDisplayList2dCanvas(true);
140 140
141 if (command_line.HasSwitch(
142 switches::kEnableCanvas2dDynamicRenderingModeSwitching))
143 WebRuntimeFeatures::EnableCanvas2dDynamicRenderingModeSwitching(true);
144
145 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions)) 141 if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions))
146 WebRuntimeFeatures::EnableWebGLDraftExtensions(true); 142 WebRuntimeFeatures::EnableWebGLDraftExtensions(true);
147 143
148 #if defined(OS_MACOSX) 144 #if defined(OS_MACOSX)
149 bool enable_canvas_2d_image_chromium = command_line.HasSwitch( 145 bool enable_canvas_2d_image_chromium = command_line.HasSwitch(
150 switches::kEnableGpuMemoryBufferCompositorResources) && 146 switches::kEnableGpuMemoryBufferCompositorResources) &&
151 !command_line.HasSwitch(switches::kDisable2dCanvasImageChromium) && 147 !command_line.HasSwitch(switches::kDisable2dCanvasImageChromium) &&
152 !command_line.HasSwitch(switches::kDisableGpu); 148 !command_line.HasSwitch(switches::kDisableGpu);
153 149
154 if (enable_canvas_2d_image_chromium) { 150 if (enable_canvas_2d_image_chromium) {
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 387 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
392 std::vector<std::string> disabled_features = base::SplitString( 388 std::vector<std::string> disabled_features = base::SplitString(
393 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 389 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
394 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 390 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
395 for (const std::string& feature : disabled_features) 391 for (const std::string& feature : disabled_features)
396 WebRuntimeFeatures::EnableFeatureFromString(feature, false); 392 WebRuntimeFeatures::EnableFeatureFromString(feature, false);
397 } 393 }
398 } 394 }
399 395
400 } // namespace content 396 } // 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