Chromium Code Reviews| OLD | NEW |
|---|---|
| 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-2009 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, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 #elif defined(__ANDROID__) || defined(ANDROID) | 87 #elif defined(__ANDROID__) || defined(ANDROID) |
| 88 | 88 |
| 89 #include <android/native_window.h> | 89 #include <android/native_window.h> |
| 90 | 90 |
| 91 struct egl_native_pixmap_t; | 91 struct egl_native_pixmap_t; |
| 92 | 92 |
| 93 typedef struct ANativeWindow* EGLNativeWindowType; | 93 typedef struct ANativeWindow* EGLNativeWindowType; |
| 94 typedef struct egl_native_pixmap_t* EGLNativePixmapType; | 94 typedef struct egl_native_pixmap_t* EGLNativePixmapType; |
| 95 typedef void* EGLNativeDisplayType; | 95 typedef void* EGLNativeDisplayType; |
| 96 | 96 |
| 97 #elif defined(USE_NATIVE_SURFACE_LINUX) | |
| 98 | |
| 99 typedef int EGLNativeDisplayType; | |
|
DaveMoore
2013/04/30 17:53:42
Nit: either align the type names or only one space
rjkroege
2013/05/06 18:46:24
Done.
| |
| 100 typedef intptr_t EGLNativeWindowType; | |
| 101 typedef intptr_t EGLNativePixmapType; | |
| 102 | |
| 97 #elif defined(__unix__) | 103 #elif defined(__unix__) |
| 98 | 104 |
| 99 /* X11 (tentative) */ | 105 /* X11 (tentative) */ |
| 100 #include <X11/Xlib.h> | 106 #include <X11/Xlib.h> |
| 101 #include <X11/Xutil.h> | 107 #include <X11/Xutil.h> |
| 102 | 108 |
| 103 typedef Display *EGLNativeDisplayType; | 109 typedef Display *EGLNativeDisplayType; |
| 104 typedef Pixmap EGLNativePixmapType; | 110 typedef Pixmap EGLNativePixmapType; |
| 105 typedef Window EGLNativeWindowType; | 111 typedef Window EGLNativeWindowType; |
| 106 | 112 |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 130 /* 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 |
| 131 * 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 |
| 132 * their type is boolean, bitmask, enumerant (symbolic constant), integer, | 138 * their type is boolean, bitmask, enumerant (symbolic constant), integer, |
| 133 * 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 |
| 134 * 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 |
| 135 * integer type. | 141 * integer type. |
| 136 */ | 142 */ |
| 137 typedef khronos_int32_t EGLint; | 143 typedef khronos_int32_t EGLint; |
| 138 | 144 |
| 139 #endif /* __eglplatform_h */ | 145 #endif /* __eglplatform_h */ |
| OLD | NEW |