diff options
Diffstat (limited to 'src')
| -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 | |||
| 538 | hle/service/nvflinger/buffer_queue.cpp | 538 | hle/service/nvflinger/buffer_queue.cpp |
| 539 | hle/service/nvflinger/buffer_queue.h | 539 | hle/service/nvflinger/buffer_queue.h |
| 540 | hle/service/nvflinger/binder.h | 540 | hle/service/nvflinger/binder.h |
| 541 | hle/service/nvflinger/buffer_queue_defs.h | ||
| 541 | hle/service/nvflinger/buffer_transform_flags.h | 542 | hle/service/nvflinger/buffer_transform_flags.h |
| 542 | hle/service/nvflinger/consumer_listener.h | 543 | hle/service/nvflinger/consumer_listener.h |
| 543 | hle/service/nvflinger/nvflinger.cpp | 544 | 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 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-3.0-or-later | ||
| 2 | // Copyright 2021 yuzu Emulator Project | ||
| 3 | // Copyright 2014 The Android Open Source Project | ||
| 4 | // Parts of this implementation were base on: | ||
| 5 | // https://cs.android.com/android/platform/superproject/+/android-5.1.1_r38:frameworks/native/include/gui/BufferQueueDefs.h | ||
| 6 | |||
| 7 | #pragma once | ||
| 8 | |||
| 9 | #include <array> | ||
| 10 | |||
| 11 | #include "common/common_types.h" | ||
| 12 | #include "core/hle/service/nvflinger/buffer_slot.h" | ||
| 13 | |||
| 14 | namespace android::BufferQueueDefs { | ||
| 15 | |||
| 16 | // BufferQueue will keep track of at most this value of buffers. | ||
| 17 | constexpr s32 NUM_BUFFER_SLOTS = 64; | ||
| 18 | |||
| 19 | using SlotsType = std::array<BufferSlot, NUM_BUFFER_SLOTS>; | ||
| 20 | |||
| 21 | } // namespace android::BufferQueueDefs | ||