summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Carr <racarr@google.com>2022-06-28 00:20:24 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-06-28 00:20:24 +0000
commit4ac285c63e05445167c9d0ffdb499794201c4422 (patch)
tree2294ed17c4233b67ce2bdc608c03283b5832468a
parent307c410f95b70b8b116e1ce19117d47e8e341fc6 (diff)
parentb645049d01ef72653dc8fc363b9af18f4678f1e8 (diff)
downloadnative-4ac285c63e05445167c9d0ffdb499794201c4422.tar.gz
Merge "SurfaceFlinger: Disable early release optimization" into tm-dev
-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,