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

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

Issue 2945453002: color: Use base::Feature to control color correct rendering (Closed)
Patch Set: Make content shell only enable for layout tests (oops) Created 3 years, 6 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
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 const FeatureEntry::Choice kEnableGpuRasterizationChoices[] = { 382 const FeatureEntry::Choice kEnableGpuRasterizationChoices[] = {
383 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, 383 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
384 {flags_ui::kGenericExperimentChoiceEnabled, 384 {flags_ui::kGenericExperimentChoiceEnabled,
385 switches::kEnableGpuRasterization, ""}, 385 switches::kEnableGpuRasterization, ""},
386 {flags_ui::kGenericExperimentChoiceDisabled, 386 {flags_ui::kGenericExperimentChoiceDisabled,
387 switches::kDisableGpuRasterization, ""}, 387 switches::kDisableGpuRasterization, ""},
388 {flag_descriptions::kForceGpuRasterization, 388 {flag_descriptions::kForceGpuRasterization,
389 switches::kForceGpuRasterization, ""}, 389 switches::kForceGpuRasterization, ""},
390 }; 390 };
391 391
392 const FeatureEntry::Choice kColorCorrectRenderingChoices[] = {
393 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
394 {flags_ui::kGenericExperimentChoiceEnabled,
395 switches::kEnableColorCorrectRendering, ""},
396 {flags_ui::kGenericExperimentChoiceDisabled, "", ""},
397 };
398
399 const FeatureEntry::Choice kEnableWebGL2Choices[] = { 392 const FeatureEntry::Choice kEnableWebGL2Choices[] = {
400 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, 393 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
401 {flags_ui::kGenericExperimentChoiceEnabled, switches::kEnableES3APIs, ""}, 394 {flags_ui::kGenericExperimentChoiceEnabled, switches::kEnableES3APIs, ""},
402 {flags_ui::kGenericExperimentChoiceDisabled, switches::kDisableES3APIs, ""}, 395 {flags_ui::kGenericExperimentChoiceDisabled, switches::kDisableES3APIs, ""},
403 }; 396 };
404 397
405 #if defined(OS_CHROMEOS) 398 #if defined(OS_CHROMEOS)
406 const FeatureEntry::Choice kMemoryPressureThresholdChoices[] = { 399 const FeatureEntry::Choice kMemoryPressureThresholdChoices[] = {
407 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, 400 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
408 {flag_descriptions::kConservativeThresholds, 401 {flag_descriptions::kConservativeThresholds,
(...skipping 2532 matching lines...) Expand 10 before | Expand all | Expand 10 after
2941 #endif 2934 #endif
2942 2935
2943 {"omnibox-display-title-for-current-url", 2936 {"omnibox-display-title-for-current-url",
2944 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlName, 2937 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlName,
2945 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlDescription, 2938 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlDescription,
2946 kOsDesktop, FEATURE_VALUE_TYPE(omnibox::kDisplayTitleForCurrentUrl)}, 2939 kOsDesktop, FEATURE_VALUE_TYPE(omnibox::kDisplayTitleForCurrentUrl)},
2947 2940
2948 {"enable-color-correct-rendering", 2941 {"enable-color-correct-rendering",
2949 flag_descriptions::kColorCorrectRenderingName, 2942 flag_descriptions::kColorCorrectRenderingName,
2950 flag_descriptions::kColorCorrectRenderingDescription, kOsAll, 2943 flag_descriptions::kColorCorrectRenderingDescription, kOsAll,
2951 MULTI_VALUE_TYPE(kColorCorrectRenderingChoices)}, 2944 FEATURE_VALUE_TYPE(features::kColorCorrectRendering)},
2952 2945
2953 #if defined(OS_CHROMEOS) 2946 #if defined(OS_CHROMEOS)
2954 {"quick-unlock-pin-signin", flag_descriptions::kQuickUnlockPinSignin, 2947 {"quick-unlock-pin-signin", flag_descriptions::kQuickUnlockPinSignin,
2955 flag_descriptions::kQuickUnlockPinSigninDescription, kOsCrOS, 2948 flag_descriptions::kQuickUnlockPinSigninDescription, kOsCrOS,
2956 FEATURE_VALUE_TYPE(features::kQuickUnlockPinSignin)}, 2949 FEATURE_VALUE_TYPE(features::kQuickUnlockPinSignin)},
2957 #endif // OS_CHROMEOS 2950 #endif // OS_CHROMEOS
2958 2951
2959 #if defined(OS_ANDROID) 2952 #if defined(OS_ANDROID)
2960 {"enable-webnfc", flag_descriptions::kEnableWebNfcName, 2953 {"enable-webnfc", flag_descriptions::kEnableWebNfcName,
2961 flag_descriptions::kEnableWebNfcDescription, kOsAndroid, 2954 flag_descriptions::kEnableWebNfcDescription, kOsAndroid,
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
3312 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 3305 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
3313 3306
3314 const FeatureEntry* GetFeatureEntries(size_t* count) { 3307 const FeatureEntry* GetFeatureEntries(size_t* count) {
3315 *count = arraysize(kFeatureEntries); 3308 *count = arraysize(kFeatureEntries);
3316 return kFeatureEntries; 3309 return kFeatureEntries;
3317 } 3310 }
3318 3311
3319 } // namespace testing 3312 } // namespace testing
3320 3313
3321 } // namespace about_flags 3314 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698