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

Side by Side Diff: third_party/khronos/EGL/eglplatform.h

Issue 2767063002: 16-bit video upload to float: intermediate R16_EXT and copy to float. (Closed)
Patch Set: Nit. Created 3 years, 7 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
« no previous file with comments | « third_party/khronos/EGL/eglext.h ('k') | third_party/khronos/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
1 #ifndef __eglplatform_h_ 1 #ifndef __eglplatform_h_
2 #define __eglplatform_h_ 2 #define __eglplatform_h_
3 3
4 /* 4 /*
5 ** Copyright (c) 2007-2009 The Khronos Group Inc. 5 ** Copyright (c) 2007-2016 The Khronos Group Inc.
6 ** 6 **
7 ** Permission is hereby granted, free of charge, to any person obtaining a 7 ** Permission is hereby granted, free of charge, to any person obtaining a
8 ** copy of this software and/or associated documentation files (the 8 ** copy of this software and/or associated documentation files (the
9 ** "Materials"), to deal in the Materials without restriction, including 9 ** "Materials"), to deal in the Materials without restriction, including
10 ** without limitation the rights to use, copy, modify, merge, publish, 10 ** without limitation the rights to use, copy, modify, merge, publish,
11 ** distribute, sublicense, and/or sell copies of the Materials, and to 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 12 ** permit persons to whom the Materials are furnished to do so, subject to
13 ** the following conditions: 13 ** the following conditions:
14 ** 14 **
15 ** The above copyright notice and this permission notice shall be included 15 ** The above copyright notice and this permission notice shall be included
16 ** in all copies or substantial portions of the Materials. 16 ** in all copies or substantial portions of the Materials.
17 ** 17 **
18 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 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, 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 23 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 24 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
25 */ 25 */
26 26
27 /* Platform-specific types and definitions for egl.h 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) $ 28 * $Revision: 30994 $ on $Date: 2015-04-30 13:36:48 -0700 (Thu, 30 Apr 2015) $
29 * 29 *
30 * Adopters may modify khrplatform.h and this file to suit their platform. 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 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 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) 33 * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
34 * by filing a bug against product "EGL" component "Registry". 34 * by filing a bug against product "EGL" component "Registry".
35 */ 35 */
36 36
37 #include <KHR/khrplatform.h> 37 #include <KHR/khrplatform.h>
38 38
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 typedef HDC EGLNativeDisplayType; 76 typedef HDC EGLNativeDisplayType;
77 typedef HBITMAP EGLNativePixmapType; 77 typedef HBITMAP EGLNativePixmapType;
78 typedef HWND EGLNativeWindowType; 78 typedef HWND EGLNativeWindowType;
79 79
80 #elif defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */ 80 #elif defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */
81 81
82 typedef int EGLNativeDisplayType; 82 typedef int EGLNativeDisplayType;
83 typedef void *EGLNativeWindowType; 83 typedef void *EGLNativeWindowType;
84 typedef void *EGLNativePixmapType; 84 typedef void *EGLNativePixmapType;
85 85
86 // From Android NDK.
87 #elif defined(__ANDROID__) || defined(ANDROID) 86 #elif defined(__ANDROID__) || defined(ANDROID)
88 87
89 #include <android/native_window.h> 88 #include <android/native_window.h>
90 89
91 struct egl_native_pixmap_t; 90 struct egl_native_pixmap_t;
92 91
93 typedef struct ANativeWindow* EGLNativeWindowType; 92 typedef struct ANativeWindow* EGLNativeWindowType;
94 typedef struct egl_native_pixmap_t* EGLNativePixmapType; 93 typedef struct egl_native_pixmap_t* EGLNativePixmapType;
95 typedef void* EGLNativeDisplayType; 94 typedef void* EGLNativeDisplayType;
96 95
97 #elif defined(USE_OZONE) 96 #elif defined(USE_OZONE)
98 97
98 /* Chromium-specific */
99 typedef intptr_t EGLNativeDisplayType; 99 typedef intptr_t EGLNativeDisplayType;
100 typedef intptr_t EGLNativeWindowType; 100 typedef intptr_t EGLNativeWindowType;
101 typedef intptr_t EGLNativePixmapType; 101 typedef intptr_t EGLNativePixmapType;
102 102
103 #elif defined(__unix__) 103 #elif defined(__unix__)
104 104
105 /* X11 (tentative) */ 105 /* X11 (tentative) */
106 #include <X11/Xlib.h> 106 #include <X11/Xlib.h>
107 #include <X11/Xutil.h> 107 #include <X11/Xutil.h>
108 108
109 typedef Display *EGLNativeDisplayType; 109 typedef Display *EGLNativeDisplayType;
110 typedef Pixmap EGLNativePixmapType; 110 typedef Pixmap EGLNativePixmapType;
111 typedef Window EGLNativeWindowType; 111 typedef Window EGLNativeWindowType;
112 112
113 #elif defined(__APPLE__) 113 #elif defined(__APPLE__)
114 114
115 // TODO(gman): these are place holders. 115 /* Chromium-specific __APPLE__ EGLNative* definition */
116 typedef void *EGLNativeDisplayType; 116 typedef void *EGLNativeDisplayType;
117 typedef int EGLNativePixmapType; 117 typedef int EGLNativePixmapType;
118 #ifdef __OBJC__ 118 #ifdef __OBJC__
119 @class NSView; 119 @class NSView;
120 typedef NSView *EGLNativeWindowType; 120 typedef NSView *EGLNativeWindowType;
121 #else 121 #else
122 struct NSView; 122 struct NSView;
123 typedef struct NSView *EGLNativeWindowType; 123 typedef struct NSView *EGLNativeWindowType;
124 #endif // __OBJC__ 124 #endif // __OBJC__
125 125
126 #else 126 #else
127 #error "Platform not recognized" 127 #error "Platform not recognized"
128 #endif 128 #endif
129 129
130 /* EGL 1.2 types, renamed for consistency in EGL 1.3 */ 130 /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
131 typedef EGLNativeDisplayType NativeDisplayType; 131 typedef EGLNativeDisplayType NativeDisplayType;
132 typedef EGLNativePixmapType NativePixmapType; 132 typedef EGLNativePixmapType NativePixmapType;
133 typedef EGLNativeWindowType NativeWindowType; 133 typedef EGLNativeWindowType NativeWindowType;
134 134
135 135
136 /* Define EGLint. This must be a signed integral type large enough to contain 136 /* Define EGLint. This must be a signed integral type large enough to contain
137 * all legal attribute names and values passed into and out of EGL, whether 137 * all legal attribute names and values passed into and out of EGL, whether
138 * their type is boolean, bitmask, enumerant (symbolic constant), integer, 138 * their type is boolean, bitmask, enumerant (symbolic constant), integer,
139 * handle, or other. While in general a 32-bit integer will suffice, if 139 * handle, or other. While in general a 32-bit integer will suffice, if
140 * handles are 64 bit types, then EGLint should be defined as a signed 64-bit 140 * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
141 * integer type. 141 * integer type.
142 */ 142 */
143 typedef khronos_int32_t EGLint; 143 typedef khronos_int32_t EGLint;
144 144
145
146 /* C++ / C typecast macros for special EGL handle values */
147 #if defined(__cplusplus)
148 #define EGL_CAST(type, value) (static_cast<type>(value))
149 #else
150 #define EGL_CAST(type, value) ((type) (value))
151 #endif
152
145 #endif /* __eglplatform_h */ 153 #endif /* __eglplatform_h */
OLDNEW
« no previous file with comments | « third_party/khronos/EGL/eglext.h ('k') | third_party/khronos/GLES2/gl2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698