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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 GetGLProcAddress("glGetAttribLocation")); | 194 GetGLProcAddress("glGetAttribLocation")); |
195 fn.glGetBooleanvFn = | 195 fn.glGetBooleanvFn = |
196 reinterpret_cast<glGetBooleanvProc>(GetGLProcAddress("glGetBooleanv")); | 196 reinterpret_cast<glGetBooleanvProc>(GetGLProcAddress("glGetBooleanv")); |
197 fn.glGetBufferParameterivFn = reinterpret_cast<glGetBufferParameterivProc>( | 197 fn.glGetBufferParameterivFn = reinterpret_cast<glGetBufferParameterivProc>( |
198 GetGLProcAddress("glGetBufferParameteriv")); | 198 GetGLProcAddress("glGetBufferParameteriv")); |
199 fn.glGetErrorFn = | 199 fn.glGetErrorFn = |
200 reinterpret_cast<glGetErrorProc>(GetGLProcAddress("glGetError")); | 200 reinterpret_cast<glGetErrorProc>(GetGLProcAddress("glGetError")); |
201 fn.glGetFenceivNVFn = 0; | 201 fn.glGetFenceivNVFn = 0; |
202 fn.glGetFloatvFn = | 202 fn.glGetFloatvFn = |
203 reinterpret_cast<glGetFloatvProc>(GetGLProcAddress("glGetFloatv")); | 203 reinterpret_cast<glGetFloatvProc>(GetGLProcAddress("glGetFloatv")); |
| 204 fn.glGetFragDataIndexFn = 0; |
204 fn.glGetFragDataLocationFn = 0; | 205 fn.glGetFragDataLocationFn = 0; |
205 fn.glGetFramebufferAttachmentParameterivEXTFn = 0; | 206 fn.glGetFramebufferAttachmentParameterivEXTFn = 0; |
206 fn.glGetGraphicsResetStatusARBFn = 0; | 207 fn.glGetGraphicsResetStatusARBFn = 0; |
207 fn.glGetInteger64i_vFn = 0; | 208 fn.glGetInteger64i_vFn = 0; |
208 fn.glGetInteger64vFn = 0; | 209 fn.glGetInteger64vFn = 0; |
209 fn.glGetIntegeri_vFn = 0; | 210 fn.glGetIntegeri_vFn = 0; |
210 fn.glGetIntegervFn = | 211 fn.glGetIntegervFn = |
211 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv")); | 212 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv")); |
212 fn.glGetInternalformativFn = 0; | 213 fn.glGetInternalformativFn = 0; |
213 fn.glGetProgramBinaryFn = 0; | 214 fn.glGetProgramBinaryFn = 0; |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 extensions.find("GL_ANGLE_framebuffer_multisample ") != std::string::npos; | 474 extensions.find("GL_ANGLE_framebuffer_multisample ") != std::string::npos; |
474 ext.b_GL_ANGLE_instanced_arrays = | 475 ext.b_GL_ANGLE_instanced_arrays = |
475 extensions.find("GL_ANGLE_instanced_arrays ") != std::string::npos; | 476 extensions.find("GL_ANGLE_instanced_arrays ") != std::string::npos; |
476 ext.b_GL_ANGLE_translated_shader_source = | 477 ext.b_GL_ANGLE_translated_shader_source = |
477 extensions.find("GL_ANGLE_translated_shader_source ") != | 478 extensions.find("GL_ANGLE_translated_shader_source ") != |
478 std::string::npos; | 479 std::string::npos; |
479 ext.b_GL_APPLE_fence = | 480 ext.b_GL_APPLE_fence = |
480 extensions.find("GL_APPLE_fence ") != std::string::npos; | 481 extensions.find("GL_APPLE_fence ") != std::string::npos; |
481 ext.b_GL_APPLE_vertex_array_object = | 482 ext.b_GL_APPLE_vertex_array_object = |
482 extensions.find("GL_APPLE_vertex_array_object ") != std::string::npos; | 483 extensions.find("GL_APPLE_vertex_array_object ") != std::string::npos; |
| 484 ext.b_GL_ARB_blend_func_extended = |
| 485 extensions.find("GL_ARB_blend_func_extended ") != std::string::npos; |
483 ext.b_GL_ARB_draw_buffers = | 486 ext.b_GL_ARB_draw_buffers = |
484 extensions.find("GL_ARB_draw_buffers ") != std::string::npos; | 487 extensions.find("GL_ARB_draw_buffers ") != std::string::npos; |
485 ext.b_GL_ARB_draw_instanced = | 488 ext.b_GL_ARB_draw_instanced = |
486 extensions.find("GL_ARB_draw_instanced ") != std::string::npos; | 489 extensions.find("GL_ARB_draw_instanced ") != std::string::npos; |
487 ext.b_GL_ARB_get_program_binary = | 490 ext.b_GL_ARB_get_program_binary = |
488 extensions.find("GL_ARB_get_program_binary ") != std::string::npos; | 491 extensions.find("GL_ARB_get_program_binary ") != std::string::npos; |
489 ext.b_GL_ARB_instanced_arrays = | 492 ext.b_GL_ARB_instanced_arrays = |
490 extensions.find("GL_ARB_instanced_arrays ") != std::string::npos; | 493 extensions.find("GL_ARB_instanced_arrays ") != std::string::npos; |
491 ext.b_GL_ARB_map_buffer_range = | 494 ext.b_GL_ARB_map_buffer_range = |
492 extensions.find("GL_ARB_map_buffer_range ") != std::string::npos; | 495 extensions.find("GL_ARB_map_buffer_range ") != std::string::npos; |
493 ext.b_GL_ARB_occlusion_query = | 496 ext.b_GL_ARB_occlusion_query = |
494 extensions.find("GL_ARB_occlusion_query ") != std::string::npos; | 497 extensions.find("GL_ARB_occlusion_query ") != std::string::npos; |
495 ext.b_GL_ARB_program_interface_query = | 498 ext.b_GL_ARB_program_interface_query = |
496 extensions.find("GL_ARB_program_interface_query ") != std::string::npos; | 499 extensions.find("GL_ARB_program_interface_query ") != std::string::npos; |
497 ext.b_GL_ARB_robustness = | 500 ext.b_GL_ARB_robustness = |
498 extensions.find("GL_ARB_robustness ") != std::string::npos; | 501 extensions.find("GL_ARB_robustness ") != std::string::npos; |
499 ext.b_GL_ARB_sync = extensions.find("GL_ARB_sync ") != std::string::npos; | 502 ext.b_GL_ARB_sync = extensions.find("GL_ARB_sync ") != std::string::npos; |
500 ext.b_GL_ARB_texture_storage = | 503 ext.b_GL_ARB_texture_storage = |
501 extensions.find("GL_ARB_texture_storage ") != std::string::npos; | 504 extensions.find("GL_ARB_texture_storage ") != std::string::npos; |
502 ext.b_GL_ARB_timer_query = | 505 ext.b_GL_ARB_timer_query = |
503 extensions.find("GL_ARB_timer_query ") != std::string::npos; | 506 extensions.find("GL_ARB_timer_query ") != std::string::npos; |
504 ext.b_GL_ARB_vertex_array_object = | 507 ext.b_GL_ARB_vertex_array_object = |
505 extensions.find("GL_ARB_vertex_array_object ") != std::string::npos; | 508 extensions.find("GL_ARB_vertex_array_object ") != std::string::npos; |
506 ext.b_GL_CHROMIUM_gles_depth_binding_hack = | 509 ext.b_GL_CHROMIUM_gles_depth_binding_hack = |
507 extensions.find("GL_CHROMIUM_gles_depth_binding_hack ") != | 510 extensions.find("GL_CHROMIUM_gles_depth_binding_hack ") != |
508 std::string::npos; | 511 std::string::npos; |
509 ext.b_GL_CHROMIUM_glgetstringi_hack = | 512 ext.b_GL_CHROMIUM_glgetstringi_hack = |
510 extensions.find("GL_CHROMIUM_glgetstringi_hack ") != std::string::npos; | 513 extensions.find("GL_CHROMIUM_glgetstringi_hack ") != std::string::npos; |
| 514 ext.b_GL_EXT_blend_func_extended = |
| 515 extensions.find("GL_EXT_blend_func_extended ") != std::string::npos; |
511 ext.b_GL_EXT_debug_marker = | 516 ext.b_GL_EXT_debug_marker = |
512 extensions.find("GL_EXT_debug_marker ") != std::string::npos; | 517 extensions.find("GL_EXT_debug_marker ") != std::string::npos; |
513 ext.b_GL_EXT_direct_state_access = | 518 ext.b_GL_EXT_direct_state_access = |
514 extensions.find("GL_EXT_direct_state_access ") != std::string::npos; | 519 extensions.find("GL_EXT_direct_state_access ") != std::string::npos; |
515 ext.b_GL_EXT_discard_framebuffer = | 520 ext.b_GL_EXT_discard_framebuffer = |
516 extensions.find("GL_EXT_discard_framebuffer ") != std::string::npos; | 521 extensions.find("GL_EXT_discard_framebuffer ") != std::string::npos; |
517 ext.b_GL_EXT_disjoint_timer_query = | 522 ext.b_GL_EXT_disjoint_timer_query = |
518 extensions.find("GL_EXT_disjoint_timer_query ") != std::string::npos; | 523 extensions.find("GL_EXT_disjoint_timer_query ") != std::string::npos; |
519 ext.b_GL_EXT_draw_buffers = | 524 ext.b_GL_EXT_draw_buffers = |
520 extensions.find("GL_EXT_draw_buffers ") != std::string::npos; | 525 extensions.find("GL_EXT_draw_buffers ") != std::string::npos; |
521 ext.b_GL_EXT_framebuffer_blit = | 526 ext.b_GL_EXT_framebuffer_blit = |
522 extensions.find("GL_EXT_framebuffer_blit ") != std::string::npos; | 527 extensions.find("GL_EXT_framebuffer_blit ") != std::string::npos; |
523 ext.b_GL_EXT_framebuffer_multisample = | 528 ext.b_GL_EXT_framebuffer_multisample = |
524 extensions.find("GL_EXT_framebuffer_multisample ") != std::string::npos; | 529 extensions.find("GL_EXT_framebuffer_multisample ") != std::string::npos; |
525 ext.b_GL_EXT_framebuffer_object = | 530 ext.b_GL_EXT_framebuffer_object = |
526 extensions.find("GL_EXT_framebuffer_object ") != std::string::npos; | 531 extensions.find("GL_EXT_framebuffer_object ") != std::string::npos; |
| 532 ext.b_GL_EXT_gpu_shader4 = |
| 533 extensions.find("GL_EXT_gpu_shader4 ") != std::string::npos; |
527 ext.b_GL_EXT_map_buffer_range = | 534 ext.b_GL_EXT_map_buffer_range = |
528 extensions.find("GL_EXT_map_buffer_range ") != std::string::npos; | 535 extensions.find("GL_EXT_map_buffer_range ") != std::string::npos; |
529 ext.b_GL_EXT_multisampled_render_to_texture = | 536 ext.b_GL_EXT_multisampled_render_to_texture = |
530 extensions.find("GL_EXT_multisampled_render_to_texture ") != | 537 extensions.find("GL_EXT_multisampled_render_to_texture ") != |
531 std::string::npos; | 538 std::string::npos; |
532 ext.b_GL_EXT_occlusion_query_boolean = | 539 ext.b_GL_EXT_occlusion_query_boolean = |
533 extensions.find("GL_EXT_occlusion_query_boolean ") != std::string::npos; | 540 extensions.find("GL_EXT_occlusion_query_boolean ") != std::string::npos; |
534 ext.b_GL_EXT_robustness = | 541 ext.b_GL_EXT_robustness = |
535 extensions.find("GL_EXT_robustness ") != std::string::npos; | 542 extensions.find("GL_EXT_robustness ") != std::string::npos; |
536 ext.b_GL_EXT_texture_storage = | 543 ext.b_GL_EXT_texture_storage = |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 } | 597 } |
591 | 598 |
592 debug_fn.glBindBufferRangeFn = 0; | 599 debug_fn.glBindBufferRangeFn = 0; |
593 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) { | 600 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) { |
594 fn.glBindBufferRangeFn = reinterpret_cast<glBindBufferRangeProc>( | 601 fn.glBindBufferRangeFn = reinterpret_cast<glBindBufferRangeProc>( |
595 GetGLProcAddress("glBindBufferRange")); | 602 GetGLProcAddress("glBindBufferRange")); |
596 DCHECK(fn.glBindBufferRangeFn); | 603 DCHECK(fn.glBindBufferRangeFn); |
597 } | 604 } |
598 | 605 |
599 debug_fn.glBindFragDataLocationFn = 0; | 606 debug_fn.glBindFragDataLocationFn = 0; |
600 if (ver->IsAtLeastGL(3u, 0u)) { | 607 if (ver->IsAtLeastGL(3u, 0u) || ext.b_GL_ARB_blend_func_extended) { |
601 fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>( | 608 fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>( |
602 GetGLProcAddress("glBindFragDataLocation")); | 609 GetGLProcAddress("glBindFragDataLocation")); |
603 DCHECK(fn.glBindFragDataLocationFn); | 610 DCHECK(fn.glBindFragDataLocationFn); |
| 611 } else if (ext.b_GL_EXT_gpu_shader4 || ext.b_GL_EXT_blend_func_extended) { |
| 612 fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>( |
| 613 GetGLProcAddress("glBindFragDataLocationEXT")); |
| 614 DCHECK(fn.glBindFragDataLocationFn); |
604 } | 615 } |
605 | 616 |
606 debug_fn.glBindFragDataLocationIndexedFn = 0; | 617 debug_fn.glBindFragDataLocationIndexedFn = 0; |
607 if (ver->IsAtLeastGL(3u, 3u)) { | 618 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_blend_func_extended) { |
608 fn.glBindFragDataLocationIndexedFn = | 619 fn.glBindFragDataLocationIndexedFn = |
609 reinterpret_cast<glBindFragDataLocationIndexedProc>( | 620 reinterpret_cast<glBindFragDataLocationIndexedProc>( |
610 GetGLProcAddress("glBindFragDataLocationIndexed")); | 621 GetGLProcAddress("glBindFragDataLocationIndexed")); |
611 DCHECK(fn.glBindFragDataLocationIndexedFn); | 622 DCHECK(fn.glBindFragDataLocationIndexedFn); |
| 623 } else if (ext.b_GL_EXT_blend_func_extended) { |
| 624 fn.glBindFragDataLocationIndexedFn = |
| 625 reinterpret_cast<glBindFragDataLocationIndexedProc>( |
| 626 GetGLProcAddress("glBindFragDataLocationIndexedEXT")); |
| 627 DCHECK(fn.glBindFragDataLocationIndexedFn); |
612 } | 628 } |
613 | 629 |
614 debug_fn.glBindFramebufferEXTFn = 0; | 630 debug_fn.glBindFramebufferEXTFn = 0; |
615 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { | 631 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { |
616 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( | 632 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( |
617 GetGLProcAddress("glBindFramebuffer")); | 633 GetGLProcAddress("glBindFramebuffer")); |
618 DCHECK(fn.glBindFramebufferEXTFn); | 634 DCHECK(fn.glBindFramebufferEXTFn); |
619 } else if (ext.b_GL_EXT_framebuffer_object) { | 635 } else if (ext.b_GL_EXT_framebuffer_object) { |
620 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( | 636 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( |
621 GetGLProcAddress("glBindFramebufferEXT")); | 637 GetGLProcAddress("glBindFramebufferEXT")); |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 DCHECK(fn.glGetActiveUniformsivFn); | 1263 DCHECK(fn.glGetActiveUniformsivFn); |
1248 } | 1264 } |
1249 | 1265 |
1250 debug_fn.glGetFenceivNVFn = 0; | 1266 debug_fn.glGetFenceivNVFn = 0; |
1251 if (ext.b_GL_NV_fence) { | 1267 if (ext.b_GL_NV_fence) { |
1252 fn.glGetFenceivNVFn = reinterpret_cast<glGetFenceivNVProc>( | 1268 fn.glGetFenceivNVFn = reinterpret_cast<glGetFenceivNVProc>( |
1253 GetGLProcAddress("glGetFenceivNV")); | 1269 GetGLProcAddress("glGetFenceivNV")); |
1254 DCHECK(fn.glGetFenceivNVFn); | 1270 DCHECK(fn.glGetFenceivNVFn); |
1255 } | 1271 } |
1256 | 1272 |
| 1273 debug_fn.glGetFragDataIndexFn = 0; |
| 1274 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_blend_func_extended) { |
| 1275 fn.glGetFragDataIndexFn = reinterpret_cast<glGetFragDataIndexProc>( |
| 1276 GetGLProcAddress("glGetFragDataIndex")); |
| 1277 DCHECK(fn.glGetFragDataIndexFn); |
| 1278 } else if (ext.b_GL_EXT_blend_func_extended) { |
| 1279 fn.glGetFragDataIndexFn = reinterpret_cast<glGetFragDataIndexProc>( |
| 1280 GetGLProcAddress("glGetFragDataIndexEXT")); |
| 1281 DCHECK(fn.glGetFragDataIndexFn); |
| 1282 } |
| 1283 |
1257 debug_fn.glGetFragDataLocationFn = 0; | 1284 debug_fn.glGetFragDataLocationFn = 0; |
1258 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) { | 1285 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) { |
1259 fn.glGetFragDataLocationFn = reinterpret_cast<glGetFragDataLocationProc>( | 1286 fn.glGetFragDataLocationFn = reinterpret_cast<glGetFragDataLocationProc>( |
1260 GetGLProcAddress("glGetFragDataLocation")); | 1287 GetGLProcAddress("glGetFragDataLocation")); |
1261 DCHECK(fn.glGetFragDataLocationFn); | 1288 DCHECK(fn.glGetFragDataLocationFn); |
1262 } | 1289 } |
1263 | 1290 |
1264 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = 0; | 1291 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = 0; |
1265 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { | 1292 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { |
1266 fn.glGetFramebufferAttachmentParameterivEXTFn = | 1293 fn.glGetFramebufferAttachmentParameterivEXTFn = |
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3406 g_driver_gl.debug_fn.glGetFenceivNVFn(fence, pname, params); | 3433 g_driver_gl.debug_fn.glGetFenceivNVFn(fence, pname, params); |
3407 } | 3434 } |
3408 | 3435 |
3409 static void GL_BINDING_CALL Debug_glGetFloatv(GLenum pname, GLfloat* params) { | 3436 static void GL_BINDING_CALL Debug_glGetFloatv(GLenum pname, GLfloat* params) { |
3410 GL_SERVICE_LOG("glGetFloatv" | 3437 GL_SERVICE_LOG("glGetFloatv" |
3411 << "(" << GLEnums::GetStringEnum(pname) << ", " | 3438 << "(" << GLEnums::GetStringEnum(pname) << ", " |
3412 << static_cast<const void*>(params) << ")"); | 3439 << static_cast<const void*>(params) << ")"); |
3413 g_driver_gl.debug_fn.glGetFloatvFn(pname, params); | 3440 g_driver_gl.debug_fn.glGetFloatvFn(pname, params); |
3414 } | 3441 } |
3415 | 3442 |
| 3443 static GLint GL_BINDING_CALL Debug_glGetFragDataIndex(GLuint program, |
| 3444 const char* name) { |
| 3445 GL_SERVICE_LOG("glGetFragDataIndex" |
| 3446 << "(" << program << ", " << name << ")"); |
| 3447 GLint result = g_driver_gl.debug_fn.glGetFragDataIndexFn(program, name); |
| 3448 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 3449 return result; |
| 3450 } |
| 3451 |
3416 static GLint GL_BINDING_CALL Debug_glGetFragDataLocation(GLuint program, | 3452 static GLint GL_BINDING_CALL Debug_glGetFragDataLocation(GLuint program, |
3417 const char* name) { | 3453 const char* name) { |
3418 GL_SERVICE_LOG("glGetFragDataLocation" | 3454 GL_SERVICE_LOG("glGetFragDataLocation" |
3419 << "(" << program << ", " << name << ")"); | 3455 << "(" << program << ", " << name << ")"); |
3420 GLint result = g_driver_gl.debug_fn.glGetFragDataLocationFn(program, name); | 3456 GLint result = g_driver_gl.debug_fn.glGetFragDataLocationFn(program, name); |
3421 GL_SERVICE_LOG("GL_RESULT: " << result); | 3457 GL_SERVICE_LOG("GL_RESULT: " << result); |
3422 return result; | 3458 return result; |
3423 } | 3459 } |
3424 | 3460 |
3425 static void GL_BINDING_CALL | 3461 static void GL_BINDING_CALL |
(...skipping 2377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5803 fn.glGetErrorFn = Debug_glGetError; | 5839 fn.glGetErrorFn = Debug_glGetError; |
5804 } | 5840 } |
5805 if (!debug_fn.glGetFenceivNVFn) { | 5841 if (!debug_fn.glGetFenceivNVFn) { |
5806 debug_fn.glGetFenceivNVFn = fn.glGetFenceivNVFn; | 5842 debug_fn.glGetFenceivNVFn = fn.glGetFenceivNVFn; |
5807 fn.glGetFenceivNVFn = Debug_glGetFenceivNV; | 5843 fn.glGetFenceivNVFn = Debug_glGetFenceivNV; |
5808 } | 5844 } |
5809 if (!debug_fn.glGetFloatvFn) { | 5845 if (!debug_fn.glGetFloatvFn) { |
5810 debug_fn.glGetFloatvFn = fn.glGetFloatvFn; | 5846 debug_fn.glGetFloatvFn = fn.glGetFloatvFn; |
5811 fn.glGetFloatvFn = Debug_glGetFloatv; | 5847 fn.glGetFloatvFn = Debug_glGetFloatv; |
5812 } | 5848 } |
| 5849 if (!debug_fn.glGetFragDataIndexFn) { |
| 5850 debug_fn.glGetFragDataIndexFn = fn.glGetFragDataIndexFn; |
| 5851 fn.glGetFragDataIndexFn = Debug_glGetFragDataIndex; |
| 5852 } |
5813 if (!debug_fn.glGetFragDataLocationFn) { | 5853 if (!debug_fn.glGetFragDataLocationFn) { |
5814 debug_fn.glGetFragDataLocationFn = fn.glGetFragDataLocationFn; | 5854 debug_fn.glGetFragDataLocationFn = fn.glGetFragDataLocationFn; |
5815 fn.glGetFragDataLocationFn = Debug_glGetFragDataLocation; | 5855 fn.glGetFragDataLocationFn = Debug_glGetFragDataLocation; |
5816 } | 5856 } |
5817 if (!debug_fn.glGetFramebufferAttachmentParameterivEXTFn) { | 5857 if (!debug_fn.glGetFramebufferAttachmentParameterivEXTFn) { |
5818 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = | 5858 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = |
5819 fn.glGetFramebufferAttachmentParameterivEXTFn; | 5859 fn.glGetFramebufferAttachmentParameterivEXTFn; |
5820 fn.glGetFramebufferAttachmentParameterivEXTFn = | 5860 fn.glGetFramebufferAttachmentParameterivEXTFn = |
5821 Debug_glGetFramebufferAttachmentParameterivEXT; | 5861 Debug_glGetFramebufferAttachmentParameterivEXT; |
5822 } | 5862 } |
(...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7311 } | 7351 } |
7312 | 7352 |
7313 void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { | 7353 void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { |
7314 driver_->fn.glGetFenceivNVFn(fence, pname, params); | 7354 driver_->fn.glGetFenceivNVFn(fence, pname, params); |
7315 } | 7355 } |
7316 | 7356 |
7317 void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) { | 7357 void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) { |
7318 driver_->fn.glGetFloatvFn(pname, params); | 7358 driver_->fn.glGetFloatvFn(pname, params); |
7319 } | 7359 } |
7320 | 7360 |
| 7361 GLint GLApiBase::glGetFragDataIndexFn(GLuint program, const char* name) { |
| 7362 return driver_->fn.glGetFragDataIndexFn(program, name); |
| 7363 } |
| 7364 |
7321 GLint GLApiBase::glGetFragDataLocationFn(GLuint program, const char* name) { | 7365 GLint GLApiBase::glGetFragDataLocationFn(GLuint program, const char* name) { |
7322 return driver_->fn.glGetFragDataLocationFn(program, name); | 7366 return driver_->fn.glGetFragDataLocationFn(program, name); |
7323 } | 7367 } |
7324 | 7368 |
7325 void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target, | 7369 void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target, |
7326 GLenum attachment, | 7370 GLenum attachment, |
7327 GLenum pname, | 7371 GLenum pname, |
7328 GLint* params) { | 7372 GLint* params) { |
7329 driver_->fn.glGetFramebufferAttachmentParameterivEXTFn(target, attachment, | 7373 driver_->fn.glGetFramebufferAttachmentParameterivEXTFn(target, attachment, |
7330 pname, params); | 7374 pname, params); |
(...skipping 1975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9306 void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { | 9350 void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { |
9307 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV") | 9351 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV") |
9308 gl_api_->glGetFenceivNVFn(fence, pname, params); | 9352 gl_api_->glGetFenceivNVFn(fence, pname, params); |
9309 } | 9353 } |
9310 | 9354 |
9311 void TraceGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) { | 9355 void TraceGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) { |
9312 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv") | 9356 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv") |
9313 gl_api_->glGetFloatvFn(pname, params); | 9357 gl_api_->glGetFloatvFn(pname, params); |
9314 } | 9358 } |
9315 | 9359 |
| 9360 GLint TraceGLApi::glGetFragDataIndexFn(GLuint program, const char* name) { |
| 9361 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataIndex") |
| 9362 return gl_api_->glGetFragDataIndexFn(program, name); |
| 9363 } |
| 9364 |
9316 GLint TraceGLApi::glGetFragDataLocationFn(GLuint program, const char* name) { | 9365 GLint TraceGLApi::glGetFragDataLocationFn(GLuint program, const char* name) { |
9317 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation") | 9366 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation") |
9318 return gl_api_->glGetFragDataLocationFn(program, name); | 9367 return gl_api_->glGetFragDataLocationFn(program, name); |
9319 } | 9368 } |
9320 | 9369 |
9321 void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target, | 9370 void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target, |
9322 GLenum attachment, | 9371 GLenum attachment, |
9323 GLenum pname, | 9372 GLenum pname, |
9324 GLint* params) { | 9373 GLint* params) { |
9325 TRACE_EVENT_BINARY_EFFICIENT0( | 9374 TRACE_EVENT_BINARY_EFFICIENT0( |
(...skipping 2284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11610 GLint* params) { | 11659 GLint* params) { |
11611 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context"; | 11660 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context"; |
11612 LOG(ERROR) << "Trying to call glGetFenceivNV() without current GL context"; | 11661 LOG(ERROR) << "Trying to call glGetFenceivNV() without current GL context"; |
11613 } | 11662 } |
11614 | 11663 |
11615 void NoContextGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) { | 11664 void NoContextGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) { |
11616 NOTREACHED() << "Trying to call glGetFloatv() without current GL context"; | 11665 NOTREACHED() << "Trying to call glGetFloatv() without current GL context"; |
11617 LOG(ERROR) << "Trying to call glGetFloatv() without current GL context"; | 11666 LOG(ERROR) << "Trying to call glGetFloatv() without current GL context"; |
11618 } | 11667 } |
11619 | 11668 |
| 11669 GLint NoContextGLApi::glGetFragDataIndexFn(GLuint program, const char* name) { |
| 11670 NOTREACHED() |
| 11671 << "Trying to call glGetFragDataIndex() without current GL context"; |
| 11672 LOG(ERROR) |
| 11673 << "Trying to call glGetFragDataIndex() without current GL context"; |
| 11674 return 0; |
| 11675 } |
| 11676 |
11620 GLint NoContextGLApi::glGetFragDataLocationFn(GLuint program, | 11677 GLint NoContextGLApi::glGetFragDataLocationFn(GLuint program, |
11621 const char* name) { | 11678 const char* name) { |
11622 NOTREACHED() | 11679 NOTREACHED() |
11623 << "Trying to call glGetFragDataLocation() without current GL context"; | 11680 << "Trying to call glGetFragDataLocation() without current GL context"; |
11624 LOG(ERROR) | 11681 LOG(ERROR) |
11625 << "Trying to call glGetFragDataLocation() without current GL context"; | 11682 << "Trying to call glGetFragDataLocation() without current GL context"; |
11626 return 0; | 11683 return 0; |
11627 } | 11684 } |
11628 | 11685 |
11629 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn( | 11686 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn( |
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13142 | 13199 |
13143 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, | 13200 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, |
13144 GLbitfield flags, | 13201 GLbitfield flags, |
13145 GLuint64 timeout) { | 13202 GLuint64 timeout) { |
13146 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; | 13203 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; |
13147 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; | 13204 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; |
13148 return static_cast<GLenum>(0); | 13205 return static_cast<GLenum>(0); |
13149 } | 13206 } |
13150 | 13207 |
13151 } // namespace gfx | 13208 } // namespace gfx |
OLD | NEW |