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 22 matching lines...) Expand all Loading... |
33 fn.glBeginTransformFeedbackFn = 0; | 33 fn.glBeginTransformFeedbackFn = 0; |
34 fn.glBindAttribLocationFn = reinterpret_cast<glBindAttribLocationProc>( | 34 fn.glBindAttribLocationFn = reinterpret_cast<glBindAttribLocationProc>( |
35 GetGLProcAddress("glBindAttribLocation")); | 35 GetGLProcAddress("glBindAttribLocation")); |
36 fn.glBindBufferFn = | 36 fn.glBindBufferFn = |
37 reinterpret_cast<glBindBufferProc>(GetGLProcAddress("glBindBuffer")); | 37 reinterpret_cast<glBindBufferProc>(GetGLProcAddress("glBindBuffer")); |
38 fn.glBindBufferBaseFn = 0; | 38 fn.glBindBufferBaseFn = 0; |
39 fn.glBindBufferRangeFn = 0; | 39 fn.glBindBufferRangeFn = 0; |
40 fn.glBindFragDataLocationFn = 0; | 40 fn.glBindFragDataLocationFn = 0; |
41 fn.glBindFragDataLocationIndexedFn = 0; | 41 fn.glBindFragDataLocationIndexedFn = 0; |
42 fn.glBindFramebufferEXTFn = 0; | 42 fn.glBindFramebufferEXTFn = 0; |
| 43 fn.glBindImageTextureEXTFn = 0; |
43 fn.glBindRenderbufferEXTFn = 0; | 44 fn.glBindRenderbufferEXTFn = 0; |
44 fn.glBindSamplerFn = 0; | 45 fn.glBindSamplerFn = 0; |
45 fn.glBindTextureFn = | 46 fn.glBindTextureFn = |
46 reinterpret_cast<glBindTextureProc>(GetGLProcAddress("glBindTexture")); | 47 reinterpret_cast<glBindTextureProc>(GetGLProcAddress("glBindTexture")); |
47 fn.glBindTransformFeedbackFn = 0; | 48 fn.glBindTransformFeedbackFn = 0; |
48 fn.glBindVertexArrayOESFn = 0; | 49 fn.glBindVertexArrayOESFn = 0; |
49 fn.glBlendBarrierKHRFn = 0; | 50 fn.glBlendBarrierKHRFn = 0; |
50 fn.glBlendColorFn = | 51 fn.glBlendColorFn = |
51 reinterpret_cast<glBlendColorProc>(GetGLProcAddress("glBlendColor")); | 52 reinterpret_cast<glBlendColorProc>(GetGLProcAddress("glBlendColor")); |
52 fn.glBlendEquationFn = reinterpret_cast<glBlendEquationProc>( | 53 fn.glBlendEquationFn = reinterpret_cast<glBlendEquationProc>( |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 fn.glIsTransformFeedbackFn = 0; | 291 fn.glIsTransformFeedbackFn = 0; |
291 fn.glIsVertexArrayOESFn = 0; | 292 fn.glIsVertexArrayOESFn = 0; |
292 fn.glLineWidthFn = | 293 fn.glLineWidthFn = |
293 reinterpret_cast<glLineWidthProc>(GetGLProcAddress("glLineWidth")); | 294 reinterpret_cast<glLineWidthProc>(GetGLProcAddress("glLineWidth")); |
294 fn.glLinkProgramFn = | 295 fn.glLinkProgramFn = |
295 reinterpret_cast<glLinkProgramProc>(GetGLProcAddress("glLinkProgram")); | 296 reinterpret_cast<glLinkProgramProc>(GetGLProcAddress("glLinkProgram")); |
296 fn.glMapBufferFn = 0; | 297 fn.glMapBufferFn = 0; |
297 fn.glMapBufferRangeFn = 0; | 298 fn.glMapBufferRangeFn = 0; |
298 fn.glMatrixLoadfEXTFn = 0; | 299 fn.glMatrixLoadfEXTFn = 0; |
299 fn.glMatrixLoadIdentityEXTFn = 0; | 300 fn.glMatrixLoadIdentityEXTFn = 0; |
| 301 fn.glMemoryBarrierEXTFn = 0; |
300 fn.glPathCommandsNVFn = 0; | 302 fn.glPathCommandsNVFn = 0; |
301 fn.glPathParameterfNVFn = 0; | 303 fn.glPathParameterfNVFn = 0; |
302 fn.glPathParameteriNVFn = 0; | 304 fn.glPathParameteriNVFn = 0; |
303 fn.glPathStencilFuncNVFn = 0; | 305 fn.glPathStencilFuncNVFn = 0; |
304 fn.glPauseTransformFeedbackFn = 0; | 306 fn.glPauseTransformFeedbackFn = 0; |
305 fn.glPixelStoreiFn = | 307 fn.glPixelStoreiFn = |
306 reinterpret_cast<glPixelStoreiProc>(GetGLProcAddress("glPixelStorei")); | 308 reinterpret_cast<glPixelStoreiProc>(GetGLProcAddress("glPixelStorei")); |
307 fn.glPointParameteriFn = 0; | 309 fn.glPointParameteriFn = 0; |
308 fn.glPolygonOffsetFn = reinterpret_cast<glPolygonOffsetProc>( | 310 fn.glPolygonOffsetFn = reinterpret_cast<glPolygonOffsetProc>( |
309 GetGLProcAddress("glPolygonOffset")); | 311 GetGLProcAddress("glPolygonOffset")); |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 ext.b_GL_ARB_instanced_arrays = | 495 ext.b_GL_ARB_instanced_arrays = |
494 extensions.find("GL_ARB_instanced_arrays ") != std::string::npos; | 496 extensions.find("GL_ARB_instanced_arrays ") != std::string::npos; |
495 ext.b_GL_ARB_map_buffer_range = | 497 ext.b_GL_ARB_map_buffer_range = |
496 extensions.find("GL_ARB_map_buffer_range ") != std::string::npos; | 498 extensions.find("GL_ARB_map_buffer_range ") != std::string::npos; |
497 ext.b_GL_ARB_occlusion_query = | 499 ext.b_GL_ARB_occlusion_query = |
498 extensions.find("GL_ARB_occlusion_query ") != std::string::npos; | 500 extensions.find("GL_ARB_occlusion_query ") != std::string::npos; |
499 ext.b_GL_ARB_program_interface_query = | 501 ext.b_GL_ARB_program_interface_query = |
500 extensions.find("GL_ARB_program_interface_query ") != std::string::npos; | 502 extensions.find("GL_ARB_program_interface_query ") != std::string::npos; |
501 ext.b_GL_ARB_robustness = | 503 ext.b_GL_ARB_robustness = |
502 extensions.find("GL_ARB_robustness ") != std::string::npos; | 504 extensions.find("GL_ARB_robustness ") != std::string::npos; |
| 505 ext.b_GL_ARB_shader_image_load_store = |
| 506 extensions.find("GL_ARB_shader_image_load_store ") != std::string::npos; |
503 ext.b_GL_ARB_sync = extensions.find("GL_ARB_sync ") != std::string::npos; | 507 ext.b_GL_ARB_sync = extensions.find("GL_ARB_sync ") != std::string::npos; |
504 ext.b_GL_ARB_texture_storage = | 508 ext.b_GL_ARB_texture_storage = |
505 extensions.find("GL_ARB_texture_storage ") != std::string::npos; | 509 extensions.find("GL_ARB_texture_storage ") != std::string::npos; |
506 ext.b_GL_ARB_timer_query = | 510 ext.b_GL_ARB_timer_query = |
507 extensions.find("GL_ARB_timer_query ") != std::string::npos; | 511 extensions.find("GL_ARB_timer_query ") != std::string::npos; |
508 ext.b_GL_ARB_vertex_array_object = | 512 ext.b_GL_ARB_vertex_array_object = |
509 extensions.find("GL_ARB_vertex_array_object ") != std::string::npos; | 513 extensions.find("GL_ARB_vertex_array_object ") != std::string::npos; |
510 ext.b_GL_CHROMIUM_gles_depth_binding_hack = | 514 ext.b_GL_CHROMIUM_gles_depth_binding_hack = |
511 extensions.find("GL_CHROMIUM_gles_depth_binding_hack ") != | 515 extensions.find("GL_CHROMIUM_gles_depth_binding_hack ") != |
512 std::string::npos; | 516 std::string::npos; |
(...skipping 21 matching lines...) Expand all Loading... |
534 extensions.find("GL_EXT_gpu_shader4 ") != std::string::npos; | 538 extensions.find("GL_EXT_gpu_shader4 ") != std::string::npos; |
535 ext.b_GL_EXT_map_buffer_range = | 539 ext.b_GL_EXT_map_buffer_range = |
536 extensions.find("GL_EXT_map_buffer_range ") != std::string::npos; | 540 extensions.find("GL_EXT_map_buffer_range ") != std::string::npos; |
537 ext.b_GL_EXT_multisampled_render_to_texture = | 541 ext.b_GL_EXT_multisampled_render_to_texture = |
538 extensions.find("GL_EXT_multisampled_render_to_texture ") != | 542 extensions.find("GL_EXT_multisampled_render_to_texture ") != |
539 std::string::npos; | 543 std::string::npos; |
540 ext.b_GL_EXT_occlusion_query_boolean = | 544 ext.b_GL_EXT_occlusion_query_boolean = |
541 extensions.find("GL_EXT_occlusion_query_boolean ") != std::string::npos; | 545 extensions.find("GL_EXT_occlusion_query_boolean ") != std::string::npos; |
542 ext.b_GL_EXT_robustness = | 546 ext.b_GL_EXT_robustness = |
543 extensions.find("GL_EXT_robustness ") != std::string::npos; | 547 extensions.find("GL_EXT_robustness ") != std::string::npos; |
| 548 ext.b_GL_EXT_shader_image_load_store = |
| 549 extensions.find("GL_EXT_shader_image_load_store ") != std::string::npos; |
544 ext.b_GL_EXT_texture_storage = | 550 ext.b_GL_EXT_texture_storage = |
545 extensions.find("GL_EXT_texture_storage ") != std::string::npos; | 551 extensions.find("GL_EXT_texture_storage ") != std::string::npos; |
546 ext.b_GL_EXT_timer_query = | 552 ext.b_GL_EXT_timer_query = |
547 extensions.find("GL_EXT_timer_query ") != std::string::npos; | 553 extensions.find("GL_EXT_timer_query ") != std::string::npos; |
548 ext.b_GL_IMG_multisampled_render_to_texture = | 554 ext.b_GL_IMG_multisampled_render_to_texture = |
549 extensions.find("GL_IMG_multisampled_render_to_texture ") != | 555 extensions.find("GL_IMG_multisampled_render_to_texture ") != |
550 std::string::npos; | 556 std::string::npos; |
551 ext.b_GL_INTEL_framebuffer_CMAA = | 557 ext.b_GL_INTEL_framebuffer_CMAA = |
552 extensions.find("GL_INTEL_framebuffer_CMAA ") != std::string::npos; | 558 extensions.find("GL_INTEL_framebuffer_CMAA ") != std::string::npos; |
553 ext.b_GL_KHR_blend_equation_advanced = | 559 ext.b_GL_KHR_blend_equation_advanced = |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 | 635 |
630 debug_fn.glBindFramebufferEXTFn = 0; | 636 debug_fn.glBindFramebufferEXTFn = 0; |
631 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { | 637 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { |
632 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( | 638 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( |
633 GetGLProcAddress("glBindFramebuffer")); | 639 GetGLProcAddress("glBindFramebuffer")); |
634 } else if (ext.b_GL_EXT_framebuffer_object) { | 640 } else if (ext.b_GL_EXT_framebuffer_object) { |
635 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( | 641 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>( |
636 GetGLProcAddress("glBindFramebufferEXT")); | 642 GetGLProcAddress("glBindFramebufferEXT")); |
637 } | 643 } |
638 | 644 |
| 645 debug_fn.glBindImageTextureEXTFn = 0; |
| 646 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 1u) || |
| 647 ext.b_GL_ARB_shader_image_load_store) { |
| 648 fn.glBindImageTextureEXTFn = reinterpret_cast<glBindImageTextureEXTProc>( |
| 649 GetGLProcAddress("glBindImageTexture")); |
| 650 } else if (ext.b_GL_EXT_shader_image_load_store) { |
| 651 fn.glBindImageTextureEXTFn = reinterpret_cast<glBindImageTextureEXTProc>( |
| 652 GetGLProcAddress("glBindImageTextureEXT")); |
| 653 } |
| 654 |
639 debug_fn.glBindRenderbufferEXTFn = 0; | 655 debug_fn.glBindRenderbufferEXTFn = 0; |
640 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { | 656 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) { |
641 fn.glBindRenderbufferEXTFn = reinterpret_cast<glBindRenderbufferEXTProc>( | 657 fn.glBindRenderbufferEXTFn = reinterpret_cast<glBindRenderbufferEXTProc>( |
642 GetGLProcAddress("glBindRenderbuffer")); | 658 GetGLProcAddress("glBindRenderbuffer")); |
643 } else if (ext.b_GL_EXT_framebuffer_object) { | 659 } else if (ext.b_GL_EXT_framebuffer_object) { |
644 fn.glBindRenderbufferEXTFn = reinterpret_cast<glBindRenderbufferEXTProc>( | 660 fn.glBindRenderbufferEXTFn = reinterpret_cast<glBindRenderbufferEXTProc>( |
645 GetGLProcAddress("glBindRenderbufferEXT")); | 661 GetGLProcAddress("glBindRenderbufferEXT")); |
646 } | 662 } |
647 | 663 |
648 debug_fn.glBindSamplerFn = 0; | 664 debug_fn.glBindSamplerFn = 0; |
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1547 GetGLProcAddress("glMatrixLoadfEXT")); | 1563 GetGLProcAddress("glMatrixLoadfEXT")); |
1548 } | 1564 } |
1549 | 1565 |
1550 debug_fn.glMatrixLoadIdentityEXTFn = 0; | 1566 debug_fn.glMatrixLoadIdentityEXTFn = 0; |
1551 if (ext.b_GL_EXT_direct_state_access || ext.b_GL_NV_path_rendering) { | 1567 if (ext.b_GL_EXT_direct_state_access || ext.b_GL_NV_path_rendering) { |
1552 fn.glMatrixLoadIdentityEXTFn = | 1568 fn.glMatrixLoadIdentityEXTFn = |
1553 reinterpret_cast<glMatrixLoadIdentityEXTProc>( | 1569 reinterpret_cast<glMatrixLoadIdentityEXTProc>( |
1554 GetGLProcAddress("glMatrixLoadIdentityEXT")); | 1570 GetGLProcAddress("glMatrixLoadIdentityEXT")); |
1555 } | 1571 } |
1556 | 1572 |
| 1573 debug_fn.glMemoryBarrierEXTFn = 0; |
| 1574 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 1u) || |
| 1575 ext.b_GL_ARB_shader_image_load_store) { |
| 1576 fn.glMemoryBarrierEXTFn = reinterpret_cast<glMemoryBarrierEXTProc>( |
| 1577 GetGLProcAddress("glMemoryBarrier")); |
| 1578 } else if (ext.b_GL_EXT_shader_image_load_store) { |
| 1579 fn.glMemoryBarrierEXTFn = reinterpret_cast<glMemoryBarrierEXTProc>( |
| 1580 GetGLProcAddress("glMemoryBarrierEXT")); |
| 1581 } |
| 1582 |
1557 debug_fn.glPathCommandsNVFn = 0; | 1583 debug_fn.glPathCommandsNVFn = 0; |
1558 if (ext.b_GL_NV_path_rendering) { | 1584 if (ext.b_GL_NV_path_rendering) { |
1559 fn.glPathCommandsNVFn = reinterpret_cast<glPathCommandsNVProc>( | 1585 fn.glPathCommandsNVFn = reinterpret_cast<glPathCommandsNVProc>( |
1560 GetGLProcAddress("glPathCommandsNV")); | 1586 GetGLProcAddress("glPathCommandsNV")); |
1561 } | 1587 } |
1562 | 1588 |
1563 debug_fn.glPathParameterfNVFn = 0; | 1589 debug_fn.glPathParameterfNVFn = 0; |
1564 if (ext.b_GL_NV_path_rendering) { | 1590 if (ext.b_GL_NV_path_rendering) { |
1565 fn.glPathParameterfNVFn = reinterpret_cast<glPathParameterfNVProc>( | 1591 fn.glPathParameterfNVFn = reinterpret_cast<glPathParameterfNVProc>( |
1566 GetGLProcAddress("glPathParameterfNV")); | 1592 GetGLProcAddress("glPathParameterfNV")); |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2086 } | 2112 } |
2087 | 2113 |
2088 static void GL_BINDING_CALL Debug_glBindFramebufferEXT(GLenum target, | 2114 static void GL_BINDING_CALL Debug_glBindFramebufferEXT(GLenum target, |
2089 GLuint framebuffer) { | 2115 GLuint framebuffer) { |
2090 GL_SERVICE_LOG("glBindFramebufferEXT" | 2116 GL_SERVICE_LOG("glBindFramebufferEXT" |
2091 << "(" << GLEnums::GetStringEnum(target) << ", " << framebuffer | 2117 << "(" << GLEnums::GetStringEnum(target) << ", " << framebuffer |
2092 << ")"); | 2118 << ")"); |
2093 g_driver_gl.debug_fn.glBindFramebufferEXTFn(target, framebuffer); | 2119 g_driver_gl.debug_fn.glBindFramebufferEXTFn(target, framebuffer); |
2094 } | 2120 } |
2095 | 2121 |
| 2122 static void GL_BINDING_CALL Debug_glBindImageTextureEXT(GLuint index, |
| 2123 GLuint texture, |
| 2124 GLint level, |
| 2125 GLboolean layered, |
| 2126 GLint layer, |
| 2127 GLenum access, |
| 2128 GLint format) { |
| 2129 GL_SERVICE_LOG("glBindImageTextureEXT" |
| 2130 << "(" << index << ", " << texture << ", " << level << ", " |
| 2131 << GLEnums::GetStringBool(layered) << ", " << layer << ", " |
| 2132 << GLEnums::GetStringEnum(access) << ", " << format << ")"); |
| 2133 g_driver_gl.debug_fn.glBindImageTextureEXTFn(index, texture, level, layered, |
| 2134 layer, access, format); |
| 2135 } |
| 2136 |
2096 static void GL_BINDING_CALL Debug_glBindRenderbufferEXT(GLenum target, | 2137 static void GL_BINDING_CALL Debug_glBindRenderbufferEXT(GLenum target, |
2097 GLuint renderbuffer) { | 2138 GLuint renderbuffer) { |
2098 GL_SERVICE_LOG("glBindRenderbufferEXT" | 2139 GL_SERVICE_LOG("glBindRenderbufferEXT" |
2099 << "(" << GLEnums::GetStringEnum(target) << ", " | 2140 << "(" << GLEnums::GetStringEnum(target) << ", " |
2100 << renderbuffer << ")"); | 2141 << renderbuffer << ")"); |
2101 g_driver_gl.debug_fn.glBindRenderbufferEXTFn(target, renderbuffer); | 2142 g_driver_gl.debug_fn.glBindRenderbufferEXTFn(target, renderbuffer); |
2102 } | 2143 } |
2103 | 2144 |
2104 static void GL_BINDING_CALL Debug_glBindSampler(GLuint unit, GLuint sampler) { | 2145 static void GL_BINDING_CALL Debug_glBindSampler(GLuint unit, GLuint sampler) { |
2105 GL_SERVICE_LOG("glBindSampler" | 2146 GL_SERVICE_LOG("glBindSampler" |
(...skipping 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3910 << static_cast<const void*>(m) << ")"); | 3951 << static_cast<const void*>(m) << ")"); |
3911 g_driver_gl.debug_fn.glMatrixLoadfEXTFn(matrixMode, m); | 3952 g_driver_gl.debug_fn.glMatrixLoadfEXTFn(matrixMode, m); |
3912 } | 3953 } |
3913 | 3954 |
3914 static void GL_BINDING_CALL Debug_glMatrixLoadIdentityEXT(GLenum matrixMode) { | 3955 static void GL_BINDING_CALL Debug_glMatrixLoadIdentityEXT(GLenum matrixMode) { |
3915 GL_SERVICE_LOG("glMatrixLoadIdentityEXT" | 3956 GL_SERVICE_LOG("glMatrixLoadIdentityEXT" |
3916 << "(" << GLEnums::GetStringEnum(matrixMode) << ")"); | 3957 << "(" << GLEnums::GetStringEnum(matrixMode) << ")"); |
3917 g_driver_gl.debug_fn.glMatrixLoadIdentityEXTFn(matrixMode); | 3958 g_driver_gl.debug_fn.glMatrixLoadIdentityEXTFn(matrixMode); |
3918 } | 3959 } |
3919 | 3960 |
| 3961 static void GL_BINDING_CALL Debug_glMemoryBarrierEXT(GLbitfield barriers) { |
| 3962 GL_SERVICE_LOG("glMemoryBarrierEXT" |
| 3963 << "(" << barriers << ")"); |
| 3964 g_driver_gl.debug_fn.glMemoryBarrierEXTFn(barriers); |
| 3965 } |
| 3966 |
3920 static void GL_BINDING_CALL Debug_glPathCommandsNV(GLuint path, | 3967 static void GL_BINDING_CALL Debug_glPathCommandsNV(GLuint path, |
3921 GLsizei numCommands, | 3968 GLsizei numCommands, |
3922 const GLubyte* commands, | 3969 const GLubyte* commands, |
3923 GLsizei numCoords, | 3970 GLsizei numCoords, |
3924 GLenum coordType, | 3971 GLenum coordType, |
3925 const GLvoid* coords) { | 3972 const GLvoid* coords) { |
3926 GL_SERVICE_LOG("glPathCommandsNV" | 3973 GL_SERVICE_LOG("glPathCommandsNV" |
3927 << "(" << path << ", " << numCommands << ", " | 3974 << "(" << path << ", " << numCommands << ", " |
3928 << static_cast<const void*>(commands) << ", " << numCoords | 3975 << static_cast<const void*>(commands) << ", " << numCoords |
3929 << ", " << GLEnums::GetStringEnum(coordType) << ", " | 3976 << ", " << GLEnums::GetStringEnum(coordType) << ", " |
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5150 } | 5197 } |
5151 if (!debug_fn.glBindFragDataLocationIndexedFn) { | 5198 if (!debug_fn.glBindFragDataLocationIndexedFn) { |
5152 debug_fn.glBindFragDataLocationIndexedFn = | 5199 debug_fn.glBindFragDataLocationIndexedFn = |
5153 fn.glBindFragDataLocationIndexedFn; | 5200 fn.glBindFragDataLocationIndexedFn; |
5154 fn.glBindFragDataLocationIndexedFn = Debug_glBindFragDataLocationIndexed; | 5201 fn.glBindFragDataLocationIndexedFn = Debug_glBindFragDataLocationIndexed; |
5155 } | 5202 } |
5156 if (!debug_fn.glBindFramebufferEXTFn) { | 5203 if (!debug_fn.glBindFramebufferEXTFn) { |
5157 debug_fn.glBindFramebufferEXTFn = fn.glBindFramebufferEXTFn; | 5204 debug_fn.glBindFramebufferEXTFn = fn.glBindFramebufferEXTFn; |
5158 fn.glBindFramebufferEXTFn = Debug_glBindFramebufferEXT; | 5205 fn.glBindFramebufferEXTFn = Debug_glBindFramebufferEXT; |
5159 } | 5206 } |
| 5207 if (!debug_fn.glBindImageTextureEXTFn) { |
| 5208 debug_fn.glBindImageTextureEXTFn = fn.glBindImageTextureEXTFn; |
| 5209 fn.glBindImageTextureEXTFn = Debug_glBindImageTextureEXT; |
| 5210 } |
5160 if (!debug_fn.glBindRenderbufferEXTFn) { | 5211 if (!debug_fn.glBindRenderbufferEXTFn) { |
5161 debug_fn.glBindRenderbufferEXTFn = fn.glBindRenderbufferEXTFn; | 5212 debug_fn.glBindRenderbufferEXTFn = fn.glBindRenderbufferEXTFn; |
5162 fn.glBindRenderbufferEXTFn = Debug_glBindRenderbufferEXT; | 5213 fn.glBindRenderbufferEXTFn = Debug_glBindRenderbufferEXT; |
5163 } | 5214 } |
5164 if (!debug_fn.glBindSamplerFn) { | 5215 if (!debug_fn.glBindSamplerFn) { |
5165 debug_fn.glBindSamplerFn = fn.glBindSamplerFn; | 5216 debug_fn.glBindSamplerFn = fn.glBindSamplerFn; |
5166 fn.glBindSamplerFn = Debug_glBindSampler; | 5217 fn.glBindSamplerFn = Debug_glBindSampler; |
5167 } | 5218 } |
5168 if (!debug_fn.glBindTextureFn) { | 5219 if (!debug_fn.glBindTextureFn) { |
5169 debug_fn.glBindTextureFn = fn.glBindTextureFn; | 5220 debug_fn.glBindTextureFn = fn.glBindTextureFn; |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5907 fn.glMapBufferRangeFn = Debug_glMapBufferRange; | 5958 fn.glMapBufferRangeFn = Debug_glMapBufferRange; |
5908 } | 5959 } |
5909 if (!debug_fn.glMatrixLoadfEXTFn) { | 5960 if (!debug_fn.glMatrixLoadfEXTFn) { |
5910 debug_fn.glMatrixLoadfEXTFn = fn.glMatrixLoadfEXTFn; | 5961 debug_fn.glMatrixLoadfEXTFn = fn.glMatrixLoadfEXTFn; |
5911 fn.glMatrixLoadfEXTFn = Debug_glMatrixLoadfEXT; | 5962 fn.glMatrixLoadfEXTFn = Debug_glMatrixLoadfEXT; |
5912 } | 5963 } |
5913 if (!debug_fn.glMatrixLoadIdentityEXTFn) { | 5964 if (!debug_fn.glMatrixLoadIdentityEXTFn) { |
5914 debug_fn.glMatrixLoadIdentityEXTFn = fn.glMatrixLoadIdentityEXTFn; | 5965 debug_fn.glMatrixLoadIdentityEXTFn = fn.glMatrixLoadIdentityEXTFn; |
5915 fn.glMatrixLoadIdentityEXTFn = Debug_glMatrixLoadIdentityEXT; | 5966 fn.glMatrixLoadIdentityEXTFn = Debug_glMatrixLoadIdentityEXT; |
5916 } | 5967 } |
| 5968 if (!debug_fn.glMemoryBarrierEXTFn) { |
| 5969 debug_fn.glMemoryBarrierEXTFn = fn.glMemoryBarrierEXTFn; |
| 5970 fn.glMemoryBarrierEXTFn = Debug_glMemoryBarrierEXT; |
| 5971 } |
5917 if (!debug_fn.glPathCommandsNVFn) { | 5972 if (!debug_fn.glPathCommandsNVFn) { |
5918 debug_fn.glPathCommandsNVFn = fn.glPathCommandsNVFn; | 5973 debug_fn.glPathCommandsNVFn = fn.glPathCommandsNVFn; |
5919 fn.glPathCommandsNVFn = Debug_glPathCommandsNV; | 5974 fn.glPathCommandsNVFn = Debug_glPathCommandsNV; |
5920 } | 5975 } |
5921 if (!debug_fn.glPathParameterfNVFn) { | 5976 if (!debug_fn.glPathParameterfNVFn) { |
5922 debug_fn.glPathParameterfNVFn = fn.glPathParameterfNVFn; | 5977 debug_fn.glPathParameterfNVFn = fn.glPathParameterfNVFn; |
5923 fn.glPathParameterfNVFn = Debug_glPathParameterfNV; | 5978 fn.glPathParameterfNVFn = Debug_glPathParameterfNV; |
5924 } | 5979 } |
5925 if (!debug_fn.glPathParameteriNVFn) { | 5980 if (!debug_fn.glPathParameteriNVFn) { |
5926 debug_fn.glPathParameteriNVFn = fn.glPathParameteriNVFn; | 5981 debug_fn.glPathParameteriNVFn = fn.glPathParameteriNVFn; |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6446 GLuint index, | 6501 GLuint index, |
6447 const char* name) { | 6502 const char* name) { |
6448 driver_->fn.glBindFragDataLocationIndexedFn(program, colorNumber, index, | 6503 driver_->fn.glBindFragDataLocationIndexedFn(program, colorNumber, index, |
6449 name); | 6504 name); |
6450 } | 6505 } |
6451 | 6506 |
6452 void GLApiBase::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) { | 6507 void GLApiBase::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) { |
6453 driver_->fn.glBindFramebufferEXTFn(target, framebuffer); | 6508 driver_->fn.glBindFramebufferEXTFn(target, framebuffer); |
6454 } | 6509 } |
6455 | 6510 |
| 6511 void GLApiBase::glBindImageTextureEXTFn(GLuint index, |
| 6512 GLuint texture, |
| 6513 GLint level, |
| 6514 GLboolean layered, |
| 6515 GLint layer, |
| 6516 GLenum access, |
| 6517 GLint format) { |
| 6518 driver_->fn.glBindImageTextureEXTFn(index, texture, level, layered, layer, |
| 6519 access, format); |
| 6520 } |
| 6521 |
6456 void GLApiBase::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) { | 6522 void GLApiBase::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) { |
6457 driver_->fn.glBindRenderbufferEXTFn(target, renderbuffer); | 6523 driver_->fn.glBindRenderbufferEXTFn(target, renderbuffer); |
6458 } | 6524 } |
6459 | 6525 |
6460 void GLApiBase::glBindSamplerFn(GLuint unit, GLuint sampler) { | 6526 void GLApiBase::glBindSamplerFn(GLuint unit, GLuint sampler) { |
6461 driver_->fn.glBindSamplerFn(unit, sampler); | 6527 driver_->fn.glBindSamplerFn(unit, sampler); |
6462 } | 6528 } |
6463 | 6529 |
6464 void GLApiBase::glBindTextureFn(GLenum target, GLuint texture) { | 6530 void GLApiBase::glBindTextureFn(GLenum target, GLuint texture) { |
6465 driver_->fn.glBindTextureFn(target, texture); | 6531 driver_->fn.glBindTextureFn(target, texture); |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7531 } | 7597 } |
7532 | 7598 |
7533 void GLApiBase::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) { | 7599 void GLApiBase::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) { |
7534 driver_->fn.glMatrixLoadfEXTFn(matrixMode, m); | 7600 driver_->fn.glMatrixLoadfEXTFn(matrixMode, m); |
7535 } | 7601 } |
7536 | 7602 |
7537 void GLApiBase::glMatrixLoadIdentityEXTFn(GLenum matrixMode) { | 7603 void GLApiBase::glMatrixLoadIdentityEXTFn(GLenum matrixMode) { |
7538 driver_->fn.glMatrixLoadIdentityEXTFn(matrixMode); | 7604 driver_->fn.glMatrixLoadIdentityEXTFn(matrixMode); |
7539 } | 7605 } |
7540 | 7606 |
| 7607 void GLApiBase::glMemoryBarrierEXTFn(GLbitfield barriers) { |
| 7608 driver_->fn.glMemoryBarrierEXTFn(barriers); |
| 7609 } |
| 7610 |
7541 void GLApiBase::glPathCommandsNVFn(GLuint path, | 7611 void GLApiBase::glPathCommandsNVFn(GLuint path, |
7542 GLsizei numCommands, | 7612 GLsizei numCommands, |
7543 const GLubyte* commands, | 7613 const GLubyte* commands, |
7544 GLsizei numCoords, | 7614 GLsizei numCoords, |
7545 GLenum coordType, | 7615 GLenum coordType, |
7546 const GLvoid* coords) { | 7616 const GLvoid* coords) { |
7547 driver_->fn.glPathCommandsNVFn(path, numCommands, commands, numCoords, | 7617 driver_->fn.glPathCommandsNVFn(path, numCommands, commands, numCoords, |
7548 coordType, coords); | 7618 coordType, coords); |
7549 } | 7619 } |
7550 | 7620 |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8326 TRACE_EVENT_BINARY_EFFICIENT0("gpu", | 8396 TRACE_EVENT_BINARY_EFFICIENT0("gpu", |
8327 "TraceGLAPI::glBindFragDataLocationIndexed") | 8397 "TraceGLAPI::glBindFragDataLocationIndexed") |
8328 gl_api_->glBindFragDataLocationIndexedFn(program, colorNumber, index, name); | 8398 gl_api_->glBindFragDataLocationIndexedFn(program, colorNumber, index, name); |
8329 } | 8399 } |
8330 | 8400 |
8331 void TraceGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) { | 8401 void TraceGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) { |
8332 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFramebufferEXT") | 8402 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFramebufferEXT") |
8333 gl_api_->glBindFramebufferEXTFn(target, framebuffer); | 8403 gl_api_->glBindFramebufferEXTFn(target, framebuffer); |
8334 } | 8404 } |
8335 | 8405 |
| 8406 void TraceGLApi::glBindImageTextureEXTFn(GLuint index, |
| 8407 GLuint texture, |
| 8408 GLint level, |
| 8409 GLboolean layered, |
| 8410 GLint layer, |
| 8411 GLenum access, |
| 8412 GLint format) { |
| 8413 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindImageTextureEXT") |
| 8414 gl_api_->glBindImageTextureEXTFn(index, texture, level, layered, layer, |
| 8415 access, format); |
| 8416 } |
| 8417 |
8336 void TraceGLApi::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) { | 8418 void TraceGLApi::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) { |
8337 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindRenderbufferEXT") | 8419 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindRenderbufferEXT") |
8338 gl_api_->glBindRenderbufferEXTFn(target, renderbuffer); | 8420 gl_api_->glBindRenderbufferEXTFn(target, renderbuffer); |
8339 } | 8421 } |
8340 | 8422 |
8341 void TraceGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) { | 8423 void TraceGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) { |
8342 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindSampler") | 8424 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindSampler") |
8343 gl_api_->glBindSamplerFn(unit, sampler); | 8425 gl_api_->glBindSamplerFn(unit, sampler); |
8344 } | 8426 } |
8345 | 8427 |
(...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9611 void TraceGLApi::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) { | 9693 void TraceGLApi::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) { |
9612 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadfEXT") | 9694 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadfEXT") |
9613 gl_api_->glMatrixLoadfEXTFn(matrixMode, m); | 9695 gl_api_->glMatrixLoadfEXTFn(matrixMode, m); |
9614 } | 9696 } |
9615 | 9697 |
9616 void TraceGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) { | 9698 void TraceGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) { |
9617 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadIdentityEXT") | 9699 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadIdentityEXT") |
9618 gl_api_->glMatrixLoadIdentityEXTFn(matrixMode); | 9700 gl_api_->glMatrixLoadIdentityEXTFn(matrixMode); |
9619 } | 9701 } |
9620 | 9702 |
| 9703 void TraceGLApi::glMemoryBarrierEXTFn(GLbitfield barriers) { |
| 9704 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMemoryBarrierEXT") |
| 9705 gl_api_->glMemoryBarrierEXTFn(barriers); |
| 9706 } |
| 9707 |
9621 void TraceGLApi::glPathCommandsNVFn(GLuint path, | 9708 void TraceGLApi::glPathCommandsNVFn(GLuint path, |
9622 GLsizei numCommands, | 9709 GLsizei numCommands, |
9623 const GLubyte* commands, | 9710 const GLubyte* commands, |
9624 GLsizei numCoords, | 9711 GLsizei numCoords, |
9625 GLenum coordType, | 9712 GLenum coordType, |
9626 const GLvoid* coords) { | 9713 const GLvoid* coords) { |
9627 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathCommandsNV") | 9714 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathCommandsNV") |
9628 gl_api_->glPathCommandsNVFn(path, numCommands, commands, numCoords, coordType, | 9715 gl_api_->glPathCommandsNVFn(path, numCommands, commands, numCoords, coordType, |
9629 coords); | 9716 coords); |
9630 } | 9717 } |
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10546 "current GL context"; | 10633 "current GL context"; |
10547 } | 10634 } |
10548 | 10635 |
10549 void NoContextGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) { | 10636 void NoContextGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) { |
10550 NOTREACHED() | 10637 NOTREACHED() |
10551 << "Trying to call glBindFramebufferEXT() without current GL context"; | 10638 << "Trying to call glBindFramebufferEXT() without current GL context"; |
10552 LOG(ERROR) | 10639 LOG(ERROR) |
10553 << "Trying to call glBindFramebufferEXT() without current GL context"; | 10640 << "Trying to call glBindFramebufferEXT() without current GL context"; |
10554 } | 10641 } |
10555 | 10642 |
| 10643 void NoContextGLApi::glBindImageTextureEXTFn(GLuint index, |
| 10644 GLuint texture, |
| 10645 GLint level, |
| 10646 GLboolean layered, |
| 10647 GLint layer, |
| 10648 GLenum access, |
| 10649 GLint format) { |
| 10650 NOTREACHED() |
| 10651 << "Trying to call glBindImageTextureEXT() without current GL context"; |
| 10652 LOG(ERROR) |
| 10653 << "Trying to call glBindImageTextureEXT() without current GL context"; |
| 10654 } |
| 10655 |
10556 void NoContextGLApi::glBindRenderbufferEXTFn(GLenum target, | 10656 void NoContextGLApi::glBindRenderbufferEXTFn(GLenum target, |
10557 GLuint renderbuffer) { | 10657 GLuint renderbuffer) { |
10558 NOTREACHED() | 10658 NOTREACHED() |
10559 << "Trying to call glBindRenderbufferEXT() without current GL context"; | 10659 << "Trying to call glBindRenderbufferEXT() without current GL context"; |
10560 LOG(ERROR) | 10660 LOG(ERROR) |
10561 << "Trying to call glBindRenderbufferEXT() without current GL context"; | 10661 << "Trying to call glBindRenderbufferEXT() without current GL context"; |
10562 } | 10662 } |
10563 | 10663 |
10564 void NoContextGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) { | 10664 void NoContextGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) { |
10565 NOTREACHED() << "Trying to call glBindSampler() without current GL context"; | 10665 NOTREACHED() << "Trying to call glBindSampler() without current GL context"; |
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12034 LOG(ERROR) << "Trying to call glMatrixLoadfEXT() without current GL context"; | 12134 LOG(ERROR) << "Trying to call glMatrixLoadfEXT() without current GL context"; |
12035 } | 12135 } |
12036 | 12136 |
12037 void NoContextGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) { | 12137 void NoContextGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) { |
12038 NOTREACHED() | 12138 NOTREACHED() |
12039 << "Trying to call glMatrixLoadIdentityEXT() without current GL context"; | 12139 << "Trying to call glMatrixLoadIdentityEXT() without current GL context"; |
12040 LOG(ERROR) | 12140 LOG(ERROR) |
12041 << "Trying to call glMatrixLoadIdentityEXT() without current GL context"; | 12141 << "Trying to call glMatrixLoadIdentityEXT() without current GL context"; |
12042 } | 12142 } |
12043 | 12143 |
| 12144 void NoContextGLApi::glMemoryBarrierEXTFn(GLbitfield barriers) { |
| 12145 NOTREACHED() |
| 12146 << "Trying to call glMemoryBarrierEXT() without current GL context"; |
| 12147 LOG(ERROR) |
| 12148 << "Trying to call glMemoryBarrierEXT() without current GL context"; |
| 12149 } |
| 12150 |
12044 void NoContextGLApi::glPathCommandsNVFn(GLuint path, | 12151 void NoContextGLApi::glPathCommandsNVFn(GLuint path, |
12045 GLsizei numCommands, | 12152 GLsizei numCommands, |
12046 const GLubyte* commands, | 12153 const GLubyte* commands, |
12047 GLsizei numCoords, | 12154 GLsizei numCoords, |
12048 GLenum coordType, | 12155 GLenum coordType, |
12049 const GLvoid* coords) { | 12156 const GLvoid* coords) { |
12050 NOTREACHED() | 12157 NOTREACHED() |
12051 << "Trying to call glPathCommandsNV() without current GL context"; | 12158 << "Trying to call glPathCommandsNV() without current GL context"; |
12052 LOG(ERROR) << "Trying to call glPathCommandsNV() without current GL context"; | 12159 LOG(ERROR) << "Trying to call glPathCommandsNV() without current GL context"; |
12053 } | 12160 } |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12993 | 13100 |
12994 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, | 13101 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, |
12995 GLbitfield flags, | 13102 GLbitfield flags, |
12996 GLuint64 timeout) { | 13103 GLuint64 timeout) { |
12997 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; | 13104 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; |
12998 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; | 13105 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; |
12999 return static_cast<GLenum>(0); | 13106 return static_cast<GLenum>(0); |
13000 } | 13107 } |
13001 | 13108 |
13002 } // namespace gfx | 13109 } // namespace gfx |
OLD | NEW |