40 lines
1.8 KiB
Diff
40 lines
1.8 KiB
Diff
From: uazo <uazo@users.noreply.github.com>
|
|
Date: Wed, 23 Aug 2023 13:49:19 +0000
|
|
Subject: Enable Android Dynamic Performance Framework
|
|
|
|
License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
|
|
---
|
|
chrome/version.gni | 2 +-
|
|
components/viz/common/features.cc | 5 +++--
|
|
2 files changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/chrome/version.gni b/chrome/version.gni
|
|
--- a/chrome/version.gni
|
|
+++ b/chrome/version.gni
|
|
@@ -76,7 +76,7 @@ if (is_mac) {
|
|
"trichrome_64_version_code = \"@TRICHROME_64_VERSION_CODE@\" "
|
|
_version_dictionary_template +=
|
|
"trichrome_auto_64_version_code = \"@TRICHROME_AUTO_64_VERSION_CODE@\" "
|
|
- if (target_cpu == "arm64") {
|
|
+ if (target_cpu == "arm64" || target_cpu == "x64") {
|
|
_version_dictionary_template += "trichrome_64_32_high_version_code = \"@TRICHROME_64_32_HIGH_VERSION_CODE@\" "
|
|
_version_dictionary_template += "trichrome_auto_64_32_high_version_code = \"@TRICHROME_AUTO_64_32_HIGH_VERSION_CODE@\" "
|
|
}
|
|
diff --git a/components/viz/common/features.cc b/components/viz/common/features.cc
|
|
--- a/components/viz/common/features.cc
|
|
+++ b/components/viz/common/features.cc
|
|
@@ -294,9 +294,10 @@ BASE_FEATURE(kDelegateTransforms,
|
|
|
|
// If enabled, Chrome includes the Renderer Main thread(s) into the
|
|
// ADPF(Android Dynamic Performance Framework) hint session.
|
|
+// see https://source.chromium.org/chromium/chromium/src/+/e7507d15614ac7f499fb89086b3a09772fa8deb4
|
|
BASE_FEATURE(kEnableADPFRendererMain,
|
|
- "EnableADPFRendererMain",
|
|
- base::FEATURE_DISABLED_BY_DEFAULT);
|
|
+ "EnableADPFRendererMain", // enabled
|
|
+ base::FEATURE_ENABLED_BY_DEFAULT); // by default
|
|
|
|
// If enabled, Chrome verifies that Renderer threads do not belong to the
|
|
// Browser process asynchronously via a mojo call to the Browser before
|
|
--
|