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

Side by Side Diff: gpu/GLES2/gl2ext.h

Issue 8680002: Added minimal support to command buffer for GL_ARB_texture_rectangle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
OLDNEW
1 #ifndef __gl2ext_h_ 1 #ifndef __gl2ext_h_
2 #define __gl2ext_h_ 2 #define __gl2ext_h_
3 3
4 /* $Revision: 15049 $ on $Date:: 2011-07-06 17:28:16 -0700 #$ */ 4 /* $Revision: 15049 $ on $Date:: 2011-07-06 17:28:16 -0700 #$ */
5 5
6 #ifdef __cplusplus 6 #ifdef __cplusplus
7 extern "C" { 7 extern "C" {
8 #endif 8 #endif
9 9
10 /* 10 /*
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 #endif 1394 #endif
1395 #ifdef GL_GLEXT_PROTOTYPES 1395 #ifdef GL_GLEXT_PROTOTYPES
1396 #define glGetTranslatedShaderSourceANGLE GLES2_GET_FUN(GetTranslatedShaderSource ANGLE) 1396 #define glGetTranslatedShaderSourceANGLE GLES2_GET_FUN(GetTranslatedShaderSource ANGLE)
1397 #if !defined(GLES2_USE_CPP_BINDINGS) 1397 #if !defined(GLES2_USE_CPP_BINDINGS)
1398 GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLs izei bufsize, GLsizei* length, GLchar* source); 1398 GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLs izei bufsize, GLsizei* length, GLchar* source);
1399 #endif 1399 #endif
1400 #endif 1400 #endif
1401 typedef void (GL_APIENTRYP PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shad er, GLsizei bufsize, GLsizei* length, GLchar* source); 1401 typedef void (GL_APIENTRYP PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shad er, GLsizei bufsize, GLsizei* length, GLchar* source);
1402 #endif 1402 #endif
1403 1403
1404 /* GL_ARB_texture_rectangle */
1405 /* Exposes only the subset necessary to support GL_CHROMIUM_iosurface.
1406 */
1407 #ifndef GL_ARB_texture_rectangle
1408 #define GL_ARB_texture_rectangle 1
1409 #ifndef GL_TEXTURE_RECTANGLE_ARB
1410 #define GL_TEXTURE_RECTANGLE_ARB 0x84F5
1411 #endif
1412 #ifndef GL_TEXTURE_BINDING_RECTANGLE_ARB
1413 #define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6
1414 #endif
1415 #ifndef GL_SAMPLER_2D_RECT_ARB
1416 #define GL_SAMPLER_2D_RECT_ARB 0x8B63
1417 #endif
1418 #endif
1419
1420 /* GL_CHROMIUM_iosurface */
1421 /* Exposes the Mac OS-specfic CGLTexImageIOSurface2D entry point as a
1422 * Chromium extension in the cross-platform API. Binds the IOSurface with
1423 * the given ID (an IOSurfaceID) to the texture bound to the given target.
1424 * To avoid needing to expose extraneous enums, assumes internal format
1425 * RGBA, format BGRA, and type UNSIGNED_INT_8_8_8_8_REV.
1426 */
1427 #ifndef GL_CHROMIUM_iosurface
1428 #define GL_CHROMIUM_iosurface 1
1429 #ifdef GL_GLEXT_PROTOTYPES
1430 #define glTexImageIOSurface2DCHROMIUM GLES2_GET_FUN(TexImageIOSurface2DCHROMIUM)
1431 #if !defined(GLES2_USE_CPP_BINDINGS)
1432 GL_APICALL void GL_APIENTRY glTexImageIOSurface2DCHROMIUM (GLenum target, GLsize i width, GLsizei height, GLuint ioSurfaceId, GLuint plane);
1433 #endif
1434 #else
1435 typedef void (GL_APIENTRYP PFNGLTEXIMAGEIOSURFACE2DCHROMIUM) (GLenum target, GLs izei width, GLsizei height, GLuint ioSurfaceId, GLuint plane);
1436 #endif
1437 #endif
1438
1404 #ifdef __cplusplus 1439 #ifdef __cplusplus
1405 } 1440 }
1406 #endif 1441 #endif
1407 1442
1408 #endif /* __gl2ext_h_ */ 1443 #endif /* __gl2ext_h_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698