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

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

Issue 2612323002: Add --disable-slimming-paint-invalidation (Closed)
Patch Set: Created 3 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
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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 WebRuntimeFeatures::enableScrollAnchoring( 249 WebRuntimeFeatures::enableScrollAnchoring(
250 base::FeatureList::IsEnabled(features::kScrollAnchoring) || 250 base::FeatureList::IsEnabled(features::kScrollAnchoring) ||
251 enableExperimentalWebPlatformFeatures); 251 enableExperimentalWebPlatformFeatures);
252 252
253 if (command_line.HasSwitch(switches::kEnableSlimmingPaintV2)) 253 if (command_line.HasSwitch(switches::kEnableSlimmingPaintV2))
254 WebRuntimeFeatures::enableSlimmingPaintV2(true); 254 WebRuntimeFeatures::enableSlimmingPaintV2(true);
255 255
256 if (command_line.HasSwitch(switches::kEnableSlimmingPaintInvalidation)) 256 if (command_line.HasSwitch(switches::kEnableSlimmingPaintInvalidation))
257 WebRuntimeFeatures::enableSlimmingPaintInvalidation(true); 257 WebRuntimeFeatures::enableSlimmingPaintInvalidation(true);
258 258
259 if (command_line.HasSwitch(switches::kDisableSlimmingPaintInvalidation))
260 WebRuntimeFeatures::enableSlimmingPaintInvalidation(false);
261
259 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator)) 262 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator))
260 WebRuntimeFeatures::enableDocumentWriteEvaluator(true); 263 WebRuntimeFeatures::enableDocumentWriteEvaluator(true);
261 264
262 if (base::FeatureList::IsEnabled(features::kLazyParseCSS)) 265 if (base::FeatureList::IsEnabled(features::kLazyParseCSS))
263 WebRuntimeFeatures::enableLazyParseCSS(true); 266 WebRuntimeFeatures::enableLazyParseCSS(true);
264 267
265 WebRuntimeFeatures::enableMediaDocumentDownloadButton( 268 WebRuntimeFeatures::enableMediaDocumentDownloadButton(
266 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); 269 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton));
267 270
268 WebRuntimeFeatures::enablePointerEvent( 271 WebRuntimeFeatures::enablePointerEvent(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 349 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
347 std::vector<std::string> disabled_features = base::SplitString( 350 std::vector<std::string> disabled_features = base::SplitString(
348 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 351 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
349 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 352 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
350 for (const std::string& feature : disabled_features) 353 for (const std::string& feature : disabled_features)
351 WebRuntimeFeatures::enableFeatureFromString(feature, false); 354 WebRuntimeFeatures::enableFeatureFromString(feature, false);
352 } 355 }
353 } 356 }
354 357
355 } // namespace content 358 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698