OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 is auto-generated from | 5 // This file is auto-generated from |
6 // ui/gl/generate_bindings.py | 6 // ui/gl/generate_bindings.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 fn.glGetInteger64vFn = 0; | 205 fn.glGetInteger64vFn = 0; |
206 fn.glGetIntegeri_vFn = 0; | 206 fn.glGetIntegeri_vFn = 0; |
207 fn.glGetIntegervFn = | 207 fn.glGetIntegervFn = |
208 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv")); | 208 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv")); |
209 fn.glGetInternalformativFn = 0; | 209 fn.glGetInternalformativFn = 0; |
210 fn.glGetProgramBinaryFn = 0; | 210 fn.glGetProgramBinaryFn = 0; |
211 fn.glGetProgramInfoLogFn = reinterpret_cast<glGetProgramInfoLogProc>( | 211 fn.glGetProgramInfoLogFn = reinterpret_cast<glGetProgramInfoLogProc>( |
212 GetGLProcAddress("glGetProgramInfoLog")); | 212 GetGLProcAddress("glGetProgramInfoLog")); |
213 fn.glGetProgramivFn = | 213 fn.glGetProgramivFn = |
214 reinterpret_cast<glGetProgramivProc>(GetGLProcAddress("glGetProgramiv")); | 214 reinterpret_cast<glGetProgramivProc>(GetGLProcAddress("glGetProgramiv")); |
| 215 fn.glGetProgramResourceLocationFn = 0; |
215 fn.glGetQueryivFn = 0; | 216 fn.glGetQueryivFn = 0; |
216 fn.glGetQueryivARBFn = 0; | 217 fn.glGetQueryivARBFn = 0; |
217 fn.glGetQueryObjecti64vFn = 0; | 218 fn.glGetQueryObjecti64vFn = 0; |
218 fn.glGetQueryObjectivFn = 0; | 219 fn.glGetQueryObjectivFn = 0; |
219 fn.glGetQueryObjectivARBFn = 0; | 220 fn.glGetQueryObjectivARBFn = 0; |
220 fn.glGetQueryObjectui64vFn = 0; | 221 fn.glGetQueryObjectui64vFn = 0; |
221 fn.glGetQueryObjectuivFn = 0; | 222 fn.glGetQueryObjectuivFn = 0; |
222 fn.glGetQueryObjectuivARBFn = 0; | 223 fn.glGetQueryObjectuivARBFn = 0; |
223 fn.glGetRenderbufferParameterivEXTFn = 0; | 224 fn.glGetRenderbufferParameterivEXTFn = 0; |
224 fn.glGetSamplerParameterfvFn = 0; | 225 fn.glGetSamplerParameterfvFn = 0; |
225 fn.glGetSamplerParameterivFn = 0; | 226 fn.glGetSamplerParameterivFn = 0; |
226 fn.glGetShaderInfoLogFn = reinterpret_cast<glGetShaderInfoLogProc>( | 227 fn.glGetShaderInfoLogFn = reinterpret_cast<glGetShaderInfoLogProc>( |
227 GetGLProcAddress("glGetShaderInfoLog")); | 228 GetGLProcAddress("glGetShaderInfoLog")); |
228 fn.glGetShaderivFn = | 229 fn.glGetShaderivFn = |
229 reinterpret_cast<glGetShaderivProc>(GetGLProcAddress("glGetShaderiv")); | 230 reinterpret_cast<glGetShaderivProc>(GetGLProcAddress("glGetShaderiv")); |
230 fn.glGetShaderPrecisionFormatFn = 0; | 231 fn.glGetShaderPrecisionFormatFn = 0; |
231 fn.glGetShaderSourceFn = reinterpret_cast<glGetShaderSourceProc>( | 232 fn.glGetShaderSourceFn = reinterpret_cast<glGetShaderSourceProc>( |
232 GetGLProcAddress("glGetShaderSource")); | 233 GetGLProcAddress("glGetShaderSource")); |
233 fn.glGetStringFn = | 234 fn.glGetStringFn = |
234 reinterpret_cast<glGetStringProc>(GetGLProcAddress("glGetString")); | 235 reinterpret_cast<glGetStringProc>(GetGLProcAddress("glGetString")); |
| 236 fn.glGetStringiFn = 0; |
235 fn.glGetSyncivFn = 0; | 237 fn.glGetSyncivFn = 0; |
236 fn.glGetTexLevelParameterfvFn = 0; | 238 fn.glGetTexLevelParameterfvFn = 0; |
237 fn.glGetTexLevelParameterivFn = 0; | 239 fn.glGetTexLevelParameterivFn = 0; |
238 fn.glGetTexParameterfvFn = reinterpret_cast<glGetTexParameterfvProc>( | 240 fn.glGetTexParameterfvFn = reinterpret_cast<glGetTexParameterfvProc>( |
239 GetGLProcAddress("glGetTexParameterfv")); | 241 GetGLProcAddress("glGetTexParameterfv")); |
240 fn.glGetTexParameterivFn = reinterpret_cast<glGetTexParameterivProc>( | 242 fn.glGetTexParameterivFn = reinterpret_cast<glGetTexParameterivProc>( |
241 GetGLProcAddress("glGetTexParameteriv")); | 243 GetGLProcAddress("glGetTexParameteriv")); |
242 fn.glGetTransformFeedbackVaryingFn = 0; | 244 fn.glGetTransformFeedbackVaryingFn = 0; |
243 fn.glGetTranslatedShaderSourceANGLEFn = 0; | 245 fn.glGetTranslatedShaderSourceANGLEFn = 0; |
244 fn.glGetUniformBlockIndexFn = 0; | 246 fn.glGetUniformBlockIndexFn = 0; |
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 ext.b_GL_ARB_get_program_binary) { | 1267 ext.b_GL_ARB_get_program_binary) { |
1266 fn.glGetProgramBinaryFn = reinterpret_cast<glGetProgramBinaryProc>( | 1268 fn.glGetProgramBinaryFn = reinterpret_cast<glGetProgramBinaryProc>( |
1267 GetGLProcAddress("glGetProgramBinary")); | 1269 GetGLProcAddress("glGetProgramBinary")); |
1268 DCHECK(fn.glGetProgramBinaryFn); | 1270 DCHECK(fn.glGetProgramBinaryFn); |
1269 } else if (ext.b_GL_OES_get_program_binary) { | 1271 } else if (ext.b_GL_OES_get_program_binary) { |
1270 fn.glGetProgramBinaryFn = reinterpret_cast<glGetProgramBinaryProc>( | 1272 fn.glGetProgramBinaryFn = reinterpret_cast<glGetProgramBinaryProc>( |
1271 GetGLProcAddress("glGetProgramBinaryOES")); | 1273 GetGLProcAddress("glGetProgramBinaryOES")); |
1272 DCHECK(fn.glGetProgramBinaryFn); | 1274 DCHECK(fn.glGetProgramBinaryFn); |
1273 } | 1275 } |
1274 | 1276 |
| 1277 debug_fn.glGetProgramResourceLocationFn = 0; |
| 1278 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 1u)) { |
| 1279 fn.glGetProgramResourceLocationFn = |
| 1280 reinterpret_cast<glGetProgramResourceLocationProc>( |
| 1281 GetGLProcAddress("glGetProgramResourceLocation")); |
| 1282 DCHECK(fn.glGetProgramResourceLocationFn); |
| 1283 } |
| 1284 |
1275 debug_fn.glGetQueryivFn = 0; | 1285 debug_fn.glGetQueryivFn = 0; |
1276 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) { | 1286 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) { |
1277 fn.glGetQueryivFn = | 1287 fn.glGetQueryivFn = |
1278 reinterpret_cast<glGetQueryivProc>(GetGLProcAddress("glGetQueryiv")); | 1288 reinterpret_cast<glGetQueryivProc>(GetGLProcAddress("glGetQueryiv")); |
1279 DCHECK(fn.glGetQueryivFn); | 1289 DCHECK(fn.glGetQueryivFn); |
1280 } | 1290 } |
1281 | 1291 |
1282 debug_fn.glGetQueryivARBFn = 0; | 1292 debug_fn.glGetQueryivARBFn = 0; |
1283 if (ext.b_GL_ARB_occlusion_query) { | 1293 if (ext.b_GL_ARB_occlusion_query) { |
1284 fn.glGetQueryivARBFn = reinterpret_cast<glGetQueryivARBProc>( | 1294 fn.glGetQueryivARBFn = reinterpret_cast<glGetQueryivARBProc>( |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1380 } | 1390 } |
1381 | 1391 |
1382 debug_fn.glGetShaderPrecisionFormatFn = 0; | 1392 debug_fn.glGetShaderPrecisionFormatFn = 0; |
1383 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) { | 1393 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) { |
1384 fn.glGetShaderPrecisionFormatFn = | 1394 fn.glGetShaderPrecisionFormatFn = |
1385 reinterpret_cast<glGetShaderPrecisionFormatProc>( | 1395 reinterpret_cast<glGetShaderPrecisionFormatProc>( |
1386 GetGLProcAddress("glGetShaderPrecisionFormat")); | 1396 GetGLProcAddress("glGetShaderPrecisionFormat")); |
1387 DCHECK(fn.glGetShaderPrecisionFormatFn); | 1397 DCHECK(fn.glGetShaderPrecisionFormatFn); |
1388 } | 1398 } |
1389 | 1399 |
| 1400 debug_fn.glGetStringiFn = 0; |
| 1401 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) { |
| 1402 fn.glGetStringiFn = |
| 1403 reinterpret_cast<glGetStringiProc>(GetGLProcAddress("glGetStringi")); |
| 1404 DCHECK(fn.glGetStringiFn); |
| 1405 } |
| 1406 |
1390 debug_fn.glGetSyncivFn = 0; | 1407 debug_fn.glGetSyncivFn = 0; |
1391 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) || | 1408 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) || |
1392 ext.b_GL_ARB_sync) { | 1409 ext.b_GL_ARB_sync) { |
1393 fn.glGetSyncivFn = | 1410 fn.glGetSyncivFn = |
1394 reinterpret_cast<glGetSyncivProc>(GetGLProcAddress("glGetSynciv")); | 1411 reinterpret_cast<glGetSyncivProc>(GetGLProcAddress("glGetSynciv")); |
1395 DCHECK(fn.glGetSyncivFn); | 1412 DCHECK(fn.glGetSyncivFn); |
1396 } | 1413 } |
1397 | 1414 |
1398 debug_fn.glGetTexLevelParameterfvFn = 0; | 1415 debug_fn.glGetTexLevelParameterfvFn = 0; |
1399 if (!ver->is_es || ver->IsAtLeastGLES(3u, 1u)) { | 1416 if (!ver->is_es || ver->IsAtLeastGLES(3u, 1u)) { |
(...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3239 } | 3256 } |
3240 | 3257 |
3241 static void GL_BINDING_CALL | 3258 static void GL_BINDING_CALL |
3242 Debug_glGetProgramiv(GLuint program, GLenum pname, GLint* params) { | 3259 Debug_glGetProgramiv(GLuint program, GLenum pname, GLint* params) { |
3243 GL_SERVICE_LOG("glGetProgramiv" | 3260 GL_SERVICE_LOG("glGetProgramiv" |
3244 << "(" << program << ", " << GLEnums::GetStringEnum(pname) | 3261 << "(" << program << ", " << GLEnums::GetStringEnum(pname) |
3245 << ", " << static_cast<const void*>(params) << ")"); | 3262 << ", " << static_cast<const void*>(params) << ")"); |
3246 g_driver_gl.debug_fn.glGetProgramivFn(program, pname, params); | 3263 g_driver_gl.debug_fn.glGetProgramivFn(program, pname, params); |
3247 } | 3264 } |
3248 | 3265 |
| 3266 static GLint GL_BINDING_CALL |
| 3267 Debug_glGetProgramResourceLocation(GLuint program, |
| 3268 GLenum programInterface, |
| 3269 const char* name) { |
| 3270 GL_SERVICE_LOG("glGetProgramResourceLocation" |
| 3271 << "(" << program << ", " |
| 3272 << GLEnums::GetStringEnum(programInterface) << ", " << name |
| 3273 << ")"); |
| 3274 GLint result = g_driver_gl.debug_fn.glGetProgramResourceLocationFn( |
| 3275 program, programInterface, name); |
| 3276 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 3277 return result; |
| 3278 } |
| 3279 |
3249 static void GL_BINDING_CALL | 3280 static void GL_BINDING_CALL |
3250 Debug_glGetQueryiv(GLenum target, GLenum pname, GLint* params) { | 3281 Debug_glGetQueryiv(GLenum target, GLenum pname, GLint* params) { |
3251 GL_SERVICE_LOG("glGetQueryiv" | 3282 GL_SERVICE_LOG("glGetQueryiv" |
3252 << "(" << GLEnums::GetStringEnum(target) << ", " | 3283 << "(" << GLEnums::GetStringEnum(target) << ", " |
3253 << GLEnums::GetStringEnum(pname) << ", " | 3284 << GLEnums::GetStringEnum(pname) << ", " |
3254 << static_cast<const void*>(params) << ")"); | 3285 << static_cast<const void*>(params) << ")"); |
3255 g_driver_gl.debug_fn.glGetQueryivFn(target, pname, params); | 3286 g_driver_gl.debug_fn.glGetQueryivFn(target, pname, params); |
3256 } | 3287 } |
3257 | 3288 |
3258 static void GL_BINDING_CALL | 3289 static void GL_BINDING_CALL |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3384 } | 3415 } |
3385 | 3416 |
3386 static const GLubyte* GL_BINDING_CALL Debug_glGetString(GLenum name) { | 3417 static const GLubyte* GL_BINDING_CALL Debug_glGetString(GLenum name) { |
3387 GL_SERVICE_LOG("glGetString" | 3418 GL_SERVICE_LOG("glGetString" |
3388 << "(" << GLEnums::GetStringEnum(name) << ")"); | 3419 << "(" << GLEnums::GetStringEnum(name) << ")"); |
3389 const GLubyte* result = g_driver_gl.debug_fn.glGetStringFn(name); | 3420 const GLubyte* result = g_driver_gl.debug_fn.glGetStringFn(name); |
3390 GL_SERVICE_LOG("GL_RESULT: " << result); | 3421 GL_SERVICE_LOG("GL_RESULT: " << result); |
3391 return result; | 3422 return result; |
3392 } | 3423 } |
3393 | 3424 |
| 3425 static const GLubyte* GL_BINDING_CALL |
| 3426 Debug_glGetStringi(GLenum name, GLuint index) { |
| 3427 GL_SERVICE_LOG("glGetStringi" |
| 3428 << "(" << GLEnums::GetStringEnum(name) << ", " << index |
| 3429 << ")"); |
| 3430 const GLubyte* result = g_driver_gl.debug_fn.glGetStringiFn(name, index); |
| 3431 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 3432 return result; |
| 3433 } |
| 3434 |
3394 static void GL_BINDING_CALL Debug_glGetSynciv(GLsync sync, | 3435 static void GL_BINDING_CALL Debug_glGetSynciv(GLsync sync, |
3395 GLenum pname, | 3436 GLenum pname, |
3396 GLsizei bufSize, | 3437 GLsizei bufSize, |
3397 GLsizei* length, | 3438 GLsizei* length, |
3398 GLint* values) { | 3439 GLint* values) { |
3399 GL_SERVICE_LOG("glGetSynciv" | 3440 GL_SERVICE_LOG("glGetSynciv" |
3400 << "(" << sync << ", " << GLEnums::GetStringEnum(pname) << ", " | 3441 << "(" << sync << ", " << GLEnums::GetStringEnum(pname) << ", " |
3401 << bufSize << ", " << static_cast<const void*>(length) << ", " | 3442 << bufSize << ", " << static_cast<const void*>(length) << ", " |
3402 << static_cast<const void*>(values) << ")"); | 3443 << static_cast<const void*>(values) << ")"); |
3403 g_driver_gl.debug_fn.glGetSyncivFn(sync, pname, bufSize, length, values); | 3444 g_driver_gl.debug_fn.glGetSyncivFn(sync, pname, bufSize, length, values); |
(...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5236 fn.glGetProgramBinaryFn = Debug_glGetProgramBinary; | 5277 fn.glGetProgramBinaryFn = Debug_glGetProgramBinary; |
5237 } | 5278 } |
5238 if (!debug_fn.glGetProgramInfoLogFn) { | 5279 if (!debug_fn.glGetProgramInfoLogFn) { |
5239 debug_fn.glGetProgramInfoLogFn = fn.glGetProgramInfoLogFn; | 5280 debug_fn.glGetProgramInfoLogFn = fn.glGetProgramInfoLogFn; |
5240 fn.glGetProgramInfoLogFn = Debug_glGetProgramInfoLog; | 5281 fn.glGetProgramInfoLogFn = Debug_glGetProgramInfoLog; |
5241 } | 5282 } |
5242 if (!debug_fn.glGetProgramivFn) { | 5283 if (!debug_fn.glGetProgramivFn) { |
5243 debug_fn.glGetProgramivFn = fn.glGetProgramivFn; | 5284 debug_fn.glGetProgramivFn = fn.glGetProgramivFn; |
5244 fn.glGetProgramivFn = Debug_glGetProgramiv; | 5285 fn.glGetProgramivFn = Debug_glGetProgramiv; |
5245 } | 5286 } |
| 5287 if (!debug_fn.glGetProgramResourceLocationFn) { |
| 5288 debug_fn.glGetProgramResourceLocationFn = fn.glGetProgramResourceLocationFn; |
| 5289 fn.glGetProgramResourceLocationFn = Debug_glGetProgramResourceLocation; |
| 5290 } |
5246 if (!debug_fn.glGetQueryivFn) { | 5291 if (!debug_fn.glGetQueryivFn) { |
5247 debug_fn.glGetQueryivFn = fn.glGetQueryivFn; | 5292 debug_fn.glGetQueryivFn = fn.glGetQueryivFn; |
5248 fn.glGetQueryivFn = Debug_glGetQueryiv; | 5293 fn.glGetQueryivFn = Debug_glGetQueryiv; |
5249 } | 5294 } |
5250 if (!debug_fn.glGetQueryivARBFn) { | 5295 if (!debug_fn.glGetQueryivARBFn) { |
5251 debug_fn.glGetQueryivARBFn = fn.glGetQueryivARBFn; | 5296 debug_fn.glGetQueryivARBFn = fn.glGetQueryivARBFn; |
5252 fn.glGetQueryivARBFn = Debug_glGetQueryivARB; | 5297 fn.glGetQueryivARBFn = Debug_glGetQueryivARB; |
5253 } | 5298 } |
5254 if (!debug_fn.glGetQueryObjecti64vFn) { | 5299 if (!debug_fn.glGetQueryObjecti64vFn) { |
5255 debug_fn.glGetQueryObjecti64vFn = fn.glGetQueryObjecti64vFn; | 5300 debug_fn.glGetQueryObjecti64vFn = fn.glGetQueryObjecti64vFn; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5302 fn.glGetShaderPrecisionFormatFn = Debug_glGetShaderPrecisionFormat; | 5347 fn.glGetShaderPrecisionFormatFn = Debug_glGetShaderPrecisionFormat; |
5303 } | 5348 } |
5304 if (!debug_fn.glGetShaderSourceFn) { | 5349 if (!debug_fn.glGetShaderSourceFn) { |
5305 debug_fn.glGetShaderSourceFn = fn.glGetShaderSourceFn; | 5350 debug_fn.glGetShaderSourceFn = fn.glGetShaderSourceFn; |
5306 fn.glGetShaderSourceFn = Debug_glGetShaderSource; | 5351 fn.glGetShaderSourceFn = Debug_glGetShaderSource; |
5307 } | 5352 } |
5308 if (!debug_fn.glGetStringFn) { | 5353 if (!debug_fn.glGetStringFn) { |
5309 debug_fn.glGetStringFn = fn.glGetStringFn; | 5354 debug_fn.glGetStringFn = fn.glGetStringFn; |
5310 fn.glGetStringFn = Debug_glGetString; | 5355 fn.glGetStringFn = Debug_glGetString; |
5311 } | 5356 } |
| 5357 if (!debug_fn.glGetStringiFn) { |
| 5358 debug_fn.glGetStringiFn = fn.glGetStringiFn; |
| 5359 fn.glGetStringiFn = Debug_glGetStringi; |
| 5360 } |
5312 if (!debug_fn.glGetSyncivFn) { | 5361 if (!debug_fn.glGetSyncivFn) { |
5313 debug_fn.glGetSyncivFn = fn.glGetSyncivFn; | 5362 debug_fn.glGetSyncivFn = fn.glGetSyncivFn; |
5314 fn.glGetSyncivFn = Debug_glGetSynciv; | 5363 fn.glGetSyncivFn = Debug_glGetSynciv; |
5315 } | 5364 } |
5316 if (!debug_fn.glGetTexLevelParameterfvFn) { | 5365 if (!debug_fn.glGetTexLevelParameterfvFn) { |
5317 debug_fn.glGetTexLevelParameterfvFn = fn.glGetTexLevelParameterfvFn; | 5366 debug_fn.glGetTexLevelParameterfvFn = fn.glGetTexLevelParameterfvFn; |
5318 fn.glGetTexLevelParameterfvFn = Debug_glGetTexLevelParameterfv; | 5367 fn.glGetTexLevelParameterfvFn = Debug_glGetTexLevelParameterfv; |
5319 } | 5368 } |
5320 if (!debug_fn.glGetTexLevelParameterivFn) { | 5369 if (!debug_fn.glGetTexLevelParameterivFn) { |
5321 debug_fn.glGetTexLevelParameterivFn = fn.glGetTexLevelParameterivFn; | 5370 debug_fn.glGetTexLevelParameterivFn = fn.glGetTexLevelParameterivFn; |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6645 GLsizei bufsize, | 6694 GLsizei bufsize, |
6646 GLsizei* length, | 6695 GLsizei* length, |
6647 char* infolog) { | 6696 char* infolog) { |
6648 driver_->fn.glGetProgramInfoLogFn(program, bufsize, length, infolog); | 6697 driver_->fn.glGetProgramInfoLogFn(program, bufsize, length, infolog); |
6649 } | 6698 } |
6650 | 6699 |
6651 void GLApiBase::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) { | 6700 void GLApiBase::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) { |
6652 driver_->fn.glGetProgramivFn(program, pname, params); | 6701 driver_->fn.glGetProgramivFn(program, pname, params); |
6653 } | 6702 } |
6654 | 6703 |
| 6704 GLint GLApiBase::glGetProgramResourceLocationFn(GLuint program, |
| 6705 GLenum programInterface, |
| 6706 const char* name) { |
| 6707 return driver_->fn.glGetProgramResourceLocationFn(program, programInterface, |
| 6708 name); |
| 6709 } |
| 6710 |
6655 void GLApiBase::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) { | 6711 void GLApiBase::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) { |
6656 driver_->fn.glGetQueryivFn(target, pname, params); | 6712 driver_->fn.glGetQueryivFn(target, pname, params); |
6657 } | 6713 } |
6658 | 6714 |
6659 void GLApiBase::glGetQueryivARBFn(GLenum target, GLenum pname, GLint* params) { | 6715 void GLApiBase::glGetQueryivARBFn(GLenum target, GLenum pname, GLint* params) { |
6660 driver_->fn.glGetQueryivARBFn(target, pname, params); | 6716 driver_->fn.glGetQueryivARBFn(target, pname, params); |
6661 } | 6717 } |
6662 | 6718 |
6663 void GLApiBase::glGetQueryObjecti64vFn(GLuint id, | 6719 void GLApiBase::glGetQueryObjecti64vFn(GLuint id, |
6664 GLenum pname, | 6720 GLenum pname, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6733 GLsizei bufsize, | 6789 GLsizei bufsize, |
6734 GLsizei* length, | 6790 GLsizei* length, |
6735 char* source) { | 6791 char* source) { |
6736 driver_->fn.glGetShaderSourceFn(shader, bufsize, length, source); | 6792 driver_->fn.glGetShaderSourceFn(shader, bufsize, length, source); |
6737 } | 6793 } |
6738 | 6794 |
6739 const GLubyte* GLApiBase::glGetStringFn(GLenum name) { | 6795 const GLubyte* GLApiBase::glGetStringFn(GLenum name) { |
6740 return driver_->fn.glGetStringFn(name); | 6796 return driver_->fn.glGetStringFn(name); |
6741 } | 6797 } |
6742 | 6798 |
| 6799 const GLubyte* GLApiBase::glGetStringiFn(GLenum name, GLuint index) { |
| 6800 return driver_->fn.glGetStringiFn(name, index); |
| 6801 } |
| 6802 |
6743 void GLApiBase::glGetSyncivFn(GLsync sync, | 6803 void GLApiBase::glGetSyncivFn(GLsync sync, |
6744 GLenum pname, | 6804 GLenum pname, |
6745 GLsizei bufSize, | 6805 GLsizei bufSize, |
6746 GLsizei* length, | 6806 GLsizei* length, |
6747 GLint* values) { | 6807 GLint* values) { |
6748 driver_->fn.glGetSyncivFn(sync, pname, bufSize, length, values); | 6808 driver_->fn.glGetSyncivFn(sync, pname, bufSize, length, values); |
6749 } | 6809 } |
6750 | 6810 |
6751 void GLApiBase::glGetTexLevelParameterfvFn(GLenum target, | 6811 void GLApiBase::glGetTexLevelParameterfvFn(GLenum target, |
6752 GLint level, | 6812 GLint level, |
(...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8445 char* infolog) { | 8505 char* infolog) { |
8446 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramInfoLog") | 8506 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramInfoLog") |
8447 gl_api_->glGetProgramInfoLogFn(program, bufsize, length, infolog); | 8507 gl_api_->glGetProgramInfoLogFn(program, bufsize, length, infolog); |
8448 } | 8508 } |
8449 | 8509 |
8450 void TraceGLApi::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) { | 8510 void TraceGLApi::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) { |
8451 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramiv") | 8511 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramiv") |
8452 gl_api_->glGetProgramivFn(program, pname, params); | 8512 gl_api_->glGetProgramivFn(program, pname, params); |
8453 } | 8513 } |
8454 | 8514 |
| 8515 GLint TraceGLApi::glGetProgramResourceLocationFn(GLuint program, |
| 8516 GLenum programInterface, |
| 8517 const char* name) { |
| 8518 TRACE_EVENT_BINARY_EFFICIENT0("gpu", |
| 8519 "TraceGLAPI::glGetProgramResourceLocation") |
| 8520 return gl_api_->glGetProgramResourceLocationFn(program, programInterface, |
| 8521 name); |
| 8522 } |
| 8523 |
8455 void TraceGLApi::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) { | 8524 void TraceGLApi::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) { |
8456 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryiv") | 8525 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryiv") |
8457 gl_api_->glGetQueryivFn(target, pname, params); | 8526 gl_api_->glGetQueryivFn(target, pname, params); |
8458 } | 8527 } |
8459 | 8528 |
8460 void TraceGLApi::glGetQueryivARBFn(GLenum target, GLenum pname, GLint* params) { | 8529 void TraceGLApi::glGetQueryivARBFn(GLenum target, GLenum pname, GLint* params) { |
8461 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryivARB") | 8530 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryivARB") |
8462 gl_api_->glGetQueryivARBFn(target, pname, params); | 8531 gl_api_->glGetQueryivARBFn(target, pname, params); |
8463 } | 8532 } |
8464 | 8533 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8552 char* source) { | 8621 char* source) { |
8553 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderSource") | 8622 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderSource") |
8554 gl_api_->glGetShaderSourceFn(shader, bufsize, length, source); | 8623 gl_api_->glGetShaderSourceFn(shader, bufsize, length, source); |
8555 } | 8624 } |
8556 | 8625 |
8557 const GLubyte* TraceGLApi::glGetStringFn(GLenum name) { | 8626 const GLubyte* TraceGLApi::glGetStringFn(GLenum name) { |
8558 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetString") | 8627 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetString") |
8559 return gl_api_->glGetStringFn(name); | 8628 return gl_api_->glGetStringFn(name); |
8560 } | 8629 } |
8561 | 8630 |
| 8631 const GLubyte* TraceGLApi::glGetStringiFn(GLenum name, GLuint index) { |
| 8632 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetStringi") |
| 8633 return gl_api_->glGetStringiFn(name, index); |
| 8634 } |
| 8635 |
8562 void TraceGLApi::glGetSyncivFn(GLsync sync, | 8636 void TraceGLApi::glGetSyncivFn(GLsync sync, |
8563 GLenum pname, | 8637 GLenum pname, |
8564 GLsizei bufSize, | 8638 GLsizei bufSize, |
8565 GLsizei* length, | 8639 GLsizei* length, |
8566 GLint* values) { | 8640 GLint* values) { |
8567 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSynciv") | 8641 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSynciv") |
8568 gl_api_->glGetSyncivFn(sync, pname, bufSize, length, values); | 8642 gl_api_->glGetSyncivFn(sync, pname, bufSize, length, values); |
8569 } | 8643 } |
8570 | 8644 |
8571 void TraceGLApi::glGetTexLevelParameterfvFn(GLenum target, | 8645 void TraceGLApi::glGetTexLevelParameterfvFn(GLenum target, |
(...skipping 1960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10532 << "Trying to call glGetProgramInfoLog() without current GL context"; | 10606 << "Trying to call glGetProgramInfoLog() without current GL context"; |
10533 } | 10607 } |
10534 | 10608 |
10535 void NoContextGLApi::glGetProgramivFn(GLuint program, | 10609 void NoContextGLApi::glGetProgramivFn(GLuint program, |
10536 GLenum pname, | 10610 GLenum pname, |
10537 GLint* params) { | 10611 GLint* params) { |
10538 NOTREACHED() << "Trying to call glGetProgramiv() without current GL context"; | 10612 NOTREACHED() << "Trying to call glGetProgramiv() without current GL context"; |
10539 LOG(ERROR) << "Trying to call glGetProgramiv() without current GL context"; | 10613 LOG(ERROR) << "Trying to call glGetProgramiv() without current GL context"; |
10540 } | 10614 } |
10541 | 10615 |
| 10616 GLint NoContextGLApi::glGetProgramResourceLocationFn(GLuint program, |
| 10617 GLenum programInterface, |
| 10618 const char* name) { |
| 10619 NOTREACHED() << "Trying to call glGetProgramResourceLocation() without " |
| 10620 "current GL context"; |
| 10621 LOG(ERROR) << "Trying to call glGetProgramResourceLocation() without current " |
| 10622 "GL context"; |
| 10623 return 0; |
| 10624 } |
| 10625 |
10542 void NoContextGLApi::glGetQueryivFn(GLenum target, | 10626 void NoContextGLApi::glGetQueryivFn(GLenum target, |
10543 GLenum pname, | 10627 GLenum pname, |
10544 GLint* params) { | 10628 GLint* params) { |
10545 NOTREACHED() << "Trying to call glGetQueryiv() without current GL context"; | 10629 NOTREACHED() << "Trying to call glGetQueryiv() without current GL context"; |
10546 LOG(ERROR) << "Trying to call glGetQueryiv() without current GL context"; | 10630 LOG(ERROR) << "Trying to call glGetQueryiv() without current GL context"; |
10547 } | 10631 } |
10548 | 10632 |
10549 void NoContextGLApi::glGetQueryivARBFn(GLenum target, | 10633 void NoContextGLApi::glGetQueryivARBFn(GLenum target, |
10550 GLenum pname, | 10634 GLenum pname, |
10551 GLint* params) { | 10635 GLint* params) { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10669 << "Trying to call glGetShaderSource() without current GL context"; | 10753 << "Trying to call glGetShaderSource() without current GL context"; |
10670 LOG(ERROR) << "Trying to call glGetShaderSource() without current GL context"; | 10754 LOG(ERROR) << "Trying to call glGetShaderSource() without current GL context"; |
10671 } | 10755 } |
10672 | 10756 |
10673 const GLubyte* NoContextGLApi::glGetStringFn(GLenum name) { | 10757 const GLubyte* NoContextGLApi::glGetStringFn(GLenum name) { |
10674 NOTREACHED() << "Trying to call glGetString() without current GL context"; | 10758 NOTREACHED() << "Trying to call glGetString() without current GL context"; |
10675 LOG(ERROR) << "Trying to call glGetString() without current GL context"; | 10759 LOG(ERROR) << "Trying to call glGetString() without current GL context"; |
10676 return NULL; | 10760 return NULL; |
10677 } | 10761 } |
10678 | 10762 |
| 10763 const GLubyte* NoContextGLApi::glGetStringiFn(GLenum name, GLuint index) { |
| 10764 NOTREACHED() << "Trying to call glGetStringi() without current GL context"; |
| 10765 LOG(ERROR) << "Trying to call glGetStringi() without current GL context"; |
| 10766 return NULL; |
| 10767 } |
| 10768 |
10679 void NoContextGLApi::glGetSyncivFn(GLsync sync, | 10769 void NoContextGLApi::glGetSyncivFn(GLsync sync, |
10680 GLenum pname, | 10770 GLenum pname, |
10681 GLsizei bufSize, | 10771 GLsizei bufSize, |
10682 GLsizei* length, | 10772 GLsizei* length, |
10683 GLint* values) { | 10773 GLint* values) { |
10684 NOTREACHED() << "Trying to call glGetSynciv() without current GL context"; | 10774 NOTREACHED() << "Trying to call glGetSynciv() without current GL context"; |
10685 LOG(ERROR) << "Trying to call glGetSynciv() without current GL context"; | 10775 LOG(ERROR) << "Trying to call glGetSynciv() without current GL context"; |
10686 } | 10776 } |
10687 | 10777 |
10688 void NoContextGLApi::glGetTexLevelParameterfvFn(GLenum target, | 10778 void NoContextGLApi::glGetTexLevelParameterfvFn(GLenum target, |
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11774 | 11864 |
11775 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, | 11865 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, |
11776 GLbitfield flags, | 11866 GLbitfield flags, |
11777 GLuint64 timeout) { | 11867 GLuint64 timeout) { |
11778 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; | 11868 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; |
11779 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; | 11869 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; |
11780 return static_cast<GLenum>(0); | 11870 return static_cast<GLenum>(0); |
11781 } | 11871 } |
11782 | 11872 |
11783 } // namespace gfx | 11873 } // namespace gfx |
OLD | NEW |