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

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

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted mojo readme, changed wait() to take a pointer Created 5 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
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains Chromium-specific GLES2 extensions declarations. 5 // This file contains Chromium-specific GLES2 extensions declarations.
6 6
7 #ifndef GPU_GLES2_GL2EXTCHROMIUM_H_ 7 #ifndef GPU_GLES2_GL2EXTCHROMIUM_H_
8 #define GPU_GLES2_GL2EXTCHROMIUM_H_ 8 #define GPU_GLES2_GL2EXTCHROMIUM_H_
9 9
10 #include <GLES2/gl2.h> 10 #include <GLES2/gl2.h>
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 GL_APICALL void GL_APIENTRY glGetProgramInfoCHROMIUM( 688 GL_APICALL void GL_APIENTRY glGetProgramInfoCHROMIUM(
689 GLuint program, GLsizei bufsize, GLsizei* size, void* info); 689 GLuint program, GLsizei bufsize, GLsizei* size, void* info);
690 #endif 690 #endif
691 typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOCHROMIUMPROC) ( 691 typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOCHROMIUMPROC) (
692 GLuint program, GLsizei bufsize, GLsizei* size, void* info); 692 GLuint program, GLsizei bufsize, GLsizei* size, void* info);
693 #endif /* GL_CHROMIUM_get_multiple */ 693 #endif /* GL_CHROMIUM_get_multiple */
694 694
695 /* GL_CHROMIUM_sync_point */ 695 /* GL_CHROMIUM_sync_point */
696 #ifndef GL_CHROMIUM_sync_point 696 #ifndef GL_CHROMIUM_sync_point
697 #define GL_CHROMIUM_sync_point 1 697 #define GL_CHROMIUM_sync_point 1
698
699 #ifndef GL_SYNC_TOKEN_SIZE_CHROMIUM
700 #define GL_SYNC_TOKEN_SIZE_CHROMIUM 24
701 #endif
702
698 #ifdef GL_GLEXT_PROTOTYPES 703 #ifdef GL_GLEXT_PROTOTYPES
699 GL_APICALL GLuint GL_APIENTRY glInsertSyncPointCHROMIUM(); 704 GL_APICALL GLuint GL_APIENTRY glInsertSyncPointCHROMIUM();
700 GL_APICALL void GL_APIENTRY glWaitSyncPointCHROMIUM(GLuint sync_point); 705 GL_APICALL void GL_APIENTRY glWaitSyncPointCHROMIUM(GLuint sync_point);
706 GL_APICALL GLuint64 GL_APIENTRY glInsertFenceSyncCHROMIUM();
707 GL_APICALL void GL_APIENTRY glGenSyncTokenCHROMIUM(GLuint64 fence_sync,
708 GLbyte* sync_token);
709 GL_APICALL void GL_APIENTRY glWaitSyncTokenCHROMIUM(const GLbyte* sync_token);
701 #endif 710 #endif
702 typedef GLuint (GL_APIENTRYP PFNGLINSERTSYNCPOINTCHROMIUMPROC) (); 711 typedef GLuint (GL_APIENTRYP PFNGLINSERTSYNCPOINTCHROMIUMPROC) ();
703 typedef void (GL_APIENTRYP PFNGLWAITSYNCPOINTCHROMIUMPROC) (GLuint sync_point); 712 typedef void (GL_APIENTRYP PFNGLWAITSYNCPOINTCHROMIUMPROC) (GLuint sync_point);
713 typedef GLuint64 (GL_APIENTRYP PFNGLINSERTFENCESYNCCHROMIUMPROC) ();
714 typedef void (GL_APIENTRYP PFNGLGENSYNCTOKENCHROMIUMPROC) (GLuint64 fence_sync,
715 GLbyte* sync_token);
716 typedef void (GL_APIENTRYP PFNGLWAITSYNCTOKENCHROMIUM) (
717 const GLbyte* sync_tokens);
704 #endif /* GL_CHROMIUM_sync_point */ 718 #endif /* GL_CHROMIUM_sync_point */
705 719
706 #ifndef GL_CHROMIUM_color_buffer_float_rgba 720 #ifndef GL_CHROMIUM_color_buffer_float_rgba
707 #define GL_CHROMIUM_color_buffer_float_rgba 1 721 #define GL_CHROMIUM_color_buffer_float_rgba 1
708 #ifndef GL_RGBA32F 722 #ifndef GL_RGBA32F
709 #define GL_RGBA32F 0x8814 723 #define GL_RGBA32F 0x8814
710 #endif 724 #endif
711 #endif /* GL_CHROMIUM_color_buffer_float_rgba */ 725 #endif /* GL_CHROMIUM_color_buffer_float_rgba */
712 726
713 #ifndef GL_CHROMIUM_color_buffer_float_rgb 727 #ifndef GL_CHROMIUM_color_buffer_float_rgb
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 #define GL_PATH_STENCIL_VALUE_MASK_CHROMIUM 0x90B9 999 #define GL_PATH_STENCIL_VALUE_MASK_CHROMIUM 0x90B9
986 #endif 1000 #endif
987 1001
988 #endif /* GL_CHROMIUM_path_rendering */ 1002 #endif /* GL_CHROMIUM_path_rendering */
989 1003
990 #ifdef __cplusplus 1004 #ifdef __cplusplus
991 } 1005 }
992 #endif 1006 #endif
993 1007
994 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ 1008 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698