Revert-flags-remove-num-raster-threads.patch 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. From: csagan5 <32685696+csagan5@users.noreply.github.com>
  2. Date: Sat, 23 Jan 2021 17:47:21 +0100
  3. Subject: Revert "flags: remove num-raster-threads"
  4. This reverts commit 2a51528a1737e9038f7f96f29403032a6a845a25.
  5. ---
  6. chrome/browser/about_flags.cc | 12 ++++++++++++
  7. chrome/browser/flag-metadata.json | 5 +++++
  8. chrome/browser/flag_descriptions.cc | 8 ++++++++
  9. chrome/browser/flag_descriptions.h | 7 +++++++
  10. 4 files changed, 32 insertions(+)
  11. diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
  12. --- a/chrome/browser/about_flags.cc
  13. +++ b/chrome/browser/about_flags.cc
  14. @@ -300,6 +300,15 @@ const FeatureEntry::Choice kOverlayStrategiesChoices[] = {
  15. "single-fullscreen,single-on-top,underlay"},
  16. };
  17. +const FeatureEntry::Choice kNumRasterThreadsChoices[] = {
  18. + {flags_ui::kGenericExperimentChoiceDefault, "", ""},
  19. + {flag_descriptions::kNumRasterThreadsOne, switches::kNumRasterThreads, "1"},
  20. + {flag_descriptions::kNumRasterThreadsTwo, switches::kNumRasterThreads, "2"},
  21. + {flag_descriptions::kNumRasterThreadsThree, switches::kNumRasterThreads,
  22. + "3"},
  23. + {flag_descriptions::kNumRasterThreadsFour, switches::kNumRasterThreads,
  24. + "4"}};
  25. +
  26. const FeatureEntry::Choice kTouchTextSelectionStrategyChoices[] = {
  27. {flags_ui::kGenericExperimentChoiceDefault, "", ""},
  28. {flag_descriptions::kTouchSelectionStrategyCharacter,
  29. @@ -3364,6 +3373,9 @@ const FeatureEntry kFeatureEntries[] = {
  30. feature_engagement::kIPHDemoMode,
  31. feature_engagement::kIPHDemoModeChoiceVariations,
  32. "IPH_DemoMode")},
  33. + {"num-raster-threads", flag_descriptions::kNumRasterThreadsName,
  34. + flag_descriptions::kNumRasterThreadsDescription, kOsAll,
  35. + MULTI_VALUE_TYPE(kNumRasterThreadsChoices)},
  36. {"disable-threaded-scrolling", flag_descriptions::kThreadedScrollingName,
  37. flag_descriptions::kThreadedScrollingDescription, kOsAll,
  38. SINGLE_DISABLE_VALUE_TYPE(blink::switches::kDisableThreadedScrolling)},
  39. diff --git a/chrome/browser/flag-metadata.json b/chrome/browser/flag-metadata.json
  40. --- a/chrome/browser/flag-metadata.json
  41. +++ b/chrome/browser/flag-metadata.json
  42. @@ -3629,6 +3629,11 @@
  43. ],
  44. "expiry_milestone": 95
  45. },
  46. + {
  47. + "name": "num-raster-threads",
  48. + // "owners": [ "your-team" ],
  49. + "expiry_milestone": -1
  50. + },
  51. {
  52. "name": "minutes-delay-to-restore-gaia-cookies-if-deleted",
  53. "owners": ["fernandex", "chrome-signin-team"],
  54. diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
  55. --- a/chrome/browser/flag_descriptions.cc
  56. +++ b/chrome/browser/flag_descriptions.cc
  57. @@ -1629,6 +1629,14 @@ const char kUseMultiloginEndpointName[] = "Use Multilogin endpoint.";
  58. const char kUseMultiloginEndpointDescription[] =
  59. "Use Gaia OAuth multilogin for identity consistency.";
  60. +const char kNumRasterThreadsName[] = "Number of raster threads";
  61. +const char kNumRasterThreadsDescription[] =
  62. + "Specify the number of raster threads.";
  63. +const char kNumRasterThreadsOne[] = "1";
  64. +const char kNumRasterThreadsTwo[] = "2";
  65. +const char kNumRasterThreadsThree[] = "3";
  66. +const char kNumRasterThreadsFour[] = "4";
  67. +
  68. const char kOmniboxAdaptiveSuggestionsCountName[] =
  69. "Adaptive Omnibox Suggestions count";
  70. const char kOmniboxAdaptiveSuggestionsCountDescription[] =
  71. diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
  72. --- a/chrome/browser/flag_descriptions.h
  73. +++ b/chrome/browser/flag_descriptions.h
  74. @@ -966,6 +966,13 @@ extern const char kNotificationsSystemFlagDescription[];
  75. extern const char kUseMultiloginEndpointName[];
  76. extern const char kUseMultiloginEndpointDescription[];
  77. +extern const char kNumRasterThreadsName[];
  78. +extern const char kNumRasterThreadsDescription[];
  79. +extern const char kNumRasterThreadsOne[];
  80. +extern const char kNumRasterThreadsTwo[];
  81. +extern const char kNumRasterThreadsThree[];
  82. +extern const char kNumRasterThreadsFour[];
  83. +
  84. extern const char kOmniboxAdaptiveSuggestionsCountName[];
  85. extern const char kOmniboxAdaptiveSuggestionsCountDescription[];
  86. --
  87. 2.17.1