diff options
author | Liam <byteslice@airmail.cc> | 2023-02-19 21:05:34 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-03-01 16:39:49 +0100 |
commit | 809148e1a58296ab88c9d3c6719d345f35ce0279 (patch) | |
tree | 8db1dcd33eabde75ca55ceafc6fb380d5f007e50 /src/core/hle/service/nvflinger/buffer_queue_consumer.h | |
parent | service: move hle_ipc from kernel (diff) | |
download | yuzu-809148e1a58296ab88c9d3c6719d345f35ce0279.tar yuzu-809148e1a58296ab88c9d3c6719d345f35ce0279.tar.gz yuzu-809148e1a58296ab88c9d3c6719d345f35ce0279.tar.bz2 yuzu-809148e1a58296ab88c9d3c6719d345f35ce0279.tar.lz yuzu-809148e1a58296ab88c9d3c6719d345f35ce0279.tar.xz yuzu-809148e1a58296ab88c9d3c6719d345f35ce0279.tar.zst yuzu-809148e1a58296ab88c9d3c6719d345f35ce0279.zip |
Diffstat (limited to 'src/core/hle/service/nvflinger/buffer_queue_consumer.h')
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue_consumer.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/core/hle/service/nvflinger/buffer_queue_consumer.h b/src/core/hle/service/nvflinger/buffer_queue_consumer.h deleted file mode 100644 index 4ec06ca13..000000000 --- a/src/core/hle/service/nvflinger/buffer_queue_consumer.h +++ /dev/null @@ -1,43 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project -// SPDX-FileCopyrightText: Copyright 2014 The Android Open Source Project -// SPDX-License-Identifier: GPL-3.0-or-later -// Parts of this implementation were based on: -// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferQueueConsumer.h - -#pragma once - -#include <chrono> -#include <memory> - -#include "common/common_types.h" -#include "core/hle/service/nvflinger/buffer_queue_defs.h" -#include "core/hle/service/nvflinger/status.h" - -namespace Service::Nvidia::NvCore { -class NvMap; -} // namespace Service::Nvidia::NvCore - -namespace Service::android { - -class BufferItem; -class BufferQueueCore; -class IConsumerListener; - -class BufferQueueConsumer final { -public: - explicit BufferQueueConsumer(std::shared_ptr<BufferQueueCore> core_, - Service::Nvidia::NvCore::NvMap& nvmap_); - ~BufferQueueConsumer(); - - Status AcquireBuffer(BufferItem* out_buffer, std::chrono::nanoseconds expected_present); - Status ReleaseBuffer(s32 slot, u64 frame_number, const Fence& release_fence); - Status Connect(std::shared_ptr<IConsumerListener> consumer_listener, bool controlled_by_app); - Status GetReleasedBuffers(u64* out_slot_mask); - -private: - std::shared_ptr<BufferQueueCore> core; - BufferQueueDefs::SlotsType& slots; - Service::Nvidia::NvCore::NvMap& nvmap; -}; - -} // namespace Service::android |