summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2021-11-11 18:32:50 -0800
committerGravatar bunnei2022-03-24 18:13:32 -0700
commitfd24d5a0a229fbcf1d96650a170ad64d9bb00651 (patch)
treedf4d9a19bc21671488c3bd5c09880c2dfd24284a /src/core
parenthle: nvflinger: Add android Status flags to its own header. (diff)
downloadyuzu-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')
-rw-r--r--src/core/CMakeLists.txt1
-rw-r--r--src/core/hle/service/nvflinger/window.h53
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
9namespace android {
10
11/// Attributes queryable with Query
12enum 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
30enum 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
39enum class NativeWindowScalingMode : s32 {
40 Freeze = 0,
41 ScaleToWindow = 1,
42 ScaleCrop = 2,
43 NoScaleCrop = 3,
44};
45
46/// Transform parameter for QueueBuffer
47enum class NativeWindowTransform : u32 {
48 None = 0x0,
49 InverseDisplay = 0x08,
50};
51DECLARE_ENUM_FLAG_OPERATORS(NativeWindowTransform);
52
53} // namespace android