39 lines
1.8 KiB
Diff
39 lines
1.8 KiB
Diff
|
From: uazo <uazo@users.noreply.github.com>
|
||
|
Date: Tue, 14 Feb 2023 16:23:08 +0000
|
||
|
Subject: Evict the entire FrameTree like desktop
|
||
|
|
||
|
License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
|
||
|
---
|
||
|
components/viz/common/features.cc | 2 +-
|
||
|
content/common/features.cc | 4 ++--
|
||
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
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
|
||
|
@@ -233,7 +233,7 @@ BASE_FEATURE(kRendererAllocatesImages,
|
||
|
// evicts itself. This differs from Destkop platforms which evict the entire
|
||
|
// FrameTree along with the topmost viz::Surface. When this feature is enabled,
|
||
|
// Android will begin also evicting the entire FrameTree.
|
||
|
-BASE_FEATURE(kEvictSubtree, "EvictSubtree", base::FEATURE_ENABLED_BY_DEFAULT);
|
||
|
+BASE_FEATURE(kEvictSubtree, "EvictSubtree", base::FEATURE_ENABLED_BY_DEFAULT); // enabled by default
|
||
|
|
||
|
// If enabled, CompositorFrameSinkClient::OnBeginFrame is also treated as the
|
||
|
// DidReceiveCompositorFrameAck. Both in providing the Ack for the previous
|
||
|
diff --git a/content/common/features.cc b/content/common/features.cc
|
||
|
--- a/content/common/features.cc
|
||
|
+++ b/content/common/features.cc
|
||
|
@@ -241,8 +241,8 @@ BASE_FEATURE(kInMemoryCodeCache,
|
||
|
// frames. Otherwise only toplevel frames and OOPIF are handled, and other
|
||
|
// cases, e.g. PDF tiles are ignored. See https://crbug.com/1360351 for details.
|
||
|
BASE_FEATURE(kInnerFrameCompositorSurfaceEviction,
|
||
|
- "InnerFrameCompositorSurfaceEviction",
|
||
|
- base::FEATURE_ENABLED_BY_DEFAULT);
|
||
|
+ "InnerFrameCompositorSurfaceEviction", // guard this
|
||
|
+ base::FEATURE_ENABLED_BY_DEFAULT); // guard this
|
||
|
|
||
|
// Enable IOSurface based screen capturer.
|
||
|
#if BUILDFLAG(IS_MAC)
|
||
|
--
|
||
|
2.25.1
|