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