forked from uazo/cromite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRevert-flags-remove-num-raster-threads.patch
41 lines (38 loc) · 1.4 KB
/
Revert-flags-remove-num-raster-threads.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: csagan5 <[email protected]>
Date: Sat, 23 Jan 2021 17:47:21 +0100
Subject: Revert "flags: remove num-raster-threads"
This reverts commit 2a51528a1737e9038f7f96f29403032a6a845a25.
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
---
...Revert-flags-remove-num-raster-threads.inc | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 cromite_flags/chrome/browser/about_flags_cc/Revert-flags-remove-num-raster-threads.inc
diff --git a/cromite_flags/chrome/browser/about_flags_cc/Revert-flags-remove-num-raster-threads.inc b/cromite_flags/chrome/browser/about_flags_cc/Revert-flags-remove-num-raster-threads.inc
new file mode 100644
--- /dev/null
+++ b/cromite_flags/chrome/browser/about_flags_cc/Revert-flags-remove-num-raster-threads.inc
@@ -0,0 +1,23 @@
+#if BUILDFLAG(IS_ANDROID)
+
+#ifdef FEATURE_PARAM_SECTION
+
+const FeatureEntry::Choice kNumRasterThreadsChoices[] = {
+ {flags_ui::kGenericExperimentChoiceDefault, "", ""},
+ {"1", cc::switches::kNumRasterThreads, "1"},
+ {"2", cc::switches::kNumRasterThreads, "2"},
+ {"3", cc::switches::kNumRasterThreads, "3"},
+ {"4", cc::switches::kNumRasterThreads, "4"}};
+
+#endif
+
+#ifdef FLAG_SECTION
+
+ {"num-raster-threads",
+ "Number of raster threads",
+ "Specify the number of raster threads.", kOsAll,
+ MULTI_VALUE_TYPE(kNumRasterThreadsChoices)},
+
+#endif
+
+#endif
--