diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-11-18 02:41:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-18 02:41:23 +0100 |
commit | 6c64d5aff29c004fbc6c7fd4657e8868144d5283 (patch) | |
tree | 5c283caec0d5f680b8d609b1375259a5ae5a5a3d /src/core/hle/service/nvnflinger/consumer_base.h | |
parent | Merge pull request #12055 from german77/activate (diff) | |
parent | nvnflinger: implement consumer abandonment (diff) | |
download | yuzu-6c64d5aff29c004fbc6c7fd4657e8868144d5283.tar yuzu-6c64d5aff29c004fbc6c7fd4657e8868144d5283.tar.gz yuzu-6c64d5aff29c004fbc6c7fd4657e8868144d5283.tar.bz2 yuzu-6c64d5aff29c004fbc6c7fd4657e8868144d5283.tar.lz yuzu-6c64d5aff29c004fbc6c7fd4657e8868144d5283.tar.xz yuzu-6c64d5aff29c004fbc6c7fd4657e8868144d5283.tar.zst yuzu-6c64d5aff29c004fbc6c7fd4657e8868144d5283.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvnflinger/consumer_base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/nvnflinger/consumer_base.h b/src/core/hle/service/nvnflinger/consumer_base.h index 264829414..ea3e9e97a 100644 --- a/src/core/hle/service/nvnflinger/consumer_base.h +++ b/src/core/hle/service/nvnflinger/consumer_base.h @@ -24,6 +24,7 @@ class BufferQueueConsumer; class ConsumerBase : public IConsumerListener, public std::enable_shared_from_this<ConsumerBase> { public: void Connect(bool controlled_by_app); + void Abandon(); protected: explicit ConsumerBase(std::unique_ptr<BufferQueueConsumer> consumer_); @@ -34,6 +35,7 @@ protected: void OnBuffersReleased() override; void OnSidebandStreamChanged() override; + void AbandonLocked(); void FreeBufferLocked(s32 slot_index); Status AcquireBufferLocked(BufferItem* item, std::chrono::nanoseconds present_when); Status ReleaseBufferLocked(s32 slot, const std::shared_ptr<GraphicBuffer>& graphic_buffer); |