diff options
| author | 2021-11-11 18:32:50 -0800 | |
|---|---|---|
| committer | 2022-03-24 18:13:32 -0700 | |
| commit | fd24d5a0a229fbcf1d96650a170ad64d9bb00651 (patch) | |
| tree | df4d9a19bc21671488c3bd5c09880c2dfd24284a /src/core/hle | |
| 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/core/hle')
| -rw-r--r-- | src/core/hle/service/nvflinger/window.h | 53 |
1 files changed, 53 insertions, 0 deletions
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 | ||