mirror of
https://github.com/ponces/treble_aosp.git
synced 2025-02-16 14:55:50 +00:00
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From a84523098370e545cbf7c8bc29b4a5812c91a624 Mon Sep 17 00:00:00 2001
|
|
From: Andy CrossGate Yan <GeForce8800Ultra@gmail.com>
|
|
Date: Sun, 26 May 2024 21:34:17 +0800
|
|
Subject: [PATCH 13/14] SurfaceFlinger: Disable SF HWC backpressure
|
|
|
|
---
|
|
services/surfaceflinger/SurfaceFlinger.cpp | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
|
|
index cf5f55d7bd..ac5567bfe1 100644
|
|
--- a/services/surfaceflinger/SurfaceFlinger.cpp
|
|
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
|
|
@@ -2547,7 +2547,8 @@ bool SurfaceFlinger::commit(PhysicalDisplayId pacesetterId,
|
|
}
|
|
}
|
|
|
|
- if (pacesetterFrameTarget.isFramePending()) {
|
|
+ if (base::GetBoolProperty("persist.sys.phh.enable_sf_hwc_backpressure"s, true)
|
|
+ && pacesetterFrameTarget.isFramePending()) {
|
|
if (mBackpressureGpuComposition || pacesetterFrameTarget.didMissHwcFrame()) {
|
|
if (FlagManager::getInstance().vrr_config()) {
|
|
mScheduler->getVsyncSchedule()->getTracker().onFrameMissed(
|
|
--
|
|
2.34.1
|
|
|