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

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

Issue 2383753002: gpu: Add GpuFence framework.
Patch Set: rebase Created 4 years, 1 month 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
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 GLenum internalformat, 121 GLenum internalformat,
122 GLenum usage); 122 GLenum usage);
123 #endif 123 #endif
124 typedef GLuint(GL_APIENTRYP PFNGLCREATEGPUMEMORYBUFFERIMAGECHROMIUMPROC)( 124 typedef GLuint(GL_APIENTRYP PFNGLCREATEGPUMEMORYBUFFERIMAGECHROMIUMPROC)(
125 GLsizei width, 125 GLsizei width,
126 GLsizei height, 126 GLsizei height,
127 GLenum internalformat, 127 GLenum internalformat,
128 GLenum usage); 128 GLenum usage);
129 #endif /* GL_CHROMIUM_gpu_memory_buffer_image */ 129 #endif /* GL_CHROMIUM_gpu_memory_buffer_image */
130 130
131 /* GL_CHROMIUM_fence */
132 #ifndef GL_CHROMIUM_fence
133 #define GL_CHROMIUM_fence 1
134
135 typedef struct _ClientFence* ClientFence;
136
137 #ifdef GL_GLEXT_PROTOTYPES
138 GL_APICALL GLuint GL_APIENTRY glCreateFenceCHROMIUM(ClientFence fence);
139 GL_APICALL void GL_APIENTRY glDestroyFenceCHROMIUM(GLuint fence_id);
140 #endif
141 typedef GLuint(GL_APIENTRYP PFNGLCREATEFENCECHROMIUMPROC)(ClientFence fence);
142 typedef void(GL_APIENTRYP PFNGLDESTROYFENCECHROMIUMPROC)(GLuint fence_id);
143 #endif /* GL_CHROMIUM_fence */
144
131 /* GL_CHROMIUM_deschedule */ 145 /* GL_CHROMIUM_deschedule */
132 #ifndef GL_CHROMIUM_deschedule 146 #ifndef GL_CHROMIUM_deschedule
133 #define GL_CHROMIUM_deschedule 1 147 #define GL_CHROMIUM_deschedule 1
134 #ifdef GL_GLEXT_PROTOTYPES 148 #ifdef GL_GLEXT_PROTOTYPES
135 GL_APICALL void GL_APIENTRY glDescheduleUntilFinishedCHROMIUM(); 149 GL_APICALL void GL_APIENTRY glDescheduleUntilFinishedCHROMIUM();
136 #endif 150 #endif
137 typedef void(GL_APIENTRYP PFNGLDESCHEDULEUNTILFINISHEDCHROMIUM)(); 151 typedef void(GL_APIENTRYP PFNGLDESCHEDULEUNTILFINISHEDCHROMIUM)();
138 #endif /* GL_CHROMIUM_deschedule */ 152 #endif /* GL_CHROMIUM_deschedule */
139 153
140 /* GL_CHROMIUM_map_sub */ 154 /* GL_CHROMIUM_map_sub */
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 GL_APICALL void GL_APIENTRY glCoverageModulationCHROMIUM(GLenum components); 1215 GL_APICALL void GL_APIENTRY glCoverageModulationCHROMIUM(GLenum components);
1202 #endif 1216 #endif
1203 #define GL_COVERAGE_MODULATION_CHROMIUM 0x9332 1217 #define GL_COVERAGE_MODULATION_CHROMIUM 0x9332
1204 #endif /* GL_CHROMIUM_framebuffer_mixed_samples */ 1218 #endif /* GL_CHROMIUM_framebuffer_mixed_samples */
1205 1219
1206 #ifdef __cplusplus 1220 #ifdef __cplusplus
1207 } 1221 }
1208 #endif 1222 #endif
1209 1223
1210 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ 1224 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698