diff options
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 c65eafa541..f5b3618d2a 100644 --- a/libs/gui/BLASTBufferQueue.cpp +++ b/libs/gui/BLASTBufferQueue.cpp @@ -1135,6 +1135,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  |