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

Unified Diff: content/child/runtime_features.cc

Issue 837123003: Revert of Revert of Enable display list 2D canvas by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 2e723340de20f6eceff2916b558004860b572493..c70a850ca8ed284eef8f76e00a6a65556513382d 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -145,17 +145,14 @@
if (command_line.HasSwitch(switches::kEnableAcceleratedJpegDecoding))
WebRuntimeFeatures::enableDecodeToYUV(true);
- if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) {
+ if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas))
+ WebRuntimeFeatures::enableDisplayList2dCanvas(true);
+
+ if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas))
WebRuntimeFeatures::enableDisplayList2dCanvas(false);
- } else if (command_line.HasSwitch(switches::kForceDisplayList2dCanvas)) {
+
+ if (command_line.HasSwitch(switches::kForceDisplayList2dCanvas))
WebRuntimeFeatures::forceDisplayList2dCanvas(true);
- } else if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) {
- WebRuntimeFeatures::enableDisplayList2dCanvas(true);
- } else {
- WebRuntimeFeatures::enableDisplayList2dCanvas(
- base::FieldTrialList::FindFullName("DisplayList2dCanvas") == "Enabled"
- );
- }
if (command_line.HasSwitch(switches::kEnableWebGLDraftExtensions))
WebRuntimeFeatures::enableWebGLDraftExtensions(true);
« no previous file with comments | « no previous file | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698