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

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

Issue 2358203002: Enable compositing of scrolling content on low-DPI when LCD text will be maintained (Closed)
Patch Set: Test rebaselines Created 4 years, 3 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 WebRuntimeFeatures::enablePaymentRequest( 295 WebRuntimeFeatures::enablePaymentRequest(
296 base::FeatureList::IsEnabled(features::kWebPayments)); 296 base::FeatureList::IsEnabled(features::kWebPayments));
297 #endif 297 #endif
298 298
299 if (base::FeatureList::IsEnabled(features::kSpeculativeLaunchServiceWorker)) 299 if (base::FeatureList::IsEnabled(features::kSpeculativeLaunchServiceWorker))
300 WebRuntimeFeatures::enableSpeculativeLaunchServiceWorker(true); 300 WebRuntimeFeatures::enableSpeculativeLaunchServiceWorker(true);
301 301
302 if (base::FeatureList::IsEnabled(features::kGamepadExtensions)) 302 if (base::FeatureList::IsEnabled(features::kGamepadExtensions))
303 WebRuntimeFeatures::enableGamepadExtensions(true); 303 WebRuntimeFeatures::enableGamepadExtensions(true);
304 304
305 if (!base::FeatureList::IsEnabled(features::kCompositeOpaqueScrollers))
306 WebRuntimeFeatures::enableFeatureFromString("CompositeOpaqueScrollers",
307 false);
308
305 // Enable explicitly enabled features, and then disable explicitly disabled 309 // Enable explicitly enabled features, and then disable explicitly disabled
306 // ones. 310 // ones.
307 if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) { 311 if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) {
308 std::vector<std::string> enabled_features = base::SplitString( 312 std::vector<std::string> enabled_features = base::SplitString(
309 command_line.GetSwitchValueASCII(switches::kEnableBlinkFeatures), 313 command_line.GetSwitchValueASCII(switches::kEnableBlinkFeatures),
310 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 314 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
311 for (const std::string& feature : enabled_features) 315 for (const std::string& feature : enabled_features)
312 WebRuntimeFeatures::enableFeatureFromString(feature, true); 316 WebRuntimeFeatures::enableFeatureFromString(feature, true);
313 } 317 }
314 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 318 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
315 std::vector<std::string> disabled_features = base::SplitString( 319 std::vector<std::string> disabled_features = base::SplitString(
316 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 320 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
317 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 321 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
318 for (const std::string& feature : disabled_features) 322 for (const std::string& feature : disabled_features)
319 WebRuntimeFeatures::enableFeatureFromString(feature, false); 323 WebRuntimeFeatures::enableFeatureFromString(feature, false);
320 } 324 }
321 } 325 }
322 326
323 } // namespace content 327 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | content/public/common/content_features.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698