/
chromium-81-enable-gpu-features.patch
27 lines (27 loc) · 1.53 KB
/
chromium-81-enable-gpu-features.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
diff -up chromium-89.0.4389.47/gpu/config/gpu_finch_features.cc.35~ chromium-89.0.4389.47/gpu/config/gpu_finch_features.cc
--- chromium-89.0.4389.47/gpu/config/gpu_finch_features.cc.35~ 2021-02-12 13:42:27.193118296 +0100
+++ chromium-89.0.4389.47/gpu/config/gpu_finch_features.cc 2021-02-12 13:43:19.683803909 +0100
@@ -78,11 +78,12 @@ const base::FeatureParam<std::string> kL
// Enable GPU Rasterization by default. This can still be overridden by
// --enable-gpu-rasterization or --disable-gpu-rasterization.
// DefaultEnableGpuRasterization has launched on Mac, Windows, ChromeOS, and
-// Android.
+// Android. And of course it works on Linux too, just because Google hates
+// Linux doesn't mean we have to.
const base::Feature kDefaultEnableGpuRasterization{
"DefaultEnableGpuRasterization",
#if defined(OS_MAC) || defined(OS_WIN) || BUILDFLAG(IS_CHROMEOS_ASH) || \
- defined(OS_ANDROID) || defined(OS_FUCHSIA)
+ defined(OS_ANDROID) || defined(OS_FUCHSIA) || defined(OS_LINUX)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
@@ -108,7 +109,7 @@ const base::Feature kDirectCompositionUs
// Use ThreadPriority::DISPLAY for GPU main, viz compositor and IO threads.
const base::Feature kGpuUseDisplayThreadPriority{
"GpuUseDisplayThreadPriority",
-#if defined(OS_ANDROID) || BUILDFLAG(IS_CHROMEOS_ASH) || defined(OS_WIN)
+#if defined(OS_ANDROID) || BUILDFLAG(IS_CHROMEOS_ASH) || defined(OS_WIN) || defined(OS_LINUX)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT