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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 GetGLProcAddress("glGetAttribLocation")); | 195 GetGLProcAddress("glGetAttribLocation")); |
196 fn.glGetBooleanvFn = | 196 fn.glGetBooleanvFn = |
197 reinterpret_cast<glGetBooleanvProc>(GetGLProcAddress("glGetBooleanv")); | 197 reinterpret_cast<glGetBooleanvProc>(GetGLProcAddress("glGetBooleanv")); |
198 fn.glGetBufferParameterivFn = reinterpret_cast<glGetBufferParameterivProc>( | 198 fn.glGetBufferParameterivFn = reinterpret_cast<glGetBufferParameterivProc>( |
199 GetGLProcAddress("glGetBufferParameteriv")); | 199 GetGLProcAddress("glGetBufferParameteriv")); |
200 fn.glGetErrorFn = | 200 fn.glGetErrorFn = |
201 reinterpret_cast<glGetErrorProc>(GetGLProcAddress("glGetError")); | 201 reinterpret_cast<glGetErrorProc>(GetGLProcAddress("glGetError")); |
202 fn.glGetFenceivNVFn = 0; | 202 fn.glGetFenceivNVFn = 0; |
203 fn.glGetFloatvFn = | 203 fn.glGetFloatvFn = |
204 reinterpret_cast<glGetFloatvProc>(GetGLProcAddress("glGetFloatv")); | 204 reinterpret_cast<glGetFloatvProc>(GetGLProcAddress("glGetFloatv")); |
| 205 fn.glGetFragDataIndexFn = 0; |
205 fn.glGetFragDataLocationFn = 0; | 206 fn.glGetFragDataLocationFn = 0; |
206 fn.glGetFramebufferAttachmentParameterivEXTFn = 0; | 207 fn.glGetFramebufferAttachmentParameterivEXTFn = 0; |
207 fn.glGetGraphicsResetStatusARBFn = 0; | 208 fn.glGetGraphicsResetStatusARBFn = 0; |
208 fn.glGetInteger64i_vFn = 0; | 209 fn.glGetInteger64i_vFn = 0; |
209 fn.glGetInteger64vFn = 0; | 210 fn.glGetInteger64vFn = 0; |
210 fn.glGetIntegeri_vFn = 0; | 211 fn.glGetIntegeri_vFn = 0; |
211 fn.glGetIntegervFn = | 212 fn.glGetIntegervFn = |
212 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv")); | 213 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv")); |
213 fn.glGetInternalformativFn = 0; | 214 fn.glGetInternalformativFn = 0; |
214 fn.glGetProgramBinaryFn = 0; | 215 fn.glGetProgramBinaryFn = 0; |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 extensions.find("GL_ANGLE_framebuffer_multisample ") != std::string::npos; | 475 extensions.find("GL_ANGLE_framebuffer_multisample ") != std::string::npos; |
475 ext.b_GL_ANGLE_instanced_arrays = | 476 ext.b_GL_ANGLE_instanced_arrays = |
476 extensions.find("GL_ANGLE_instanced_arrays ") != std::string::npos; | 477 extensions.find("GL_ANGLE_instanced_arrays ") != std::string::npos; |
477 ext.b_GL_ANGLE_translated_shader_source = | 478 ext.b_GL_ANGLE_translated_shader_source = |
478 extensions.find("GL_ANGLE_translated_shader_source ") != | 479 extensions.find("GL_ANGLE_translated_shader_source ") != |
479 std::string::npos; | 480 std::string::npos; |
480 ext.b_GL_APPLE_fence = | 481 ext.b_GL_APPLE_fence = |
481 extensions.find("GL_APPLE_fence ") != std::string::npos; | 482 extensions.find("GL_APPLE_fence ") != std::string::npos; |
482 ext.b_GL_APPLE_vertex_array_object = | 483 ext.b_GL_APPLE_vertex_array_object = |
483 extensions.find("GL_APPLE_vertex_array_object ") != std::string::npos; | 484 extensions.find("GL_APPLE_vertex_array_object ") != std::string::npos; |
| 485 ext.b_GL_ARB_blend_func_extended = |
| 486 extensions.find("GL_ARB_blend_func_extended ") != std::string::npos; |
484 ext.b_GL_ARB_draw_buffers = | 487 ext.b_GL_ARB_draw_buffers = |
485 extensions.find("GL_ARB_draw_buffers ") != std::string::npos; | 488 extensions.find("GL_ARB_draw_buffers ") != std::string::npos; |
486 ext.b_GL_ARB_draw_instanced = | 489 ext.b_GL_ARB_draw_instanced = |
487 extensions.find("GL_ARB_draw_instanced ") != std::string::npos; | 490 extensions.find("GL_ARB_draw_instanced ") != std::string::npos; |
488 ext.b_GL_ARB_get_program_binary = | 491 ext.b_GL_ARB_get_program_binary = |
489 extensions.find("GL_ARB_get_program_binary ") != std::string::npos; | 492 extensions.find("GL_ARB_get_program_binary ") != std::string::npos; |
490 ext.b_GL_ARB_instanced_arrays = | 493 ext.b_GL_ARB_instanced_arrays = |
491 extensions.find("GL_ARB_instanced_arrays ") != std::string::npos; | 494 extensions.find("GL_ARB_instanced_arrays ") != std::string::npos; |
492 ext.b_GL_ARB_map_buffer_range = | 495 ext.b_GL_ARB_map_buffer_range = |
493 extensions.find("GL_ARB_map_buffer_range ") != std::string::npos; | 496 extensions.find("GL_ARB_map_buffer_range ") != std::string::npos; |
494 ext.b_GL_ARB_occlusion_query = | 497 ext.b_GL_ARB_occlusion_query = |
495 extensions.find("GL_ARB_occlusion_query ") != std::string::npos; | 498 extensions.find("GL_ARB_occlusion_query ") != std::string::npos; |
496 ext.b_GL_ARB_program_interface_query = | 499 ext.b_GL_ARB_program_interface_query = |
497 extensions.find("GL_ARB_program_interface_query ") != std::string::npos; | 500 extensions.find("GL_ARB_program_interface_query ") != std::string::npos; |
498 ext.b_GL_ARB_robustness = | 501 ext.b_GL_ARB_robustness = |
499 extensions.find("GL_ARB_robustness ") != std::string::npos; | 502 extensions.find("GL_ARB_robustness ") != std::string::npos; |
500 ext.b_GL_ARB_sync = extensions.find("GL_ARB_sync ") != std::string::npos; | 503 ext.b_GL_ARB_sync = extensions.find("GL_ARB_sync ") != std::string::npos; |
501 ext.b_GL_ARB_texture_storage = | 504 ext.b_GL_ARB_texture_storage = |
502 extensions.find("GL_ARB_texture_storage ") != std::string::npos; | 505 extensions.find("GL_ARB_texture_storage ") != std::string::npos; |
503 ext.b_GL_ARB_timer_query = | 506 ext.b_GL_ARB_timer_query = |
504 extensions.find("GL_ARB_timer_query ") != std::string::npos; | 507 extensions.find("GL_ARB_timer_query ") != std::string::npos; |
505 ext.b_GL_ARB_vertex_array_object = | 508 ext.b_GL_ARB_vertex_array_object = |
506 extensions.find("GL_ARB_vertex_array_object ") != std::string::npos; | 509 extensions.find("GL_ARB_vertex_array_object ") != std::string::npos; |
507 ext.b_GL_CHROMIUM_gles_depth_binding_hack = | 510 ext.b_GL_CHROMIUM_gles_depth_binding_hack = |
508 extensions.find("GL_CHROMIUM_gles_depth_binding_hack ") != | 511 extensions.find("GL_CHROMIUM_gles_depth_binding_hack ") != |
509 std::string::npos; | 512 std::string::npos; |
510 ext.b_GL_CHROMIUM_glgetstringi_hack = | 513 ext.b_GL_CHROMIUM_glgetstringi_hack = |
511 extensions.find("GL_CHROMIUM_glgetstringi_hack ") != std::string::npos; | 514 extensions.find("GL_CHROMIUM_glgetstringi_hack ") != std::string::npos; |
| 515 ext.b_GL_EXT_blend_func_extended = |
| 516 extensions.find("GL_EXT_blend_func_extended ") != std::string::npos; |
512 ext.b_GL_EXT_debug_marker = | 517 ext.b_GL_EXT_debug_marker = |
513 extensions.find("GL_EXT_debug_marker ") != std::string::npos; | 518 extensions.find("GL_EXT_debug_marker ") != std::string::npos; |
514 ext.b_GL_EXT_direct_state_access = | 519 ext.b_GL_EXT_direct_state_access = |
515 extensions.find("GL_EXT_direct_state_access ") != std::string::npos; | 520 extensions.find("GL_EXT_direct_state_access ") != std::string::npos; |
516 ext.b_GL_EXT_discard_framebuffer = | 521 ext.b_GL_EXT_discard_framebuffer = |
517 extensions.find("GL_EXT_discard_framebuffer ") != std::string::npos; | 522 extensions.find("GL_EXT_discard_framebuffer ") != std::string::npos; |
518 ext.b_GL_EXT_disjoint_timer_query = | 523 ext.b_GL_EXT_disjoint_timer_query = |
519 extensions.find("GL_EXT_disjoint_timer_query ") != std::string::npos; | 524 extensions.find("GL_EXT_disjoint_timer_query ") != std::string::npos; |
520 ext.b_GL_EXT_draw_buffers = | 525 ext.b_GL_EXT_draw_buffers = |
521 extensions.find("GL_EXT_draw_buffers ") != std::string::npos; | 526 extensions.find("GL_EXT_draw_buffers ") != std::string::npos; |
522 ext.b_GL_EXT_framebuffer_blit = | 527 ext.b_GL_EXT_framebuffer_blit = |
523 extensions.find("GL_EXT_framebuffer_blit ") != std::string::npos; | 528 extensions.find("GL_EXT_framebuffer_blit ") != std::string::npos; |
524 ext.b_GL_EXT_framebuffer_multisample = | 529 ext.b_GL_EXT_framebuffer_multisample = |
525 extensions.find("GL_EXT_framebuffer_multisample ") != std::string::npos; | 530 extensions.find("GL_EXT_framebuffer_multisample ") != std::string::npos; |
526 ext.b_GL_EXT_framebuffer_object = | 531 ext.b_GL_EXT_framebuffer_object = |
527 extensions.find("GL_EXT_framebuffer_object ") != std::string::npos; | 532 extensions.find("GL_EXT_framebuffer_object ") != std::string::npos; |
| 533 ext.b_GL_EXT_gpu_shader4 = |
| 534 extensions.find("GL_EXT_gpu_shader4 ") != std::string::npos; |
528 ext.b_GL_EXT_map_buffer_range = | 535 ext.b_GL_EXT_map_buffer_range = |
529 extensions.find("GL_EXT_map_buffer_range ") != std::string::npos; | 536 extensions.find("GL_EXT_map_buffer_range ") != std::string::npos; |
530 ext.b_GL_EXT_multisampled_render_to_texture = | 537 ext.b_GL_EXT_multisampled_render_to_texture = |
531 extensions.find("GL_EXT_multisampled_render_to_texture ") != | 538 extensions.find("GL_EXT_multisampled_render_to_texture ") != |
532 std::string::npos; | 539 std::string::npos; |
533 ext.b_GL_EXT_occlusion_query_boolean = | 540 ext.b_GL_EXT_occlusion_query_boolean = |
534 extensions.find("GL_EXT_occlusion_query_boolean ") != std::string::npos; | 541 extensions.find("GL_EXT_occlusion_query_boolean ") != std::string::npos; |
535 ext.b_GL_EXT_robustness = | 542 ext.b_GL_EXT_robustness = |
536 extensions.find("GL_EXT_robustness ") != std::string::npos; | 543 extensions.find("GL_EXT_robustness ") != std::string::npos; |
537 ext.b_GL_EXT_texture_storage = | 544 ext.b_GL_EXT_texture_storage = |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 GetGLProcAddress("glBindBufferBase")); | 601 GetGLProcAddress("glBindBufferBase")); |
595 } | 602 } |
596 | 603 |
597 debug_fn.glBindBufferRangeFn = 0; | 604 debug_fn.glBindBufferRangeFn = 0; |
598 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) { | 605 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) { |
599 fn.glBindBufferRangeFn = reinterpret_cast<glBindBufferRangeProc>( | 606 fn.glBindBufferRangeFn = reinterpret_cast<glBindBufferRangeProc>( |
600 GetGLProcAddress("glBindBufferRange")); | 607 GetGLProcAddress("glBindBufferRange")); |
601 } | 608 } |
602 | 609 |
603 debug_fn.glBindFragDataLocationFn = 0; | 610 debug_fn.glBindFragDataLocationFn = 0; |
604 if (ver->IsAtLeastGL(3u, 0u)) { | 611 if (ver->IsAtLeastGL(3u, 0u) || ext.b_GL_ARB_blend_func_extended) { |
605 fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>( | 612 fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>( |
606 GetGLProcAddress("glBindFragDataLocation")); | 613 GetGLProcAddress("glBindFragDataLocation")); |
| 614 } else if (ext.b_GL_EXT_gpu_shader4 || ext.b_GL_EXT_blend_func_extended) { |
| 615 fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>( |
| 616 GetGLProcAddress("glBindFragDataLocationEXT")); |
607 } | 617 } |
608 | 618 |
609 debug_fn.glBindFragDataLocationIndexedFn = 0; | 619 debug_fn.glBindFragDataLocationIndexedFn = 0; |
610 if (ver->IsAtLeastGL(3u, 3u)) { | 620 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_blend_func_extended) { |
611 fn.glBindFragDataLocationIndexedFn = | 621 fn.glBindFragDataLocationIndexedFn = |
612 reinterpret_cast<glBindFragDataLocationIndexedProc>( | 622 reinterpret_cast<glBindFragDataLocationIndexedProc>( |
613 GetGLProcAddress("glBindFragDataLocationIndexed")); | 623 GetGLProcAddress("glBindFragDataLocationIndexed")); |
| 624 } else if (ext.b_GL_EXT_blend_func_extended) { |
| 625 fn.glBindFragDataLocationIndexedFn = |
| 626 reinterpret_cast<glBindFragDataLocationIndexedProc>( |
| 627 GetGLProcAddress("glBindFragDataLocationIndexedEXT")); |
614 } | 628 } |
615 | 629 |
616 debug_fn.glBindFramebufferEXTFn = 0; | 630 debug_fn.glBindFramebufferEXTFn = 0; |
617 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { | 631 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { |
618 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( | 632 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( |
619 GetGLProcAddress("glBindFramebuffer")); | 633 GetGLProcAddress("glBindFramebuffer")); |
620 } else if (ext.b_GL_EXT_framebuffer_object) { | 634 } else if (ext.b_GL_EXT_framebuffer_object) { |
621 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( | 635 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( |
622 GetGLProcAddress("glBindFramebufferEXT")); | 636 GetGLProcAddress("glBindFramebufferEXT")); |
623 } | 637 } |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 fn.glGetActiveUniformsivFn = reinterpret_cast<glGetActiveUniformsivProc>( | 1164 fn.glGetActiveUniformsivFn = reinterpret_cast<glGetActiveUniformsivProc>( |
1151 GetGLProcAddress("glGetActiveUniformsiv")); | 1165 GetGLProcAddress("glGetActiveUniformsiv")); |
1152 } | 1166 } |
1153 | 1167 |
1154 debug_fn.glGetFenceivNVFn = 0; | 1168 debug_fn.glGetFenceivNVFn = 0; |
1155 if (ext.b_GL_NV_fence) { | 1169 if (ext.b_GL_NV_fence) { |
1156 fn.glGetFenceivNVFn = reinterpret_cast<glGetFenceivNVProc>( | 1170 fn.glGetFenceivNVFn = reinterpret_cast<glGetFenceivNVProc>( |
1157 GetGLProcAddress("glGetFenceivNV")); | 1171 GetGLProcAddress("glGetFenceivNV")); |
1158 } | 1172 } |
1159 | 1173 |
| 1174 debug_fn.glGetFragDataIndexFn = 0; |
| 1175 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_blend_func_extended) { |
| 1176 fn.glGetFragDataIndexFn = reinterpret_cast<glGetFragDataIndexProc>( |
| 1177 GetGLProcAddress("glGetFragDataIndex")); |
| 1178 } else if (ext.b_GL_EXT_blend_func_extended) { |
| 1179 fn.glGetFragDataIndexFn = reinterpret_cast<glGetFragDataIndexProc>( |
| 1180 GetGLProcAddress("glGetFragDataIndexEXT")); |
| 1181 } |
| 1182 |
1160 debug_fn.glGetFragDataLocationFn = 0; | 1183 debug_fn.glGetFragDataLocationFn = 0; |
1161 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) { | 1184 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) { |
1162 fn.glGetFragDataLocationFn = reinterpret_cast<glGetFragDataLocationProc>( | 1185 fn.glGetFragDataLocationFn = reinterpret_cast<glGetFragDataLocationProc>( |
1163 GetGLProcAddress("glGetFragDataLocation")); | 1186 GetGLProcAddress("glGetFragDataLocation")); |
1164 } | 1187 } |
1165 | 1188 |
1166 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = 0; | 1189 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = 0; |
1167 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { | 1190 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { |
1168 fn.glGetFramebufferAttachmentParameterivEXTFn = | 1191 fn.glGetFramebufferAttachmentParameterivEXTFn = |
1169 reinterpret_cast<glGetFramebufferAttachmentParameterivEXTProc>( | 1192 reinterpret_cast<glGetFramebufferAttachmentParameterivEXTProc>( |
(...skipping 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3181 g_driver_gl.debug_fn.glGetFenceivNVFn(fence, pname, params); | 3204 g_driver_gl.debug_fn.glGetFenceivNVFn(fence, pname, params); |
3182 } | 3205 } |
3183 | 3206 |
3184 static void GL_BINDING_CALL Debug_glGetFloatv(GLenum pname, GLfloat* params) { | 3207 static void GL_BINDING_CALL Debug_glGetFloatv(GLenum pname, GLfloat* params) { |
3185 GL_SERVICE_LOG("glGetFloatv" | 3208 GL_SERVICE_LOG("glGetFloatv" |
3186 << "(" << GLEnums::GetStringEnum(pname) << ", " | 3209 << "(" << GLEnums::GetStringEnum(pname) << ", " |
3187 << static_cast<const void*>(params) << ")"); | 3210 << static_cast<const void*>(params) << ")"); |
3188 g_driver_gl.debug_fn.glGetFloatvFn(pname, params); | 3211 g_driver_gl.debug_fn.glGetFloatvFn(pname, params); |
3189 } | 3212 } |
3190 | 3213 |
| 3214 static GLint GL_BINDING_CALL Debug_glGetFragDataIndex(GLuint program, |
| 3215 const char* name) { |
| 3216 GL_SERVICE_LOG("glGetFragDataIndex" |
| 3217 << "(" << program << ", " << name << ")"); |
| 3218 GLint result = g_driver_gl.debug_fn.glGetFragDataIndexFn(program, name); |
| 3219 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 3220 return result; |
| 3221 } |
| 3222 |
3191 static GLint GL_BINDING_CALL Debug_glGetFragDataLocation(GLuint program, | 3223 static GLint GL_BINDING_CALL Debug_glGetFragDataLocation(GLuint program, |
3192 const char* name) { | 3224 const char* name) { |
3193 GL_SERVICE_LOG("glGetFragDataLocation" | 3225 GL_SERVICE_LOG("glGetFragDataLocation" |
3194 << "(" << program << ", " << name << ")"); | 3226 << "(" << program << ", " << name << ")"); |
3195 GLint result = g_driver_gl.debug_fn.glGetFragDataLocationFn(program, name); | 3227 GLint result = g_driver_gl.debug_fn.glGetFragDataLocationFn(program, name); |
3196 GL_SERVICE_LOG("GL_RESULT: " << result); | 3228 GL_SERVICE_LOG("GL_RESULT: " << result); |
3197 return result; | 3229 return result; |
3198 } | 3230 } |
3199 | 3231 |
3200 static void GL_BINDING_CALL | 3232 static void GL_BINDING_CALL |
(...skipping 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5584 fn.glGetErrorFn = Debug_glGetError; | 5616 fn.glGetErrorFn = Debug_glGetError; |
5585 } | 5617 } |
5586 if (!debug_fn.glGetFenceivNVFn) { | 5618 if (!debug_fn.glGetFenceivNVFn) { |
5587 debug_fn.glGetFenceivNVFn = fn.glGetFenceivNVFn; | 5619 debug_fn.glGetFenceivNVFn = fn.glGetFenceivNVFn; |
5588 fn.glGetFenceivNVFn = Debug_glGetFenceivNV; | 5620 fn.glGetFenceivNVFn = Debug_glGetFenceivNV; |
5589 } | 5621 } |
5590 if (!debug_fn.glGetFloatvFn) { | 5622 if (!debug_fn.glGetFloatvFn) { |
5591 debug_fn.glGetFloatvFn = fn.glGetFloatvFn; | 5623 debug_fn.glGetFloatvFn = fn.glGetFloatvFn; |
5592 fn.glGetFloatvFn = Debug_glGetFloatv; | 5624 fn.glGetFloatvFn = Debug_glGetFloatv; |
5593 } | 5625 } |
| 5626 if (!debug_fn.glGetFragDataIndexFn) { |
| 5627 debug_fn.glGetFragDataIndexFn = fn.glGetFragDataIndexFn; |
| 5628 fn.glGetFragDataIndexFn = Debug_glGetFragDataIndex; |
| 5629 } |
5594 if (!debug_fn.glGetFragDataLocationFn) { | 5630 if (!debug_fn.glGetFragDataLocationFn) { |
5595 debug_fn.glGetFragDataLocationFn = fn.glGetFragDataLocationFn; | 5631 debug_fn.glGetFragDataLocationFn = fn.glGetFragDataLocationFn; |
5596 fn.glGetFragDataLocationFn = Debug_glGetFragDataLocation; | 5632 fn.glGetFragDataLocationFn = Debug_glGetFragDataLocation; |
5597 } | 5633 } |
5598 if (!debug_fn.glGetFramebufferAttachmentParameterivEXTFn) { | 5634 if (!debug_fn.glGetFramebufferAttachmentParameterivEXTFn) { |
5599 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = | 5635 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = |
5600 fn.glGetFramebufferAttachmentParameterivEXTFn; | 5636 fn.glGetFramebufferAttachmentParameterivEXTFn; |
5601 fn.glGetFramebufferAttachmentParameterivEXTFn = | 5637 fn.glGetFramebufferAttachmentParameterivEXTFn = |
5602 Debug_glGetFramebufferAttachmentParameterivEXT; | 5638 Debug_glGetFramebufferAttachmentParameterivEXT; |
5603 } | 5639 } |
(...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7096 } | 7132 } |
7097 | 7133 |
7098 void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { | 7134 void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { |
7099 driver_->fn.glGetFenceivNVFn(fence, pname, params); | 7135 driver_->fn.glGetFenceivNVFn(fence, pname, params); |
7100 } | 7136 } |
7101 | 7137 |
7102 void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) { | 7138 void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) { |
7103 driver_->fn.glGetFloatvFn(pname, params); | 7139 driver_->fn.glGetFloatvFn(pname, params); |
7104 } | 7140 } |
7105 | 7141 |
| 7142 GLint GLApiBase::glGetFragDataIndexFn(GLuint program, const char* name) { |
| 7143 return driver_->fn.glGetFragDataIndexFn(program, name); |
| 7144 } |
| 7145 |
7106 GLint GLApiBase::glGetFragDataLocationFn(GLuint program, const char* name) { | 7146 GLint GLApiBase::glGetFragDataLocationFn(GLuint program, const char* name) { |
7107 return driver_->fn.glGetFragDataLocationFn(program, name); | 7147 return driver_->fn.glGetFragDataLocationFn(program, name); |
7108 } | 7148 } |
7109 | 7149 |
7110 void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target, | 7150 void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target, |
7111 GLenum attachment, | 7151 GLenum attachment, |
7112 GLenum pname, | 7152 GLenum pname, |
7113 GLint* params) { | 7153 GLint* params) { |
7114 driver_->fn.glGetFramebufferAttachmentParameterivEXTFn(target, attachment, | 7154 driver_->fn.glGetFramebufferAttachmentParameterivEXTFn(target, attachment, |
7115 pname, params); | 7155 pname, params); |
(...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9097 void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { | 9137 void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { |
9098 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV") | 9138 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV") |
9099 gl_api_->glGetFenceivNVFn(fence, pname, params); | 9139 gl_api_->glGetFenceivNVFn(fence, pname, params); |
9100 } | 9140 } |
9101 | 9141 |
9102 void TraceGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) { | 9142 void TraceGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) { |
9103 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv") | 9143 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv") |
9104 gl_api_->glGetFloatvFn(pname, params); | 9144 gl_api_->glGetFloatvFn(pname, params); |
9105 } | 9145 } |
9106 | 9146 |
| 9147 GLint TraceGLApi::glGetFragDataIndexFn(GLuint program, const char* name) { |
| 9148 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataIndex") |
| 9149 return gl_api_->glGetFragDataIndexFn(program, name); |
| 9150 } |
| 9151 |
9107 GLint TraceGLApi::glGetFragDataLocationFn(GLuint program, const char* name) { | 9152 GLint TraceGLApi::glGetFragDataLocationFn(GLuint program, const char* name) { |
9108 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation") | 9153 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation") |
9109 return gl_api_->glGetFragDataLocationFn(program, name); | 9154 return gl_api_->glGetFragDataLocationFn(program, name); |
9110 } | 9155 } |
9111 | 9156 |
9112 void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target, | 9157 void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target, |
9113 GLenum attachment, | 9158 GLenum attachment, |
9114 GLenum pname, | 9159 GLenum pname, |
9115 GLint* params) { | 9160 GLint* params) { |
9116 TRACE_EVENT_BINARY_EFFICIENT0( | 9161 TRACE_EVENT_BINARY_EFFICIENT0( |
(...skipping 2291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11408 GLint* params) { | 11453 GLint* params) { |
11409 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context"; | 11454 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context"; |
11410 LOG(ERROR) << "Trying to call glGetFenceivNV() without current GL context"; | 11455 LOG(ERROR) << "Trying to call glGetFenceivNV() without current GL context"; |
11411 } | 11456 } |
11412 | 11457 |
11413 void NoContextGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) { | 11458 void NoContextGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) { |
11414 NOTREACHED() << "Trying to call glGetFloatv() without current GL context"; | 11459 NOTREACHED() << "Trying to call glGetFloatv() without current GL context"; |
11415 LOG(ERROR) << "Trying to call glGetFloatv() without current GL context"; | 11460 LOG(ERROR) << "Trying to call glGetFloatv() without current GL context"; |
11416 } | 11461 } |
11417 | 11462 |
| 11463 GLint NoContextGLApi::glGetFragDataIndexFn(GLuint program, const char* name) { |
| 11464 NOTREACHED() |
| 11465 << "Trying to call glGetFragDataIndex() without current GL context"; |
| 11466 LOG(ERROR) |
| 11467 << "Trying to call glGetFragDataIndex() without current GL context"; |
| 11468 return 0; |
| 11469 } |
| 11470 |
11418 GLint NoContextGLApi::glGetFragDataLocationFn(GLuint program, | 11471 GLint NoContextGLApi::glGetFragDataLocationFn(GLuint program, |
11419 const char* name) { | 11472 const char* name) { |
11420 NOTREACHED() | 11473 NOTREACHED() |
11421 << "Trying to call glGetFragDataLocation() without current GL context"; | 11474 << "Trying to call glGetFragDataLocation() without current GL context"; |
11422 LOG(ERROR) | 11475 LOG(ERROR) |
11423 << "Trying to call glGetFragDataLocation() without current GL context"; | 11476 << "Trying to call glGetFragDataLocation() without current GL context"; |
11424 return 0; | 11477 return 0; |
11425 } | 11478 } |
11426 | 11479 |
11427 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn( | 11480 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn( |
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12940 | 12993 |
12941 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, | 12994 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, |
12942 GLbitfield flags, | 12995 GLbitfield flags, |
12943 GLuint64 timeout) { | 12996 GLuint64 timeout) { |
12944 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; | 12997 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; |
12945 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; | 12998 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; |
12946 return static_cast<GLenum>(0); | 12999 return static_cast<GLenum>(0); |
12947 } | 13000 } |
12948 | 13001 |
12949 } // namespace gfx | 13002 } // namespace gfx |
OLD | NEW |