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

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: Fix indent and a bad rebaseline. 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/public/common/content_features.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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 WebRuntimeFeatures::enablePaymentRequest( 293 WebRuntimeFeatures::enablePaymentRequest(
294 base::FeatureList::IsEnabled(features::kWebPayments)); 294 base::FeatureList::IsEnabled(features::kWebPayments));
295 #endif 295 #endif
296 296
297 if (base::FeatureList::IsEnabled(features::kSpeculativeLaunchServiceWorker)) 297 if (base::FeatureList::IsEnabled(features::kSpeculativeLaunchServiceWorker))
298 WebRuntimeFeatures::enableSpeculativeLaunchServiceWorker(true); 298 WebRuntimeFeatures::enableSpeculativeLaunchServiceWorker(true);
299 299
300 if (base::FeatureList::IsEnabled(features::kGamepadExtensions)) 300 if (base::FeatureList::IsEnabled(features::kGamepadExtensions))
301 WebRuntimeFeatures::enableGamepadExtensions(true); 301 WebRuntimeFeatures::enableGamepadExtensions(true);
302 302
303 if (!base::FeatureList::IsEnabled(features::kCompositeOpaqueScrollers))
304 WebRuntimeFeatures::enableFeatureFromString("CompositeOpaqueScrollers",
305 false);
306
303 // Enable explicitly enabled features, and then disable explicitly disabled 307 // Enable explicitly enabled features, and then disable explicitly disabled
304 // ones. 308 // ones.
305 if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) { 309 if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) {
306 std::vector<std::string> enabled_features = base::SplitString( 310 std::vector<std::string> enabled_features = base::SplitString(
307 command_line.GetSwitchValueASCII(switches::kEnableBlinkFeatures), 311 command_line.GetSwitchValueASCII(switches::kEnableBlinkFeatures),
308 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 312 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
309 for (const std::string& feature : enabled_features) 313 for (const std::string& feature : enabled_features)
310 WebRuntimeFeatures::enableFeatureFromString(feature, true); 314 WebRuntimeFeatures::enableFeatureFromString(feature, true);
311 } 315 }
312 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 316 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
313 std::vector<std::string> disabled_features = base::SplitString( 317 std::vector<std::string> disabled_features = base::SplitString(
314 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 318 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
315 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 319 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
316 for (const std::string& feature : disabled_features) 320 for (const std::string& feature : disabled_features)
317 WebRuntimeFeatures::enableFeatureFromString(feature, false); 321 WebRuntimeFeatures::enableFeatureFromString(feature, false);
318 } 322 }
319 } 323 }
320 324
321 } // namespace content 325 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698