summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/BufferStateLayer.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2021-04-22 03:34:33 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-04-22 03:34:33 +0000
commit82f6e7f825e649a75bc67057e37f731fdd1b13c9 (patch)
treee56cdbb5cf64d4a3a7b1dc2c4b5a95434844e77a /services/surfaceflinger/BufferStateLayer.cpp
parentaf3a22e30f36ed69f52bd8282dcebe5620c19a7a (diff)
parentfc46c1e6e58ff5acdc72feea409e4aa03f978be9 (diff)
Merge "Introduce ASurfaceTransaction_setOnCommit api" into sc-dev
Diffstat (limited to 'services/surfaceflinger/BufferStateLayer.cpp')
-rw-r--r--services/surfaceflinger/BufferStateLayer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/surfaceflinger/BufferStateLayer.cpp b/services/surfaceflinger/BufferStateLayer.cpp
index a2915c903f..7a5b20d78e 100644
--- a/services/surfaceflinger/BufferStateLayer.cpp
+++ b/services/surfaceflinger/BufferStateLayer.cpp
@@ -674,6 +674,11 @@ status_t BufferStateLayer::updateTexImage(bool& /*recomputeVisibleRegions*/, nse
latchTime);
}
+ std::deque<sp<CallbackHandle>> remainingHandles;
+ mFlinger->getTransactionCallbackInvoker()
+ .finalizeOnCommitCallbackHandles(mDrawingState.callbackHandles, remainingHandles);
+ mDrawingState.callbackHandles = remainingHandles;
+
mCurrentStateModified = false;
return NO_ERROR;