summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-28 01:29:33 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-06-28 01:29:33 +0000
commit583dd3a83a7a969dd765b41c494468145bd1b4d9 (patch)
tree2294ed17c4233b67ce2bdc608c03283b5832468a
parent39a40beefe484fc1a295da4b1ffebbc00e53792d (diff)
parentdb06ecf8ff98d9e161b1876fb3af828fff79ae12 (diff)
downloadnative-583dd3a83a7a969dd765b41c494468145bd1b4d9.tar.gz
Change-Id: Ieccad3a1ea9fd1e658a4500e2c069347e9385b8c
-rw-r--r--services/surfaceflinger/BufferStateLayer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/surfaceflinger/BufferStateLayer.cpp b/services/surfaceflinger/BufferStateLayer.cpp
index fecf5ae059..3875f151cb 100644
--- a/services/surfaceflinger/BufferStateLayer.cpp
+++ b/services/surfaceflinger/BufferStateLayer.cpp
@@ -34,6 +34,8 @@
#include "FrameTracer/FrameTracer.h"
#include "TimeStats/TimeStats.h"
+#define EARLY_RELEASE_ENABLED false
+
namespace android {
using PresentState = frametimeline::SurfaceFrame::PresentState;
@@ -373,7 +375,7 @@ bool BufferStateLayer::setBuffer(std::shared_ptr<renderengine::ExternalTexture>&
addSurfaceFrameDroppedForBuffer(mDrawingState.bufferSurfaceFrameTX);
mDrawingState.bufferSurfaceFrameTX.reset();
}
- } else if (mLastClientCompositionFence != nullptr) {
+ } else if (EARLY_RELEASE_ENABLED && mLastClientCompositionFence != nullptr) {
callReleaseBufferCallback(mDrawingState.releaseBufferListener,
mDrawingState.buffer->getBuffer(), mDrawingState.frameNumber,
mLastClientCompositionFence,