diff options
| author | 2021-11-11 18:32:50 -0800 | |
|---|---|---|
| committer | 2022-03-24 18:13:32 -0700 | |
| commit | fd24d5a0a229fbcf1d96650a170ad64d9bb00651 (patch) | |
| tree | df4d9a19bc21671488c3bd5c09880c2dfd24284a /src | |
| parent | hle: nvflinger: Add android Status flags to its own header. (diff) | |
| download | yuzu-fd24d5a0a229fbcf1d96650a170ad64d9bb00651.tar.gz yuzu-fd24d5a0a229fbcf1d96650a170ad64d9bb00651.tar.xz yuzu-fd24d5a0a229fbcf1d96650a170ad64d9bb00651.zip | |
hle: nvflinger: Add android window enumerations to its own header.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/core/hle/service/nvflinger/window.h | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index c8c3e7f7f..bf1a9490c 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -545,6 +545,7 @@ add_library(core STATIC | |||
| 545 | hle/service/nvflinger/ui/fence.h | 545 | hle/service/nvflinger/ui/fence.h |
| 546 | hle/service/nvflinger/ui/graphic_buffer.h | 546 | hle/service/nvflinger/ui/graphic_buffer.h |
| 547 | hle/service/nvflinger/ui/rect.h | 547 | hle/service/nvflinger/ui/rect.h |
| 548 | hle/service/nvflinger/window.h | ||
| 548 | hle/service/olsc/olsc.cpp | 549 | hle/service/olsc/olsc.cpp |
| 549 | hle/service/olsc/olsc.h | 550 | hle/service/olsc/olsc.h |
| 550 | hle/service/pcie/pcie.cpp | 551 | hle/service/pcie/pcie.cpp |
diff --git a/src/core/hle/service/nvflinger/window.h b/src/core/hle/service/nvflinger/window.h new file mode 100644 index 000000000..17f36da20 --- /dev/null +++ b/src/core/hle/service/nvflinger/window.h | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-3.0-or-later | ||
| 2 | // Copyright 2021 yuzu Emulator Project | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "common/common_funcs.h" | ||
| 7 | #include "common/common_types.h" | ||
| 8 | |||
| 9 | namespace android { | ||
| 10 | |||
| 11 | /// Attributes queryable with Query | ||
| 12 | enum class NativeWindow : s32 { | ||
| 13 | Width = 0, | ||
| 14 | Height = 1, | ||
| 15 | Format = 2, | ||
| 16 | MinUndequeedBuffers = 3, | ||
| 17 | QueuesToWindowComposer = 4, | ||
| 18 | ConcreteType = 5, | ||
| 19 | DefaultWidth = 6, | ||
| 20 | DefaultHeight = 7, | ||
| 21 | TransformHint = 8, | ||
| 22 | ConsumerRunningBehind = 9, | ||
| 23 | ConsumerUsageBits = 10, | ||
| 24 | StickyTransform = 11, | ||
| 25 | DefaultDataSpace = 12, | ||
| 26 | BufferAge = 13, | ||
| 27 | }; | ||
| 28 | |||
| 29 | /// Parameter for Connect/Disconnect | ||
| 30 | enum class NativeWindowApi : s32 { | ||
| 31 | NoConnectedApi = 0, | ||
| 32 | Egl = 1, | ||
| 33 | Cpu = 2, | ||
| 34 | Media = 3, | ||
| 35 | Camera = 4, | ||
| 36 | }; | ||
| 37 | |||
| 38 | /// Scaling mode parameter for QueueBuffer | ||
| 39 | enum class NativeWindowScalingMode : s32 { | ||
| 40 | Freeze = 0, | ||
| 41 | ScaleToWindow = 1, | ||
| 42 | ScaleCrop = 2, | ||
| 43 | NoScaleCrop = 3, | ||
| 44 | }; | ||
| 45 | |||
| 46 | /// Transform parameter for QueueBuffer | ||
| 47 | enum class NativeWindowTransform : u32 { | ||
| 48 | None = 0x0, | ||
| 49 | InverseDisplay = 0x08, | ||
| 50 | }; | ||
| 51 | DECLARE_ENUM_FLAG_OPERATORS(NativeWindowTransform); | ||
| 52 | |||
| 53 | } // namespace android | ||