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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 2473933002: Enable WebGL 2 by default! (on desktop) (Closed)
Patch Set: undo rename of GpuPreferences::enable_unsafe_es3_apis Created 4 years, 1 month 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/app/generated_resources.grd ('k') | content/browser/gpu/compositor_util.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 const FeatureEntry::Choice kEnableGpuRasterizationChoices[] = { 323 const FeatureEntry::Choice kEnableGpuRasterizationChoices[] = {
324 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 324 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
325 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, 325 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
326 switches::kEnableGpuRasterization, "" }, 326 switches::kEnableGpuRasterization, "" },
327 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, 327 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
328 switches::kDisableGpuRasterization, "" }, 328 switches::kDisableGpuRasterization, "" },
329 { IDS_FLAGS_FORCE_GPU_RASTERIZATION, 329 { IDS_FLAGS_FORCE_GPU_RASTERIZATION,
330 switches::kForceGpuRasterization, "" }, 330 switches::kForceGpuRasterization, "" },
331 }; 331 };
332 332
333 const FeatureEntry::Choice kEnableWebGL2Choices[] = {
334 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
335 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, switches::kEnableES3APIs, "" },
336 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kDisableES3APIs, "" },
337 };
338
333 #if defined(OS_CHROMEOS) 339 #if defined(OS_CHROMEOS)
334 const FeatureEntry::Choice kMemoryPressureThresholdChoices[] = { 340 const FeatureEntry::Choice kMemoryPressureThresholdChoices[] = {
335 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 341 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
336 { IDS_FLAGS_CONSERVATIVE_THRESHOLDS, 342 { IDS_FLAGS_CONSERVATIVE_THRESHOLDS,
337 chromeos::switches::kMemoryPressureThresholds, 343 chromeos::switches::kMemoryPressureThresholds,
338 chromeos::switches::kConservativeThreshold }, 344 chromeos::switches::kConservativeThreshold },
339 { IDS_FLAGS_AGGRESSIVE_CACHE_DISCARD_THRESHOLDS, 345 { IDS_FLAGS_AGGRESSIVE_CACHE_DISCARD_THRESHOLDS,
340 chromeos::switches::kMemoryPressureThresholds, 346 chromeos::switches::kMemoryPressureThresholds,
341 chromeos::switches::kAggressiveCacheDiscardThreshold }, 347 chromeos::switches::kAggressiveCacheDiscardThreshold },
342 { IDS_FLAGS_AGGRESSIVE_TAB_DISCARD_THRESHOLDS, 348 { IDS_FLAGS_AGGRESSIVE_TAB_DISCARD_THRESHOLDS,
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1781 IDS_FLAGS_SET_MARKET_URL_FOR_TESTING_DESCRIPTION, kOsAndroid, 1787 IDS_FLAGS_SET_MARKET_URL_FOR_TESTING_DESCRIPTION, kOsAndroid,
1782 SINGLE_VALUE_TYPE_AND_VALUE( 1788 SINGLE_VALUE_TYPE_AND_VALUE(
1783 switches::kMarketUrlForTesting, 1789 switches::kMarketUrlForTesting,
1784 "https://play.google.com/store/apps/details?id=com.android.chrome")}, 1790 "https://play.google.com/store/apps/details?id=com.android.chrome")},
1785 #endif // OS_ANDROID 1791 #endif // OS_ANDROID
1786 #if defined(OS_WIN) || defined(OS_MACOSX) 1792 #if defined(OS_WIN) || defined(OS_MACOSX)
1787 {"automatic-tab-discarding", IDS_FLAGS_AUTOMATIC_TAB_DISCARDING_NAME, 1793 {"automatic-tab-discarding", IDS_FLAGS_AUTOMATIC_TAB_DISCARDING_NAME,
1788 IDS_FLAGS_AUTOMATIC_TAB_DISCARDING_DESCRIPTION, kOsWin | kOsMac, 1794 IDS_FLAGS_AUTOMATIC_TAB_DISCARDING_DESCRIPTION, kOsWin | kOsMac,
1789 FEATURE_VALUE_TYPE(features::kAutomaticTabDiscarding)}, 1795 FEATURE_VALUE_TYPE(features::kAutomaticTabDiscarding)},
1790 #endif // OS_WIN || OS_MACOSX 1796 #endif // OS_WIN || OS_MACOSX
1791 {"enable-unsafe-es3-apis", IDS_FLAGS_WEBGL2_NAME, 1797 {"enable-es3-apis", IDS_FLAGS_WEBGL2_NAME,
1792 IDS_FLAGS_WEBGL2_DESCRIPTION, kOsAll, 1798 IDS_FLAGS_WEBGL2_DESCRIPTION, kOsAll,
1793 SINGLE_VALUE_TYPE(switches::kEnableUnsafeES3APIs)}, 1799 MULTI_VALUE_TYPE(kEnableWebGL2Choices)},
1794 {"enable-webfonts-intervention-v2", 1800 {"enable-webfonts-intervention-v2",
1795 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_NAME, 1801 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_NAME,
1796 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_DESCRIPTION, kOsAll, 1802 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_DESCRIPTION, kOsAll,
1797 MULTI_VALUE_TYPE(kEnableWebFontsInterventionV2Choices)}, 1803 MULTI_VALUE_TYPE(kEnableWebFontsInterventionV2Choices)},
1798 {"enable-webfonts-intervention-trigger", 1804 {"enable-webfonts-intervention-trigger",
1799 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_TRIGGER_NAME, 1805 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_TRIGGER_NAME,
1800 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_TRIGGER_DESCRIPTION, kOsAll, 1806 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_TRIGGER_DESCRIPTION, kOsAll,
1801 SINGLE_VALUE_TYPE(switches::kEnableWebFontsInterventionTrigger)}, 1807 SINGLE_VALUE_TYPE(switches::kEnableWebFontsInterventionTrigger)},
1802 {"enable-grouped-history", IDS_FLAGS_ENABLE_GROUPED_HISTORY_NAME, 1808 {"enable-grouped-history", IDS_FLAGS_ENABLE_GROUPED_HISTORY_NAME,
1803 IDS_FLAGS_ENABLE_GROUPED_HISTORY_DESCRIPTION, kOsDesktop, 1809 IDS_FLAGS_ENABLE_GROUPED_HISTORY_DESCRIPTION, kOsDesktop,
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2292 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2287 2293
2288 const FeatureEntry* GetFeatureEntries(size_t* count) { 2294 const FeatureEntry* GetFeatureEntries(size_t* count) {
2289 *count = arraysize(kFeatureEntries); 2295 *count = arraysize(kFeatureEntries);
2290 return kFeatureEntries; 2296 return kFeatureEntries;
2291 } 2297 }
2292 2298
2293 } // namespace testing 2299 } // namespace testing
2294 2300
2295 } // namespace about_flags 2301 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/gpu/compositor_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698