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

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

Issue 2698573002: Support offscreen contexts which own their backing surface (Closed)
Patch Set: Rebase and retry again Created 3 years, 10 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 | « chrome/browser/about_flags.cc ('k') | 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 WebRuntimeFeatures::enablePermissionsAPI(false); 202 WebRuntimeFeatures::enablePermissionsAPI(false);
203 203
204 if (command_line.HasSwitch(switches::kDisableV8IdleTasks)) 204 if (command_line.HasSwitch(switches::kDisableV8IdleTasks))
205 WebRuntimeFeatures::enableV8IdleTasks(false); 205 WebRuntimeFeatures::enableV8IdleTasks(false);
206 else 206 else
207 WebRuntimeFeatures::enableV8IdleTasks(true); 207 WebRuntimeFeatures::enableV8IdleTasks(true);
208 208
209 if (command_line.HasSwitch(switches::kEnableWebVR)) 209 if (command_line.HasSwitch(switches::kEnableWebVR))
210 WebRuntimeFeatures::enableWebVR(true); 210 WebRuntimeFeatures::enableWebVR(true);
211 211
212 WebRuntimeFeatures::enableWebVRExperimentalRendering(
213 base::FeatureList::IsEnabled(features::kWebVRExperimentalRendering));
214
212 if (command_line.HasSwitch(switches::kDisablePresentationAPI)) 215 if (command_line.HasSwitch(switches::kDisablePresentationAPI))
213 WebRuntimeFeatures::enablePresentationAPI(false); 216 WebRuntimeFeatures::enablePresentationAPI(false);
214 217
215 if (command_line.HasSwitch(switches::kDisableRemotePlaybackAPI)) 218 if (command_line.HasSwitch(switches::kDisableRemotePlaybackAPI))
216 WebRuntimeFeatures::enableRemotePlaybackAPI(false); 219 WebRuntimeFeatures::enableRemotePlaybackAPI(false);
217 220
218 const std::string webfonts_intervention_v2_group_name = 221 const std::string webfonts_intervention_v2_group_name =
219 base::FieldTrialList::FindFullName("WebFontsInterventionV2"); 222 base::FieldTrialList::FindFullName("WebFontsInterventionV2");
220 const std::string webfonts_intervention_v2_about_flag = 223 const std::string webfonts_intervention_v2_about_flag =
221 command_line.GetSwitchValueASCII(switches::kEnableWebFontsInterventionV2); 224 command_line.GetSwitchValueASCII(switches::kEnableWebFontsInterventionV2);
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { 377 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) {
375 std::vector<std::string> disabled_features = base::SplitString( 378 std::vector<std::string> disabled_features = base::SplitString(
376 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), 379 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures),
377 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 380 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
378 for (const std::string& feature : disabled_features) 381 for (const std::string& feature : disabled_features)
379 WebRuntimeFeatures::enableFeatureFromString(feature, false); 382 WebRuntimeFeatures::enableFeatureFromString(feature, false);
380 } 383 }
381 } 384 }
382 385
383 } // namespace content 386 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698