OLD | NEW |
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 "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "content/common/content_switches_internal.h" | 9 #include "content/common/content_switches_internal.h" |
10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 if (command_line.HasSwitch(switches::kEnableWebMIDI)) | 133 if (command_line.HasSwitch(switches::kEnableWebMIDI)) |
134 WebRuntimeFeatures::enableWebMIDI(true); | 134 WebRuntimeFeatures::enableWebMIDI(true); |
135 | 135 |
136 if (command_line.HasSwitch(switches::kDisableFileSystem)) | 136 if (command_line.HasSwitch(switches::kDisableFileSystem)) |
137 WebRuntimeFeatures::enableFileSystem(false); | 137 WebRuntimeFeatures::enableFileSystem(false); |
138 | 138 |
139 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) | 139 if (command_line.HasSwitch(switches::kEnableExperimentalCanvasFeatures)) |
140 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); | 140 WebRuntimeFeatures::enableExperimentalCanvasFeatures(true); |
141 | 141 |
| 142 if (command_line.HasSwitch(switches::kEnableAcceleratedJpegDecoding)) |
| 143 WebRuntimeFeatures::enableDecodeToYUV(true); |
| 144 |
142 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) { | 145 if (command_line.HasSwitch(switches::kDisableDisplayList2dCanvas)) { |
143 WebRuntimeFeatures::enableDisplayList2dCanvas(false); | 146 WebRuntimeFeatures::enableDisplayList2dCanvas(false); |
144 } else if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) { | 147 } else if (command_line.HasSwitch(switches::kEnableDisplayList2dCanvas)) { |
145 WebRuntimeFeatures::enableDisplayList2dCanvas(true); | 148 WebRuntimeFeatures::enableDisplayList2dCanvas(true); |
146 } else { | 149 } else { |
147 WebRuntimeFeatures::enableDisplayList2dCanvas( | 150 WebRuntimeFeatures::enableDisplayList2dCanvas( |
148 base::FieldTrialList::FindFullName("DisplayList2dCanvas") == "Enabled" | 151 base::FieldTrialList::FindFullName("DisplayList2dCanvas") == "Enabled" |
149 ); | 152 ); |
150 } | 153 } |
151 | 154 |
(...skipping 19 matching lines...) Expand all Loading... |
171 WebRuntimeFeatures::enableLayerSquashing(true); | 174 WebRuntimeFeatures::enableLayerSquashing(true); |
172 | 175 |
173 if (command_line.HasSwitch(switches::kEnableNetworkInformation) || | 176 if (command_line.HasSwitch(switches::kEnableNetworkInformation) || |
174 command_line.HasSwitch( | 177 command_line.HasSwitch( |
175 switches::kEnableExperimentalWebPlatformFeatures)) { | 178 switches::kEnableExperimentalWebPlatformFeatures)) { |
176 WebRuntimeFeatures::enableNetworkInformation(true); | 179 WebRuntimeFeatures::enableNetworkInformation(true); |
177 } | 180 } |
178 } | 181 } |
179 | 182 |
180 } // namespace content | 183 } // namespace content |
OLD | NEW |