commit | 86c80e36c3dc4994a8c24a096cd8f83fec739eb9 | [log] [tgz] |
---|---|---|
author | Huihong Luo <huisinro@google.com> | Wed Jun 16 15:41:07 2021 -0700 |
committer | Huihong Luo <huisinro@google.com> | Mon Jun 28 15:52:12 2021 -0700 |
tree | 396869f0b3288d9903411eec61db57768024fdbf | |
parent | 076276f7b8b5e0501a9f96e564d655020128dc31 [diff] [blame] |
Re-introduce debug.sf.latch_unsignaled This pretty much reverts this commit: Ia453eaf895554adbb2fa9c11c2bc8609e1037ea5. Some devices may find this helpful to improve performance, but there is a risk of pipeline stall from misbehaving apps. Bug: 173694115 Test: manual Merged-In: I48c3095061dc106fa08d36b8ef17eccb04fb6eb1 Change-Id: I48c3095061dc106fa08d36b8ef17eccb04fb6eb1
diff --git a/services/surfaceflinger/BufferStateLayer.cpp b/services/surfaceflinger/BufferStateLayer.cpp index 2a49a0a..645e883 100644 --- a/services/surfaceflinger/BufferStateLayer.cpp +++ b/services/surfaceflinger/BufferStateLayer.cpp
@@ -635,6 +635,10 @@ // Interface implementation for BufferLayer // ----------------------------------------------------------------------- bool BufferStateLayer::fenceHasSignaled() const { + if (SurfaceFlinger::enableLatchUnsignaled) { + return true; + } + const bool fenceSignaled = getDrawingState().acquireFence->getStatus() == Fence::Status::Signaled; if (!fenceSignaled) {