summaryrefslogtreecommitdiffstats
path: root/gfx/angle/checkout/src/libGLESv2/egl_stubs_autogen.h
blob: 6d7d210d9d2cacc616194176861ebd9132f9d0f4 (plain)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from egl.xml.
//
// Copyright 2020 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// egl_stubs_autogen.h: Stubs for EGL entry points.

#ifndef LIBGLESV2_EGL_STUBS_AUTOGEN_H_
#define LIBGLESV2_EGL_STUBS_AUTOGEN_H_

#include <EGL/egl.h>
#include <EGL/eglext.h>

#include "common/PackedEGLEnums_autogen.h"

namespace gl
{
class Context;
}  // namespace gl

namespace egl
{
class AttributeMap;
class Device;
class Display;
class Image;
class Stream;
class Surface;
class Sync;
class Thread;
struct Config;

EGLBoolean BindAPI(Thread *thread, EGLenum api);
EGLBoolean BindTexImage(Thread *thread,
                        egl::Display *dpyPacked,
                        Surface *surfacePacked,
                        EGLint buffer);
EGLBoolean ChooseConfig(Thread *thread,
                        egl::Display *dpyPacked,
                        const AttributeMap &attrib_listPacked,
                        EGLConfig *configs,
                        EGLint config_size,
                        EGLint *num_config);
EGLint ClientWaitSync(Thread *thread,
                      egl::Display *dpyPacked,
                      Sync *syncPacked,
                      EGLint flags,
                      EGLTime timeout);
EGLBoolean CopyBuffers(Thread *thread,
                       egl::Display *dpyPacked,
                       Surface *surfacePacked,
                       EGLNativePixmapType target);
EGLContext CreateContext(Thread *thread,
                         egl::Display *dpyPacked,
                         Config *configPacked,
                         gl::Context *share_contextPacked,
                         const AttributeMap &attrib_listPacked);
EGLImage CreateImage(Thread *thread,
                     egl::Display *dpyPacked,
                     gl::Context *ctxPacked,
                     EGLenum target,
                     EGLClientBuffer buffer,
                     const AttributeMap &attrib_listPacked);
EGLSurface CreatePbufferFromClientBuffer(Thread *thread,
                                         egl::Display *dpyPacked,
                                         EGLenum buftype,
                                         EGLClientBuffer buffer,
                                         Config *configPacked,
                                         const AttributeMap &attrib_listPacked);
EGLSurface CreatePbufferSurface(Thread *thread,
                                egl::Display *dpyPacked,
                                Config *configPacked,
                                const AttributeMap &attrib_listPacked);
EGLSurface CreatePixmapSurface(Thread *thread,
                               egl::Display *dpyPacked,
                               Config *configPacked,
                               EGLNativePixmapType pixmap,
                               const AttributeMap &attrib_listPacked);
EGLSurface CreatePlatformPixmapSurface(Thread *thread,
                                       egl::Display *dpyPacked,
                                       Config *configPacked,
                                       void *native_pixmap,
                                       const AttributeMap &attrib_listPacked);
EGLSurface CreatePlatformWindowSurface(Thread *thread,
                                       egl::Display *dpyPacked,
                                       Config *configPacked,
                                       void *native_window,
                                       const AttributeMap &attrib_listPacked);
EGLSync CreateSync(Thread *thread,
                   egl::Display *dpyPacked,
                   EGLenum type,
                   const AttributeMap &attrib_listPacked);
EGLSurface CreateWindowSurface(Thread *thread,
                               egl::Display *dpyPacked,
                               Config *configPacked,
                               EGLNativeWindowType win,
                               const AttributeMap &attrib_listPacked);
EGLBoolean DestroyContext(Thread *thread, egl::Display *dpyPacked, gl::Context *ctxPacked);
EGLBoolean DestroyImage(Thread *thread, egl::Display *dpyPacked, Image *imagePacked);
EGLBoolean DestroySurface(Thread *thread, egl::Display *dpyPacked, Surface *surfacePacked);
EGLBoolean DestroySync(Thread *thread, egl::Display *dpyPacked, Sync *syncPacked);
EGLBoolean GetConfigAttrib(Thread *thread,
                           egl::Display *dpyPacked,
                           Config *configPacked,
                           EGLint attribute,
                           EGLint *value);
EGLBoolean GetConfigs(Thread *thread,
                      egl::Display *dpyPacked,
                      EGLConfig *configs,
                      EGLint config_size,
                      EGLint *num_config);
EGLContext GetCurrentContext(Thread *thread);
EGLDisplay GetCurrentDisplay(Thread *thread);
EGLSurface GetCurrentSurface(Thread *thread, EGLint readdraw);
EGLDisplay GetDisplay(Thread *thread, EGLNativeDisplayType display_id);
EGLint GetError(Thread *thread);
EGLDisplay GetPlatformDisplay(Thread *thread,
                              EGLenum platform,
                              void *native_display,
                              const AttributeMap &attrib_listPacked);
__eglMustCastToProperFunctionPointerType GetProcAddress(Thread *thread, const char *procname);
EGLBoolean GetSyncAttrib(Thread *thread,
                         egl::Display *dpyPacked,
                         Sync *syncPacked,
                         EGLint attribute,
                         EGLAttrib *value);
EGLBoolean Initialize(Thread *thread, egl::Display *dpyPacked, EGLint *major, EGLint *minor);
EGLBoolean MakeCurrent(Thread *thread,
                       egl::Display *dpyPacked,
                       Surface *drawPacked,
                       Surface *readPacked,
                       gl::Context *ctxPacked);
EGLenum QueryAPI(Thread *thread);
EGLBoolean QueryContext(Thread *thread,
                        egl::Display *dpyPacked,
                        gl::Context *ctxPacked,
                        EGLint attribute,
                        EGLint *value);
const char *QueryString(Thread *thread, egl::Display *dpyPacked, EGLint name);
EGLBoolean QuerySurface(Thread *thread,
                        egl::Display *dpyPacked,
                        Surface *surfacePacked,
                        EGLint attribute,
                        EGLint *value);
EGLBoolean ReleaseTexImage(Thread *thread,
                           egl::Display *dpyPacked,
                           Surface *surfacePacked,
                           EGLint buffer);
EGLBoolean ReleaseThread(Thread *thread);
EGLBoolean SurfaceAttrib(Thread *thread,
                         egl::Display *dpyPacked,
                         Surface *surfacePacked,
                         EGLint attribute,
                         EGLint value);
EGLBoolean SwapBuffers(Thread *thread, egl::Display *dpyPacked, Surface *surfacePacked);
EGLBoolean SwapInterval(Thread *thread, egl::Display *dpyPacked, EGLint interval);
EGLBoolean Terminate(Thread *thread, egl::Display *dpyPacked);
EGLBoolean WaitClient(Thread *thread);
EGLBoolean WaitGL(Thread *thread);
EGLBoolean WaitNative(Thread *thread, EGLint engine);
EGLBoolean WaitSync(Thread *thread, egl::Display *dpyPacked, Sync *syncPacked, EGLint flags);
}  // namespace egl
#endif  // LIBGLESV2_EGL_STUBS_AUTOGEN_H_