diff options
| author | 2024-09-20 17:03:13 +0000 | |
|---|---|---|
| committer | 2024-09-20 17:03:13 +0000 | |
| commit | f19f85ed5d57db70dd2afe46cf41e4c0ba4254c4 (patch) | |
| tree | c7b4d6362689808cf690da473c1e41c9b3b8fdc8 /libs/gui/BLASTBufferQueue.cpp | |
| parent | efccb35ee1503078b95d852d07de40ca1d1ea3ad (diff) | |
| parent | 1050b6cefa5564394fc052e6fc94248b164379c6 (diff) | |
Merge "Add missing IProducerListener callbacks to BLASTBufferQueue" into main am: 1050b6cefa
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3269729
Change-Id: I03a1795163dd6022092ea2efb10c74a4f32fb82c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
| -rw-r--r-- | libs/gui/BLASTBufferQueue.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/gui/BLASTBufferQueue.cpp b/libs/gui/BLASTBufferQueue.cpp index 739c3c2a41..044170c378 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -1096,6 +1096,17 @@ public: AsyncWorker::getInstance().post( [listener = mListener, slots = slots]() { listener->onBuffersDiscarded(slots); }); } + + void onBufferDetached(int slot) override { + AsyncWorker::getInstance().post( + [listener = mListener, slot = slot]() { listener->onBufferDetached(slot); }); + } + +#if COM_ANDROID_GRAPHICS_LIBGUI_FLAGS(BQ_CONSUMER_ATTACH_CALLBACK) + void onBufferAttached() override { + AsyncWorker::getInstance().post([listener = mListener]() { listener->onBufferAttached(); }); + } +#endif }; // Extends the BufferQueueProducer to create a wrapper around the listener so the listener calls |