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

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

Issue 2551293002: Add a new flag for slimming paint invalidation (Closed)
Patch Set: Update histograms.xml Created 4 years 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 if (command_line.HasSwitch(switches::kEnableWebFontsInterventionTrigger)) 242 if (command_line.HasSwitch(switches::kEnableWebFontsInterventionTrigger))
243 WebRuntimeFeatures::enableWebFontsInterventionTrigger(true); 243 WebRuntimeFeatures::enableWebFontsInterventionTrigger(true);
244 244
245 WebRuntimeFeatures::enableScrollAnchoring( 245 WebRuntimeFeatures::enableScrollAnchoring(
246 base::FeatureList::IsEnabled(features::kScrollAnchoring) || 246 base::FeatureList::IsEnabled(features::kScrollAnchoring) ||
247 enableExperimentalWebPlatformFeatures); 247 enableExperimentalWebPlatformFeatures);
248 248
249 if (command_line.HasSwitch(switches::kEnableSlimmingPaintV2)) 249 if (command_line.HasSwitch(switches::kEnableSlimmingPaintV2))
250 WebRuntimeFeatures::enableSlimmingPaintV2(true); 250 WebRuntimeFeatures::enableSlimmingPaintV2(true);
251 251
252 if (command_line.HasSwitch(switches::kEnableSlimmingPaintInvalidation))
253 WebRuntimeFeatures::enableSlimmingPaintInvalidation(true);
254
252 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator)) 255 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator))
253 WebRuntimeFeatures::enableDocumentWriteEvaluator(true); 256 WebRuntimeFeatures::enableDocumentWriteEvaluator(true);
254 257
255 if (base::FeatureList::IsEnabled(features::kLazyParseCSS)) 258 if (base::FeatureList::IsEnabled(features::kLazyParseCSS))
256 WebRuntimeFeatures::enableLazyParseCSS(true); 259 WebRuntimeFeatures::enableLazyParseCSS(true);
257 260
258 WebRuntimeFeatures::enableMediaDocumentDownloadButton( 261 WebRuntimeFeatures::enableMediaDocumentDownloadButton(
259 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); 262 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton));
260 263
261 WebRuntimeFeatures::enablePointerEvent( 264 WebRuntimeFeatures::enablePointerEvent(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 342 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
340 std::vector<std::string> disabled_features = base::SplitString( 343 std::vector<std::string> disabled_features = base::SplitString(
341 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 344 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
342 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 345 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
343 for (const std::string& feature : disabled_features) 346 for (const std::string& feature : disabled_features)
344 WebRuntimeFeatures::enableFeatureFromString(feature, false); 347 WebRuntimeFeatures::enableFeatureFromString(feature, false);
345 } 348 }
346 } 349 }
347 350
348 } // namespace content 351 } // 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