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. @@ -304,6 +304,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. @@ -3536,6 +3545,9 @@ const FeatureEntry kFeatureEntries[] = {
  30. {"enable-use-zoom-for-dsf", flag_descriptions::kEnableUseZoomForDsfName,
  31. flag_descriptions::kEnableUseZoomForDsfDescription, kOsAll,
  32. MULTI_VALUE_TYPE(kEnableUseZoomForDSFChoices)},
  33. + {"num-raster-threads", flag_descriptions::kNumRasterThreadsName,
  34. + flag_descriptions::kNumRasterThreadsDescription, kOsAll,
  35. + MULTI_VALUE_TYPE(kNumRasterThreadsChoices)},
  36. {"enable-subresource-redirect",
  37. flag_descriptions::kEnableSubresourceRedirectName,
  38. flag_descriptions::kEnableSubresourceRedirectDescription, kOsAll,
  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. @@ -3828,6 +3828,11 @@
  43. "owners": [ "carlosil" ],
  44. "expiry_milestone": 92
  45. },
  46. + {
  47. + "name": "num-raster-threads",
  48. + // "owners": [ "your-team" ],
  49. + "expiry_milestone": -1
  50. + },
  51. {
  52. "name": "mobile-google-srp",
  53. "owners": [ "gambard", "bling-flags@google.com" ],
  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. @@ -1666,6 +1666,14 @@ const char kOmniboxActiveSearchEnginesDescription[] =
  58. "Enables a 'Your Search Engines' section on "
  59. "chrome://settings/searchEngines.";
  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. @@ -971,6 +971,13 @@ extern const char kNotificationsSystemFlagDescription[];
  75. extern const char kOmniboxActiveSearchEnginesName[];
  76. extern const char kOmniboxActiveSearchEnginesDescription[];
  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