diff options
author | bunnei <bunneidev@gmail.com> | 2021-11-12 03:36:03 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-03-25 02:13:32 +0100 |
commit | a454670de5c02522af68b66cb4953b4ae4ac13f2 (patch) | |
tree | 5bc8cae94abd6e69d6f7089ea6529d430ba7877f /src/core | |
parent | hle: nvflinger: Add IBinder interface. (diff) | |
download | yuzu-a454670de5c02522af68b66cb4953b4ae4ac13f2.tar yuzu-a454670de5c02522af68b66cb4953b4ae4ac13f2.tar.gz yuzu-a454670de5c02522af68b66cb4953b4ae4ac13f2.tar.bz2 yuzu-a454670de5c02522af68b66cb4953b4ae4ac13f2.tar.lz yuzu-a454670de5c02522af68b66cb4953b4ae4ac13f2.tar.xz yuzu-a454670de5c02522af68b66cb4953b4ae4ac13f2.tar.zst yuzu-a454670de5c02522af68b66cb4953b4ae4ac13f2.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/core/hle/service/nvflinger/buffer_queue_defs.h | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index b8fdcbd1f..d9b94b480 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -538,6 +538,7 @@ add_library(core STATIC hle/service/nvflinger/buffer_queue.cpp hle/service/nvflinger/buffer_queue.h hle/service/nvflinger/binder.h + hle/service/nvflinger/buffer_queue_defs.h hle/service/nvflinger/buffer_transform_flags.h hle/service/nvflinger/consumer_listener.h hle/service/nvflinger/nvflinger.cpp diff --git a/src/core/hle/service/nvflinger/buffer_queue_defs.h b/src/core/hle/service/nvflinger/buffer_queue_defs.h new file mode 100644 index 000000000..cea09e044 --- /dev/null +++ b/src/core/hle/service/nvflinger/buffer_queue_defs.h @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright 2021 yuzu Emulator Project +// Copyright 2014 The Android Open Source Project +// Parts of this implementation were base on: +// https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferQueueDefs.h + +#pragma once + +#include <array> + +#include "common/common_types.h" +#include "core/hle/service/nvflinger/buffer_slot.h" + +namespace android::BufferQueueDefs { + +// BufferQueue will keep track of at most this value of buffers. +constexpr s32 NUM_BUFFER_SLOTS = 64; + +using SlotsType = std::array<BufferSlot, NUM_BUFFER_SLOTS>; + +} // namespace android::BufferQueueDefs |