Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: include/EGL/eglplatform.h

Issue 608893002: Remove headers for CL, EGL, GLES2, KHR, VG (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/mesa/
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/EGL/eglmesaext.h ('k') | include/GLES2/gl2.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef __eglplatform_h_
2 #define __eglplatform_h_
3
4 /*
5 ** Copyright (c) 2007-2009 The Khronos Group Inc.
6 **
7 ** Permission is hereby granted, free of charge, to any person obtaining a
8 ** copy of this software and/or associated documentation files (the
9 ** "Materials"), to deal in the Materials without restriction, including
10 ** without limitation the rights to use, copy, modify, merge, publish,
11 ** distribute, sublicense, and/or sell copies of the Materials, and to
12 ** permit persons to whom the Materials are furnished to do so, subject to
13 ** the following conditions:
14 **
15 ** The above copyright notice and this permission notice shall be included
16 ** in all copies or substantial portions of the Materials.
17 **
18 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
25 */
26
27 /* Platform-specific types and definitions for egl.h
28 * $Revision: 12306 $ on $Date: 2010-08-25 09:51:28 -0700 (Wed, 25 Aug 2010) $
29 *
30 * Adopters may modify khrplatform.h and this file to suit their platform.
31 * You are encouraged to submit all modifications to the Khronos group so that
32 * they can be included in future versions of this file. Please submit changes
33 * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
34 * by filing a bug against product "EGL" component "Registry".
35 */
36
37 #include <KHR/khrplatform.h>
38
39 /* Macros used in EGL function prototype declarations.
40 *
41 * EGL functions should be prototyped as:
42 *
43 * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
44 * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
45 *
46 * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
47 */
48
49 #ifndef EGLAPI
50 #define EGLAPI KHRONOS_APICALL
51 #endif
52
53 #ifndef EGLAPIENTRY
54 #define EGLAPIENTRY KHRONOS_APIENTRY
55 #endif
56 #define EGLAPIENTRYP EGLAPIENTRY*
57
58 /* The types NativeDisplayType, NativeWindowType, and NativePixmapType
59 * are aliases of window-system-dependent types, such as X Display * or
60 * Windows Device Context. They must be defined in platform-specific
61 * code below. The EGL-prefixed versions of Native*Type are the same
62 * types, renamed in EGL 1.3 so all types in the API start with "EGL".
63 *
64 * Khronos STRONGLY RECOMMENDS that you use the default definitions
65 * provided below, since these changes affect both binary and source
66 * portability of applications using EGL running on different EGL
67 * implementations.
68 */
69
70 #if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__S CITECH_SNAP__) /* Win32 and WinCE */
71 #ifndef WIN32_LEAN_AND_MEAN
72 #define WIN32_LEAN_AND_MEAN 1
73 #endif
74 #include <windows.h>
75
76 typedef HDC EGLNativeDisplayType;
77 typedef HBITMAP EGLNativePixmapType;
78 typedef HWND EGLNativeWindowType;
79
80 #elif defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */
81
82 typedef int EGLNativeDisplayType;
83 typedef void *EGLNativeWindowType;
84 typedef void *EGLNativePixmapType;
85
86 #elif defined(WL_EGL_PLATFORM)
87
88 typedef struct wl_display *EGLNativeDisplayType;
89 typedef struct wl_egl_pixmap *EGLNativePixmapType;
90 typedef struct wl_egl_window *EGLNativeWindowType;
91
92 #elif defined(__GBM__)
93
94 typedef struct gbm_device *EGLNativeDisplayType;
95 typedef struct gbm_bo *EGLNativePixmapType;
96 typedef void *EGLNativeWindowType;
97
98 #elif defined(ANDROID) /* Android */
99
100 struct ANativeWindow;
101 struct egl_native_pixmap_t;
102
103 typedef struct ANativeWindow *EGLNativeWindowType;
104 typedef struct egl_native_pixmap_t *EGLNativePixmapType;
105 typedef void *EGLNativeDisplayType;
106
107 #elif defined(__unix__)
108
109 #ifdef MESA_EGL_NO_X11_HEADERS
110
111 typedef void *EGLNativeDisplayType;
112 typedef khronos_uint32_t EGLNativePixmapType;
113 typedef khronos_uint32_t EGLNativeWindowType;
114
115 #else
116
117 /* X11 (tentative) */
118 #include <X11/Xlib.h>
119 #include <X11/Xutil.h>
120
121 typedef Display *EGLNativeDisplayType;
122 typedef Pixmap EGLNativePixmapType;
123 typedef Window EGLNativeWindowType;
124
125 #endif /* MESA_EGL_NO_X11_HEADERS */
126
127 #elif defined(__APPLE__)
128
129 // TODO(gman): these are place holders.
130 typedef void *EGLNativeDisplayType;
131 typedef int EGLNativePixmapType;
132 #ifdef __OBJC__
133 @class NSView;
134 typedef NSView *EGLNativeWindowType;
135 #else
136 struct NSView;
137 typedef struct NSView *EGLNativeWindowType;
138 #endif // __OBJC__
139
140 #else
141 #error "Platform not recognized"
142 #endif
143
144 /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
145 typedef EGLNativeDisplayType NativeDisplayType;
146 typedef EGLNativePixmapType NativePixmapType;
147 typedef EGLNativeWindowType NativeWindowType;
148
149
150 /* Define EGLint. This must be a signed integral type large enough to contain
151 * all legal attribute names and values passed into and out of EGL, whether
152 * their type is boolean, bitmask, enumerant (symbolic constant), integer,
153 * handle, or other. While in general a 32-bit integer will suffice, if
154 * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
155 * integer type.
156 */
157 typedef khronos_int32_t EGLint;
158
159 #endif /* __eglplatform_h */
OLDNEW
« no previous file with comments | « include/EGL/eglmesaext.h ('k') | include/GLES2/gl2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698