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

Side by Side Diff: third_party/mesa/MesaLib/include/GL/glx.h

Issue 4107001: Upgraded Mesa to 7.9 from 7.7 in order to pick up bug fixes to the... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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
OLDNEW
1 /* 1 /*
2 * Mesa 3-D graphics library 2 * Mesa 3-D graphics library
3 * Version: 6.5 3 * Version: 6.5
4 * 4 *
5 * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. 5 * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
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 associated documentation files (the "Software"), 8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation 9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 typedef XID GLXPixmap; 179 typedef XID GLXPixmap;
180 typedef XID GLXDrawable; 180 typedef XID GLXDrawable;
181 /* GLX 1.3 and later */ 181 /* GLX 1.3 and later */
182 typedef struct __GLXFBConfigRec *GLXFBConfig; 182 typedef struct __GLXFBConfigRec *GLXFBConfig;
183 typedef XID GLXFBConfigID; 183 typedef XID GLXFBConfigID;
184 typedef XID GLXContextID; 184 typedef XID GLXContextID;
185 typedef XID GLXWindow; 185 typedef XID GLXWindow;
186 typedef XID GLXPbuffer; 186 typedef XID GLXPbuffer;
187 187
188 188
189 /*
190 ** Events.
191 ** __GLX_NUMBER_EVENTS is set to 17 to account for the BufferClobberSGIX
192 ** event - this helps initialization if the server supports the pbuffer
193 ** extension and the client doesn't.
194 */
195 #define GLX_PbufferClobber 0
196 #define GLX_BufferSwapComplete 1
197
198 #define __GLX_NUMBER_EVENTS 17
189 199
190 extern XVisualInfo* glXChooseVisual( Display *dpy, int screen, 200 extern XVisualInfo* glXChooseVisual( Display *dpy, int screen,
191 int *attribList ); 201 int *attribList );
192 202
193 extern GLXContext glXCreateContext( Display *dpy, XVisualInfo *vis, 203 extern GLXContext glXCreateContext( Display *dpy, XVisualInfo *vis,
194 GLXContext shareList, Bool direct ); 204 GLXContext shareList, Bool direct );
195 205
196 extern void glXDestroyContext( Display *dpy, GLXContext ctx ); 206 extern void glXDestroyContext( Display *dpy, GLXContext ctx );
197 207
198 extern Bool glXMakeCurrent( Display *dpy, GLXDrawable drawable, 208 extern Bool glXMakeCurrent( Display *dpy, GLXDrawable drawable,
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 361
352 extern void *glXAllocateMemoryNV(GLsizei size, GLfloat readfreq, GLfloat writefr eq, GLfloat priority); 362 extern void *glXAllocateMemoryNV(GLsizei size, GLfloat readfreq, GLfloat writefr eq, GLfloat priority);
353 extern void glXFreeMemoryNV(GLvoid *pointer); 363 extern void glXFreeMemoryNV(GLvoid *pointer);
354 typedef void * ( * PFNGLXALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority); 364 typedef void * ( * PFNGLXALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
355 typedef void ( * PFNGLXFREEMEMORYNVPROC) (GLvoid *pointer); 365 typedef void ( * PFNGLXFREEMEMORYNVPROC) (GLvoid *pointer);
356 366
357 #endif /* GLX_NV_vertex_array_range */ 367 #endif /* GLX_NV_vertex_array_range */
358 368
359 369
360 /* 370 /*
361 * ???. GLX_MESA_allocate_memory
362 */
363 #ifndef GLX_MESA_allocate_memory
364 #define GLX_MESA_allocate_memory 1
365
366 extern void *glXAllocateMemoryMESA(Display *dpy, int scrn, size_t size, float re adfreq, float writefreq, float priority);
367 extern void glXFreeMemoryMESA(Display *dpy, int scrn, void *pointer);
368 extern GLuint glXGetMemoryOffsetMESA(Display *dpy, int scrn, const void *pointer );
369 typedef void * ( * PFNGLXALLOCATEMEMORYMESAPROC) (Display *dpy, int scrn, size_t size, float readfreq, float writefreq, float priority);
370 typedef void ( * PFNGLXFREEMEMORYMESAPROC) (Display *dpy, int scrn, void *pointe r);
371 typedef GLuint (* PFNGLXGETMEMORYOFFSETMESAPROC) (Display *dpy, int scrn, const void *pointer);
372
373 #endif /* GLX_MESA_allocate_memory */
374
375
376 /*
377 * ARB ?. GLX_ARB_render_texture 371 * ARB ?. GLX_ARB_render_texture
378 * XXX This was never finalized! 372 * XXX This was never finalized!
379 */ 373 */
380 #ifndef GLX_ARB_render_texture 374 #ifndef GLX_ARB_render_texture
381 #define GLX_ARB_render_texture 1 375 #define GLX_ARB_render_texture 1
382 376
383 extern Bool glXBindTexImageARB(Display *dpy, GLXPbuffer pbuffer, int buffer); 377 extern Bool glXBindTexImageARB(Display *dpy, GLXPbuffer pbuffer, int buffer);
384 extern Bool glXReleaseTexImageARB(Display *dpy, GLXPbuffer pbuffer, int buffer); 378 extern Bool glXReleaseTexImageARB(Display *dpy, GLXPbuffer pbuffer, int buffer);
385 extern Bool glXDrawableAttribARB(Display *dpy, GLXDrawable draw, const int *attr ibList); 379 extern Bool glXDrawableAttribARB(Display *dpy, GLXDrawable draw, const int *attr ibList);
386 380
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 Bool send_event; /* true if this came for SendEvent request */ 494 Bool send_event; /* true if this came for SendEvent request */
501 Display *display; /* display the event was read from */ 495 Display *display; /* display the event was read from */
502 GLXDrawable drawable; /* XID of Drawable */ 496 GLXDrawable drawable; /* XID of Drawable */
503 unsigned int buffer_mask; /* mask indicating which buffers are affected */ 497 unsigned int buffer_mask; /* mask indicating which buffers are affected */
504 unsigned int aux_buffer; /* which aux buffer was affected */ 498 unsigned int aux_buffer; /* which aux buffer was affected */
505 int x, y; 499 int x, y;
506 int width, height; 500 int width, height;
507 int count; /* if nonzero, at least this many more */ 501 int count; /* if nonzero, at least this many more */
508 } GLXPbufferClobberEvent; 502 } GLXPbufferClobberEvent;
509 503
504 typedef struct {
505 int type;
506 unsigned long serial; /* # of last request processed by server */
507 Bool send_event; /* true if this came from a SendEvent request */
508 Display *display; /* Display the event was read from */
509 GLXDrawable drawable; /* drawable on which event was requested in even t mask */
510 int event_type;
511 int64_t ust;
512 int64_t msc;
513 int64_t sbc;
514 } GLXBufferSwapComplete;
515
510 typedef union __GLXEvent { 516 typedef union __GLXEvent {
511 GLXPbufferClobberEvent glxpbufferclobber; 517 GLXPbufferClobberEvent glxpbufferclobber;
518 GLXBufferSwapComplete glxbufferswapcomplete;
512 long pad[24]; 519 long pad[24];
513 } GLXEvent; 520 } GLXEvent;
514 521
515 #ifdef __cplusplus 522 #ifdef __cplusplus
516 } 523 }
517 #endif 524 #endif
518 525
519 #endif 526 #endif
OLDNEW
« no previous file with comments | « third_party/mesa/MesaLib/include/GL/glext.h ('k') | third_party/mesa/MesaLib/include/GL/glxext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698