forked from notaz/mesa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnativewindow_stub.cpp
104 lines (87 loc) · 1.74 KB
/
nativewindow_stub.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#include <vndk/window.h>
extern "C" {
AHardwareBuffer *
ANativeWindowBuffer_getHardwareBuffer(ANativeWindowBuffer *anwb)
{
return nullptr;
}
void
AHardwareBuffer_acquire(AHardwareBuffer *buffer)
{
}
void
AHardwareBuffer_release(AHardwareBuffer *buffer)
{
}
void
AHardwareBuffer_describe(const AHardwareBuffer *buffer,
AHardwareBuffer_Desc *outDesc)
{
}
int
AHardwareBuffer_allocate(const AHardwareBuffer_Desc *desc,
AHardwareBuffer **outBuffer)
{
return 0;
}
const native_handle_t *
AHardwareBuffer_getNativeHandle(const AHardwareBuffer *buffer)
{
return NULL;
}
void
ANativeWindow_acquire(ANativeWindow *window)
{
}
void
ANativeWindow_release(ANativeWindow *window)
{
}
int32_t
ANativeWindow_getFormat(ANativeWindow *window)
{
return 0;
}
int
ANativeWindow_setSwapInterval(ANativeWindow *window, int interval)
{
return 0;
}
int
ANativeWindow_query(const ANativeWindow *window,
ANativeWindowQuery query,
int *value)
{
return 0;
}
int
ANativeWindow_dequeueBuffer(ANativeWindow *window,
ANativeWindowBuffer **buffer,
int *fenceFd)
{
return 0;
}
int
ANativeWindow_queueBuffer(ANativeWindow *window,
ANativeWindowBuffer *buffer,
int fenceFd)
{
return 0;
}
int ANativeWindow_cancelBuffer(ANativeWindow* window,
ANativeWindowBuffer* buffer,
int fenceFd) {
return 0;
}
int
ANativeWindow_setUsage(ANativeWindow *window, uint64_t usage)
{
return 0;
}
int
ANativeWindow_setSharedBufferMode(ANativeWindow *window,
bool sharedBufferMode)
{
return 0;
}
}