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

Side by Side Diff: third_party/mesa/MesaLib/src/egl/main/eglconfig.h

Issue 5750002: Added facility to compile Mesa EGL implementation. Fixed a few issues so that... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | « no previous file | third_party/mesa/MesaLib/src/egl/main/eglconfig.c » ('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 EGLCONFIG_INCLUDED 1 #ifndef EGLCONFIG_INCLUDED
2 #define EGLCONFIG_INCLUDED 2 #define EGLCONFIG_INCLUDED
3 3
4 4
5 #include <assert.h> 5 #include <assert.h>
6 #include "egltypedefs.h" 6 #include "egltypedefs.h"
7 7
8 8
9 #define _EGL_CONFIG_FIRST_ATTRIB EGL_BUFFER_SIZE 9 #define _EGL_CONFIG_FIRST_ATTRIB EGL_BUFFER_SIZE
10 #define _EGL_CONFIG_LAST_ATTRIB EGL_CONFORMANT 10 #define _EGL_CONFIG_LAST_ATTRIB EGL_CONFORMANT
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 */ 42 */
43 static INLINE EGLint 43 static INLINE EGLint
44 _eglIndexConfig(const _EGLConfig *conf, EGLint key) 44 _eglIndexConfig(const _EGLConfig *conf, EGLint key)
45 { 45 {
46 (void) conf; 46 (void) conf;
47 if (key >= _EGL_CONFIG_FIRST_ATTRIB && 47 if (key >= _EGL_CONFIG_FIRST_ATTRIB &&
48 key < _EGL_CONFIG_FIRST_ATTRIB + _EGL_CONFIG_NUM_CONTIGUOUS_ATTRIBS) 48 key < _EGL_CONFIG_FIRST_ATTRIB + _EGL_CONFIG_NUM_CONTIGUOUS_ATTRIBS)
49 return key - _EGL_CONFIG_FIRST_ATTRIB; 49 return key - _EGL_CONFIG_FIRST_ATTRIB;
50 50
51 switch (key) { 51 switch (key) {
52 #ifdef EGL_NOK_texture_from_pixmap
52 case EGL_Y_INVERTED_NOK: 53 case EGL_Y_INVERTED_NOK:
53 return _EGL_CONFIG_FIRST_EXTRA_ATTRIB; 54 return _EGL_CONFIG_FIRST_EXTRA_ATTRIB;
55 #endif
54 default: 56 default:
55 return -1; 57 return -1;
56 } 58 }
57 } 59 }
58 60
59 61
60 /** 62 /**
61 * Reset all keys in the config to a given value. 63 * Reset all keys in the config to a given value.
62 */ 64 */
63 static INLINE void 65 static INLINE void
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 165
164 extern EGLBoolean 166 extern EGLBoolean
165 _eglGetConfigAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf, EGLint attribute, EGLint *value); 167 _eglGetConfigAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf, EGLint attribute, EGLint *value);
166 168
167 169
168 extern EGLBoolean 170 extern EGLBoolean
169 _eglGetConfigs(_EGLDriver *drv, _EGLDisplay *dpy, EGLConfig *configs, EGLint con fig_size, EGLint *num_config); 171 _eglGetConfigs(_EGLDriver *drv, _EGLDisplay *dpy, EGLConfig *configs, EGLint con fig_size, EGLint *num_config);
170 172
171 173
172 #endif /* EGLCONFIG_INCLUDED */ 174 #endif /* EGLCONFIG_INCLUDED */
OLDNEW
« no previous file with comments | « no previous file | third_party/mesa/MesaLib/src/egl/main/eglconfig.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698