| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 fn.glCoverFillPathInstancedNVFn = 0; | 104 fn.glCoverFillPathInstancedNVFn = 0; |
| 105 fn.glCoverFillPathNVFn = 0; | 105 fn.glCoverFillPathNVFn = 0; |
| 106 fn.glCoverStrokePathInstancedNVFn = 0; | 106 fn.glCoverStrokePathInstancedNVFn = 0; |
| 107 fn.glCoverStrokePathNVFn = 0; | 107 fn.glCoverStrokePathNVFn = 0; |
| 108 fn.glCreateProgramFn = reinterpret_cast<glCreateProgramProc>( | 108 fn.glCreateProgramFn = reinterpret_cast<glCreateProgramProc>( |
| 109 GetGLProcAddress("glCreateProgram")); | 109 GetGLProcAddress("glCreateProgram")); |
| 110 fn.glCreateShaderFn = | 110 fn.glCreateShaderFn = |
| 111 reinterpret_cast<glCreateShaderProc>(GetGLProcAddress("glCreateShader")); | 111 reinterpret_cast<glCreateShaderProc>(GetGLProcAddress("glCreateShader")); |
| 112 fn.glCullFaceFn = | 112 fn.glCullFaceFn = |
| 113 reinterpret_cast<glCullFaceProc>(GetGLProcAddress("glCullFace")); | 113 reinterpret_cast<glCullFaceProc>(GetGLProcAddress("glCullFace")); |
| 114 fn.glDebugMessageCallbackFn = 0; |
| 115 fn.glDebugMessageControlFn = 0; |
| 116 fn.glDebugMessageInsertFn = 0; |
| 114 fn.glDeleteBuffersARBFn = reinterpret_cast<glDeleteBuffersARBProc>( | 117 fn.glDeleteBuffersARBFn = reinterpret_cast<glDeleteBuffersARBProc>( |
| 115 GetGLProcAddress("glDeleteBuffers")); | 118 GetGLProcAddress("glDeleteBuffers")); |
| 116 fn.glDeleteFencesAPPLEFn = 0; | 119 fn.glDeleteFencesAPPLEFn = 0; |
| 117 fn.glDeleteFencesNVFn = 0; | 120 fn.glDeleteFencesNVFn = 0; |
| 118 fn.glDeleteFramebuffersEXTFn = 0; | 121 fn.glDeleteFramebuffersEXTFn = 0; |
| 119 fn.glDeletePathsNVFn = 0; | 122 fn.glDeletePathsNVFn = 0; |
| 120 fn.glDeleteProgramFn = reinterpret_cast<glDeleteProgramProc>( | 123 fn.glDeleteProgramFn = reinterpret_cast<glDeleteProgramProc>( |
| 121 GetGLProcAddress("glDeleteProgram")); | 124 GetGLProcAddress("glDeleteProgram")); |
| 122 fn.glDeleteQueriesFn = 0; | 125 fn.glDeleteQueriesFn = 0; |
| 123 fn.glDeleteRenderbuffersEXTFn = 0; | 126 fn.glDeleteRenderbuffersEXTFn = 0; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 GetGLProcAddress("glGetAttribLocation")); | 205 GetGLProcAddress("glGetAttribLocation")); |
| 203 fn.glGetBooleani_vRobustANGLEFn = 0; | 206 fn.glGetBooleani_vRobustANGLEFn = 0; |
| 204 fn.glGetBooleanvFn = | 207 fn.glGetBooleanvFn = |
| 205 reinterpret_cast<glGetBooleanvProc>(GetGLProcAddress("glGetBooleanv")); | 208 reinterpret_cast<glGetBooleanvProc>(GetGLProcAddress("glGetBooleanv")); |
| 206 fn.glGetBooleanvRobustANGLEFn = 0; | 209 fn.glGetBooleanvRobustANGLEFn = 0; |
| 207 fn.glGetBufferParameteri64vRobustANGLEFn = 0; | 210 fn.glGetBufferParameteri64vRobustANGLEFn = 0; |
| 208 fn.glGetBufferParameterivFn = reinterpret_cast<glGetBufferParameterivProc>( | 211 fn.glGetBufferParameterivFn = reinterpret_cast<glGetBufferParameterivProc>( |
| 209 GetGLProcAddress("glGetBufferParameteriv")); | 212 GetGLProcAddress("glGetBufferParameteriv")); |
| 210 fn.glGetBufferParameterivRobustANGLEFn = 0; | 213 fn.glGetBufferParameterivRobustANGLEFn = 0; |
| 211 fn.glGetBufferPointervRobustANGLEFn = 0; | 214 fn.glGetBufferPointervRobustANGLEFn = 0; |
| 215 fn.glGetDebugMessageLogFn = 0; |
| 212 fn.glGetErrorFn = | 216 fn.glGetErrorFn = |
| 213 reinterpret_cast<glGetErrorProc>(GetGLProcAddress("glGetError")); | 217 reinterpret_cast<glGetErrorProc>(GetGLProcAddress("glGetError")); |
| 214 fn.glGetFenceivNVFn = 0; | 218 fn.glGetFenceivNVFn = 0; |
| 215 fn.glGetFloatvFn = | 219 fn.glGetFloatvFn = |
| 216 reinterpret_cast<glGetFloatvProc>(GetGLProcAddress("glGetFloatv")); | 220 reinterpret_cast<glGetFloatvProc>(GetGLProcAddress("glGetFloatv")); |
| 217 fn.glGetFloatvRobustANGLEFn = 0; | 221 fn.glGetFloatvRobustANGLEFn = 0; |
| 218 fn.glGetFragDataIndexFn = 0; | 222 fn.glGetFragDataIndexFn = 0; |
| 219 fn.glGetFragDataLocationFn = 0; | 223 fn.glGetFragDataLocationFn = 0; |
| 220 fn.glGetFramebufferAttachmentParameterivEXTFn = 0; | 224 fn.glGetFramebufferAttachmentParameterivEXTFn = 0; |
| 221 fn.glGetFramebufferAttachmentParameterivRobustANGLEFn = 0; | 225 fn.glGetFramebufferAttachmentParameterivRobustANGLEFn = 0; |
| 222 fn.glGetFramebufferParameterivRobustANGLEFn = 0; | 226 fn.glGetFramebufferParameterivRobustANGLEFn = 0; |
| 223 fn.glGetGraphicsResetStatusARBFn = 0; | 227 fn.glGetGraphicsResetStatusARBFn = 0; |
| 224 fn.glGetInteger64i_vFn = 0; | 228 fn.glGetInteger64i_vFn = 0; |
| 225 fn.glGetInteger64i_vRobustANGLEFn = 0; | 229 fn.glGetInteger64i_vRobustANGLEFn = 0; |
| 226 fn.glGetInteger64vFn = 0; | 230 fn.glGetInteger64vFn = 0; |
| 227 fn.glGetInteger64vRobustANGLEFn = 0; | 231 fn.glGetInteger64vRobustANGLEFn = 0; |
| 228 fn.glGetIntegeri_vFn = 0; | 232 fn.glGetIntegeri_vFn = 0; |
| 229 fn.glGetIntegeri_vRobustANGLEFn = 0; | 233 fn.glGetIntegeri_vRobustANGLEFn = 0; |
| 230 fn.glGetIntegervFn = | 234 fn.glGetIntegervFn = |
| 231 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv")); | 235 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv")); |
| 232 fn.glGetIntegervRobustANGLEFn = 0; | 236 fn.glGetIntegervRobustANGLEFn = 0; |
| 233 fn.glGetInternalformativFn = 0; | 237 fn.glGetInternalformativFn = 0; |
| 234 fn.glGetInternalformativRobustANGLEFn = 0; | 238 fn.glGetInternalformativRobustANGLEFn = 0; |
| 235 fn.glGetMultisamplefvRobustANGLEFn = 0; | 239 fn.glGetMultisamplefvRobustANGLEFn = 0; |
| 236 fn.glGetnUniformfvRobustANGLEFn = 0; | 240 fn.glGetnUniformfvRobustANGLEFn = 0; |
| 237 fn.glGetnUniformivRobustANGLEFn = 0; | 241 fn.glGetnUniformivRobustANGLEFn = 0; |
| 238 fn.glGetnUniformuivRobustANGLEFn = 0; | 242 fn.glGetnUniformuivRobustANGLEFn = 0; |
| 243 fn.glGetObjectLabelFn = 0; |
| 244 fn.glGetObjectPtrLabelFn = 0; |
| 245 fn.glGetPointervFn = 0; |
| 239 fn.glGetPointervRobustANGLERobustANGLEFn = 0; | 246 fn.glGetPointervRobustANGLERobustANGLEFn = 0; |
| 240 fn.glGetProgramBinaryFn = 0; | 247 fn.glGetProgramBinaryFn = 0; |
| 241 fn.glGetProgramInfoLogFn = reinterpret_cast<glGetProgramInfoLogProc>( | 248 fn.glGetProgramInfoLogFn = reinterpret_cast<glGetProgramInfoLogProc>( |
| 242 GetGLProcAddress("glGetProgramInfoLog")); | 249 GetGLProcAddress("glGetProgramInfoLog")); |
| 243 fn.glGetProgramInterfaceivFn = 0; | 250 fn.glGetProgramInterfaceivFn = 0; |
| 244 fn.glGetProgramInterfaceivRobustANGLEFn = 0; | 251 fn.glGetProgramInterfaceivRobustANGLEFn = 0; |
| 245 fn.glGetProgramivFn = | 252 fn.glGetProgramivFn = |
| 246 reinterpret_cast<glGetProgramivProc>(GetGLProcAddress("glGetProgramiv")); | 253 reinterpret_cast<glGetProgramivProc>(GetGLProcAddress("glGetProgramiv")); |
| 247 fn.glGetProgramivRobustANGLEFn = 0; | 254 fn.glGetProgramivRobustANGLEFn = 0; |
| 248 fn.glGetProgramResourceivFn = 0; | 255 fn.glGetProgramResourceivFn = 0; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 fn.glIsVertexArrayOESFn = 0; | 350 fn.glIsVertexArrayOESFn = 0; |
| 344 fn.glLineWidthFn = | 351 fn.glLineWidthFn = |
| 345 reinterpret_cast<glLineWidthProc>(GetGLProcAddress("glLineWidth")); | 352 reinterpret_cast<glLineWidthProc>(GetGLProcAddress("glLineWidth")); |
| 346 fn.glLinkProgramFn = | 353 fn.glLinkProgramFn = |
| 347 reinterpret_cast<glLinkProgramProc>(GetGLProcAddress("glLinkProgram")); | 354 reinterpret_cast<glLinkProgramProc>(GetGLProcAddress("glLinkProgram")); |
| 348 fn.glMapBufferFn = 0; | 355 fn.glMapBufferFn = 0; |
| 349 fn.glMapBufferRangeFn = 0; | 356 fn.glMapBufferRangeFn = 0; |
| 350 fn.glMatrixLoadfEXTFn = 0; | 357 fn.glMatrixLoadfEXTFn = 0; |
| 351 fn.glMatrixLoadIdentityEXTFn = 0; | 358 fn.glMatrixLoadIdentityEXTFn = 0; |
| 352 fn.glMemoryBarrierEXTFn = 0; | 359 fn.glMemoryBarrierEXTFn = 0; |
| 360 fn.glObjectLabelFn = 0; |
| 361 fn.glObjectPtrLabelFn = 0; |
| 353 fn.glPathCommandsNVFn = 0; | 362 fn.glPathCommandsNVFn = 0; |
| 354 fn.glPathParameterfNVFn = 0; | 363 fn.glPathParameterfNVFn = 0; |
| 355 fn.glPathParameteriNVFn = 0; | 364 fn.glPathParameteriNVFn = 0; |
| 356 fn.glPathStencilFuncNVFn = 0; | 365 fn.glPathStencilFuncNVFn = 0; |
| 357 fn.glPauseTransformFeedbackFn = 0; | 366 fn.glPauseTransformFeedbackFn = 0; |
| 358 fn.glPixelStoreiFn = | 367 fn.glPixelStoreiFn = |
| 359 reinterpret_cast<glPixelStoreiProc>(GetGLProcAddress("glPixelStorei")); | 368 reinterpret_cast<glPixelStoreiProc>(GetGLProcAddress("glPixelStorei")); |
| 360 fn.glPointParameteriFn = 0; | 369 fn.glPointParameteriFn = 0; |
| 361 fn.glPolygonOffsetFn = reinterpret_cast<glPolygonOffsetProc>( | 370 fn.glPolygonOffsetFn = reinterpret_cast<glPolygonOffsetProc>( |
| 362 GetGLProcAddress("glPolygonOffset")); | 371 GetGLProcAddress("glPolygonOffset")); |
| 372 fn.glPopDebugGroupFn = 0; |
| 363 fn.glPopGroupMarkerEXTFn = 0; | 373 fn.glPopGroupMarkerEXTFn = 0; |
| 364 fn.glPrimitiveRestartIndexFn = 0; | 374 fn.glPrimitiveRestartIndexFn = 0; |
| 365 fn.glProgramBinaryFn = 0; | 375 fn.glProgramBinaryFn = 0; |
| 366 fn.glProgramParameteriFn = 0; | 376 fn.glProgramParameteriFn = 0; |
| 367 fn.glProgramPathFragmentInputGenNVFn = 0; | 377 fn.glProgramPathFragmentInputGenNVFn = 0; |
| 378 fn.glPushDebugGroupFn = 0; |
| 368 fn.glPushGroupMarkerEXTFn = 0; | 379 fn.glPushGroupMarkerEXTFn = 0; |
| 369 fn.glQueryCounterFn = 0; | 380 fn.glQueryCounterFn = 0; |
| 370 fn.glReadBufferFn = 0; | 381 fn.glReadBufferFn = 0; |
| 371 fn.glReadnPixelsRobustANGLEFn = 0; | 382 fn.glReadnPixelsRobustANGLEFn = 0; |
| 372 fn.glReadPixelsFn = | 383 fn.glReadPixelsFn = |
| 373 reinterpret_cast<glReadPixelsProc>(GetGLProcAddress("glReadPixels")); | 384 reinterpret_cast<glReadPixelsProc>(GetGLProcAddress("glReadPixels")); |
| 374 fn.glReadPixelsRobustANGLEFn = 0; | 385 fn.glReadPixelsRobustANGLEFn = 0; |
| 375 fn.glReleaseShaderCompilerFn = 0; | 386 fn.glReleaseShaderCompilerFn = 0; |
| 376 fn.glRenderbufferStorageEXTFn = 0; | 387 fn.glRenderbufferStorageEXTFn = 0; |
| 377 fn.glRenderbufferStorageMultisampleFn = 0; | 388 fn.glRenderbufferStorageMultisampleFn = 0; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 extensions.find("GL_EXT_transform_feedback ") != std::string::npos; | 649 extensions.find("GL_EXT_transform_feedback ") != std::string::npos; |
| 639 ext.b_GL_EXT_unpack_subimage = | 650 ext.b_GL_EXT_unpack_subimage = |
| 640 extensions.find("GL_EXT_unpack_subimage ") != std::string::npos; | 651 extensions.find("GL_EXT_unpack_subimage ") != std::string::npos; |
| 641 ext.b_GL_IMG_multisampled_render_to_texture = | 652 ext.b_GL_IMG_multisampled_render_to_texture = |
| 642 extensions.find("GL_IMG_multisampled_render_to_texture ") != | 653 extensions.find("GL_IMG_multisampled_render_to_texture ") != |
| 643 std::string::npos; | 654 std::string::npos; |
| 644 ext.b_GL_INTEL_framebuffer_CMAA = | 655 ext.b_GL_INTEL_framebuffer_CMAA = |
| 645 extensions.find("GL_INTEL_framebuffer_CMAA ") != std::string::npos; | 656 extensions.find("GL_INTEL_framebuffer_CMAA ") != std::string::npos; |
| 646 ext.b_GL_KHR_blend_equation_advanced = | 657 ext.b_GL_KHR_blend_equation_advanced = |
| 647 extensions.find("GL_KHR_blend_equation_advanced ") != std::string::npos; | 658 extensions.find("GL_KHR_blend_equation_advanced ") != std::string::npos; |
| 659 ext.b_GL_KHR_debug = extensions.find("GL_KHR_debug ") != std::string::npos; |
| 648 ext.b_GL_KHR_robustness = | 660 ext.b_GL_KHR_robustness = |
| 649 extensions.find("GL_KHR_robustness ") != std::string::npos; | 661 extensions.find("GL_KHR_robustness ") != std::string::npos; |
| 650 ext.b_GL_NV_blend_equation_advanced = | 662 ext.b_GL_NV_blend_equation_advanced = |
| 651 extensions.find("GL_NV_blend_equation_advanced ") != std::string::npos; | 663 extensions.find("GL_NV_blend_equation_advanced ") != std::string::npos; |
| 652 ext.b_GL_NV_fence = extensions.find("GL_NV_fence ") != std::string::npos; | 664 ext.b_GL_NV_fence = extensions.find("GL_NV_fence ") != std::string::npos; |
| 653 ext.b_GL_NV_framebuffer_mixed_samples = | 665 ext.b_GL_NV_framebuffer_mixed_samples = |
| 654 extensions.find("GL_NV_framebuffer_mixed_samples ") != std::string::npos; | 666 extensions.find("GL_NV_framebuffer_mixed_samples ") != std::string::npos; |
| 655 ext.b_GL_NV_path_rendering = | 667 ext.b_GL_NV_path_rendering = |
| 656 extensions.find("GL_NV_path_rendering ") != std::string::npos; | 668 extensions.find("GL_NV_path_rendering ") != std::string::npos; |
| 657 ext.b_GL_OES_EGL_image = | 669 ext.b_GL_OES_EGL_image = |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 reinterpret_cast<glCoverStrokePathInstancedNVProc>( | 959 reinterpret_cast<glCoverStrokePathInstancedNVProc>( |
| 948 GetGLProcAddress("glCoverStrokePathInstancedNV")); | 960 GetGLProcAddress("glCoverStrokePathInstancedNV")); |
| 949 } | 961 } |
| 950 | 962 |
| 951 debug_fn.glCoverStrokePathNVFn = 0; | 963 debug_fn.glCoverStrokePathNVFn = 0; |
| 952 if (ext.b_GL_NV_path_rendering) { | 964 if (ext.b_GL_NV_path_rendering) { |
| 953 fn.glCoverStrokePathNVFn = reinterpret_cast<glCoverStrokePathNVProc>( | 965 fn.glCoverStrokePathNVFn = reinterpret_cast<glCoverStrokePathNVProc>( |
| 954 GetGLProcAddress("glCoverStrokePathNV")); | 966 GetGLProcAddress("glCoverStrokePathNV")); |
| 955 } | 967 } |
| 956 | 968 |
| 969 debug_fn.glDebugMessageCallbackFn = 0; |
| 970 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 2u)) { |
| 971 fn.glDebugMessageCallbackFn = reinterpret_cast<glDebugMessageCallbackProc>( |
| 972 GetGLProcAddress("glDebugMessageCallback")); |
| 973 } else if (ext.b_GL_KHR_debug) { |
| 974 fn.glDebugMessageCallbackFn = reinterpret_cast<glDebugMessageCallbackProc>( |
| 975 GetGLProcAddress("glDebugMessageCallbackKHR")); |
| 976 } |
| 977 |
| 978 debug_fn.glDebugMessageControlFn = 0; |
| 979 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 2u)) { |
| 980 fn.glDebugMessageControlFn = reinterpret_cast<glDebugMessageControlProc>( |
| 981 GetGLProcAddress("glDebugMessageControl")); |
| 982 } else if (ext.b_GL_KHR_debug) { |
| 983 fn.glDebugMessageControlFn = reinterpret_cast<glDebugMessageControlProc>( |
| 984 GetGLProcAddress("glDebugMessageControlKHR")); |
| 985 } |
| 986 |
| 987 debug_fn.glDebugMessageInsertFn = 0; |
| 988 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 2u)) { |
| 989 fn.glDebugMessageInsertFn = reinterpret_cast<glDebugMessageInsertProc>( |
| 990 GetGLProcAddress("glDebugMessageInsert")); |
| 991 } else if (ext.b_GL_KHR_debug) { |
| 992 fn.glDebugMessageInsertFn = reinterpret_cast<glDebugMessageInsertProc>( |
| 993 GetGLProcAddress("glDebugMessageInsertKHR")); |
| 994 } |
| 995 |
| 957 debug_fn.glDeleteFencesAPPLEFn = 0; | 996 debug_fn.glDeleteFencesAPPLEFn = 0; |
| 958 if (ext.b_GL_APPLE_fence) { | 997 if (ext.b_GL_APPLE_fence) { |
| 959 fn.glDeleteFencesAPPLEFn = reinterpret_cast<glDeleteFencesAPPLEProc>( | 998 fn.glDeleteFencesAPPLEFn = reinterpret_cast<glDeleteFencesAPPLEProc>( |
| 960 GetGLProcAddress("glDeleteFencesAPPLE")); | 999 GetGLProcAddress("glDeleteFencesAPPLE")); |
| 961 } | 1000 } |
| 962 | 1001 |
| 963 debug_fn.glDeleteFencesNVFn = 0; | 1002 debug_fn.glDeleteFencesNVFn = 0; |
| 964 if (ext.b_GL_NV_fence) { | 1003 if (ext.b_GL_NV_fence) { |
| 965 fn.glDeleteFencesNVFn = reinterpret_cast<glDeleteFencesNVProc>( | 1004 fn.glDeleteFencesNVFn = reinterpret_cast<glDeleteFencesNVProc>( |
| 966 GetGLProcAddress("glDeleteFencesNV")); | 1005 GetGLProcAddress("glDeleteFencesNV")); |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1358 GetGLProcAddress("glGetBufferParameterivRobustANGLE")); | 1397 GetGLProcAddress("glGetBufferParameterivRobustANGLE")); |
| 1359 } | 1398 } |
| 1360 | 1399 |
| 1361 debug_fn.glGetBufferPointervRobustANGLEFn = 0; | 1400 debug_fn.glGetBufferPointervRobustANGLEFn = 0; |
| 1362 if (ext.b_GL_ANGLE_robust_client_memory) { | 1401 if (ext.b_GL_ANGLE_robust_client_memory) { |
| 1363 fn.glGetBufferPointervRobustANGLEFn = | 1402 fn.glGetBufferPointervRobustANGLEFn = |
| 1364 reinterpret_cast<glGetBufferPointervRobustANGLEProc>( | 1403 reinterpret_cast<glGetBufferPointervRobustANGLEProc>( |
| 1365 GetGLProcAddress("glGetBufferPointervRobustANGLE")); | 1404 GetGLProcAddress("glGetBufferPointervRobustANGLE")); |
| 1366 } | 1405 } |
| 1367 | 1406 |
| 1407 debug_fn.glGetDebugMessageLogFn = 0; |
| 1408 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 2u)) { |
| 1409 fn.glGetDebugMessageLogFn = reinterpret_cast<glGetDebugMessageLogProc>( |
| 1410 GetGLProcAddress("glGetDebugMessageLog")); |
| 1411 } else if (ext.b_GL_KHR_debug) { |
| 1412 fn.glGetDebugMessageLogFn = reinterpret_cast<glGetDebugMessageLogProc>( |
| 1413 GetGLProcAddress("glGetDebugMessageLogKHR")); |
| 1414 } |
| 1415 |
| 1368 debug_fn.glGetFenceivNVFn = 0; | 1416 debug_fn.glGetFenceivNVFn = 0; |
| 1369 if (ext.b_GL_NV_fence) { | 1417 if (ext.b_GL_NV_fence) { |
| 1370 fn.glGetFenceivNVFn = reinterpret_cast<glGetFenceivNVProc>( | 1418 fn.glGetFenceivNVFn = reinterpret_cast<glGetFenceivNVProc>( |
| 1371 GetGLProcAddress("glGetFenceivNV")); | 1419 GetGLProcAddress("glGetFenceivNV")); |
| 1372 } | 1420 } |
| 1373 | 1421 |
| 1374 debug_fn.glGetFloatvRobustANGLEFn = 0; | 1422 debug_fn.glGetFloatvRobustANGLEFn = 0; |
| 1375 if (ext.b_GL_ANGLE_robust_client_memory) { | 1423 if (ext.b_GL_ANGLE_robust_client_memory) { |
| 1376 fn.glGetFloatvRobustANGLEFn = reinterpret_cast<glGetFloatvRobustANGLEProc>( | 1424 fn.glGetFloatvRobustANGLEFn = reinterpret_cast<glGetFloatvRobustANGLEProc>( |
| 1377 GetGLProcAddress("glGetFloatvRobustANGLE")); | 1425 GetGLProcAddress("glGetFloatvRobustANGLE")); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1412 } | 1460 } |
| 1413 | 1461 |
| 1414 debug_fn.glGetFramebufferParameterivRobustANGLEFn = 0; | 1462 debug_fn.glGetFramebufferParameterivRobustANGLEFn = 0; |
| 1415 if (ext.b_GL_ANGLE_robust_client_memory) { | 1463 if (ext.b_GL_ANGLE_robust_client_memory) { |
| 1416 fn.glGetFramebufferParameterivRobustANGLEFn = | 1464 fn.glGetFramebufferParameterivRobustANGLEFn = |
| 1417 reinterpret_cast<glGetFramebufferParameterivRobustANGLEProc>( | 1465 reinterpret_cast<glGetFramebufferParameterivRobustANGLEProc>( |
| 1418 GetGLProcAddress("glGetFramebufferParameterivRobustANGLE")); | 1466 GetGLProcAddress("glGetFramebufferParameterivRobustANGLE")); |
| 1419 } | 1467 } |
| 1420 | 1468 |
| 1421 debug_fn.glGetGraphicsResetStatusARBFn = 0; | 1469 debug_fn.glGetGraphicsResetStatusARBFn = 0; |
| 1422 if (ver->IsAtLeastGL(4u, 5u)) { | 1470 if (ver->IsAtLeastGL(4u, 5u) || ver->IsAtLeastGLES(3u, 2u)) { |
| 1423 fn.glGetGraphicsResetStatusARBFn = | 1471 fn.glGetGraphicsResetStatusARBFn = |
| 1424 reinterpret_cast<glGetGraphicsResetStatusARBProc>( | 1472 reinterpret_cast<glGetGraphicsResetStatusARBProc>( |
| 1425 GetGLProcAddress("glGetGraphicsResetStatus")); | 1473 GetGLProcAddress("glGetGraphicsResetStatus")); |
| 1426 } else if (ext.b_GL_ARB_robustness) { | 1474 } else if (ext.b_GL_ARB_robustness) { |
| 1427 fn.glGetGraphicsResetStatusARBFn = | 1475 fn.glGetGraphicsResetStatusARBFn = |
| 1428 reinterpret_cast<glGetGraphicsResetStatusARBProc>( | 1476 reinterpret_cast<glGetGraphicsResetStatusARBProc>( |
| 1429 GetGLProcAddress("glGetGraphicsResetStatusARB")); | 1477 GetGLProcAddress("glGetGraphicsResetStatusARB")); |
| 1430 } else if (ext.b_GL_KHR_robustness) { | 1478 } else if (ext.b_GL_KHR_robustness) { |
| 1431 fn.glGetGraphicsResetStatusARBFn = | 1479 fn.glGetGraphicsResetStatusARBFn = |
| 1432 reinterpret_cast<glGetGraphicsResetStatusARBProc>( | 1480 reinterpret_cast<glGetGraphicsResetStatusARBProc>( |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1517 GetGLProcAddress("glGetnUniformivRobustANGLE")); | 1565 GetGLProcAddress("glGetnUniformivRobustANGLE")); |
| 1518 } | 1566 } |
| 1519 | 1567 |
| 1520 debug_fn.glGetnUniformuivRobustANGLEFn = 0; | 1568 debug_fn.glGetnUniformuivRobustANGLEFn = 0; |
| 1521 if (ext.b_GL_ANGLE_robust_client_memory) { | 1569 if (ext.b_GL_ANGLE_robust_client_memory) { |
| 1522 fn.glGetnUniformuivRobustANGLEFn = | 1570 fn.glGetnUniformuivRobustANGLEFn = |
| 1523 reinterpret_cast<glGetnUniformuivRobustANGLEProc>( | 1571 reinterpret_cast<glGetnUniformuivRobustANGLEProc>( |
| 1524 GetGLProcAddress("glGetnUniformuivRobustANGLE")); | 1572 GetGLProcAddress("glGetnUniformuivRobustANGLE")); |
| 1525 } | 1573 } |
| 1526 | 1574 |
| 1575 debug_fn.glGetObjectLabelFn = 0; |
| 1576 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 2u)) { |
| 1577 fn.glGetObjectLabelFn = reinterpret_cast<glGetObjectLabelProc>( |
| 1578 GetGLProcAddress("glGetObjectLabel")); |
| 1579 } else if (ext.b_GL_KHR_debug) { |
| 1580 fn.glGetObjectLabelFn = reinterpret_cast<glGetObjectLabelProc>( |
| 1581 GetGLProcAddress("glGetObjectLabelKHR")); |
| 1582 } |
| 1583 |
| 1584 debug_fn.glGetObjectPtrLabelFn = 0; |
| 1585 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 2u)) { |
| 1586 fn.glGetObjectPtrLabelFn = reinterpret_cast<glGetObjectPtrLabelProc>( |
| 1587 GetGLProcAddress("glGetObjectPtrLabel")); |
| 1588 } else if (ext.b_GL_KHR_debug) { |
| 1589 fn.glGetObjectPtrLabelFn = reinterpret_cast<glGetObjectPtrLabelProc>( |
| 1590 GetGLProcAddress("glGetObjectPtrLabelKHR")); |
| 1591 } |
| 1592 |
| 1593 debug_fn.glGetPointervFn = 0; |
| 1594 if (!ver->is_es || ver->IsAtLeastGLES(3u, 2u)) { |
| 1595 fn.glGetPointervFn = |
| 1596 reinterpret_cast<glGetPointervProc>(GetGLProcAddress("glGetPointerv")); |
| 1597 } else if (ext.b_GL_KHR_debug) { |
| 1598 fn.glGetPointervFn = reinterpret_cast<glGetPointervProc>( |
| 1599 GetGLProcAddress("glGetPointervKHR")); |
| 1600 } |
| 1601 |
| 1527 debug_fn.glGetPointervRobustANGLERobustANGLEFn = 0; | 1602 debug_fn.glGetPointervRobustANGLERobustANGLEFn = 0; |
| 1528 if (ext.b_GL_ANGLE_robust_client_memory) { | 1603 if (ext.b_GL_ANGLE_robust_client_memory) { |
| 1529 fn.glGetPointervRobustANGLERobustANGLEFn = | 1604 fn.glGetPointervRobustANGLERobustANGLEFn = |
| 1530 reinterpret_cast<glGetPointervRobustANGLERobustANGLEProc>( | 1605 reinterpret_cast<glGetPointervRobustANGLERobustANGLEProc>( |
| 1531 GetGLProcAddress("glGetPointervRobustANGLERobustANGLE")); | 1606 GetGLProcAddress("glGetPointervRobustANGLERobustANGLE")); |
| 1532 } | 1607 } |
| 1533 | 1608 |
| 1534 debug_fn.glGetProgramBinaryFn = 0; | 1609 debug_fn.glGetProgramBinaryFn = 0; |
| 1535 if (ver->IsAtLeastGL(4u, 1u) || ver->IsAtLeastGLES(3u, 0u) || | 1610 if (ver->IsAtLeastGL(4u, 1u) || ver->IsAtLeastGLES(3u, 0u) || |
| 1536 ext.b_GL_ARB_get_program_binary) { | 1611 ext.b_GL_ARB_get_program_binary) { |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2045 debug_fn.glMemoryBarrierEXTFn = 0; | 2120 debug_fn.glMemoryBarrierEXTFn = 0; |
| 2046 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 1u) || | 2121 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 1u) || |
| 2047 ext.b_GL_ARB_shader_image_load_store) { | 2122 ext.b_GL_ARB_shader_image_load_store) { |
| 2048 fn.glMemoryBarrierEXTFn = reinterpret_cast<glMemoryBarrierEXTProc>( | 2123 fn.glMemoryBarrierEXTFn = reinterpret_cast<glMemoryBarrierEXTProc>( |
| 2049 GetGLProcAddress("glMemoryBarrier")); | 2124 GetGLProcAddress("glMemoryBarrier")); |
| 2050 } else if (ext.b_GL_EXT_shader_image_load_store) { | 2125 } else if (ext.b_GL_EXT_shader_image_load_store) { |
| 2051 fn.glMemoryBarrierEXTFn = reinterpret_cast<glMemoryBarrierEXTProc>( | 2126 fn.glMemoryBarrierEXTFn = reinterpret_cast<glMemoryBarrierEXTProc>( |
| 2052 GetGLProcAddress("glMemoryBarrierEXT")); | 2127 GetGLProcAddress("glMemoryBarrierEXT")); |
| 2053 } | 2128 } |
| 2054 | 2129 |
| 2130 debug_fn.glObjectLabelFn = 0; |
| 2131 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 2u)) { |
| 2132 fn.glObjectLabelFn = |
| 2133 reinterpret_cast<glObjectLabelProc>(GetGLProcAddress("glObjectLabel")); |
| 2134 } else if (ext.b_GL_KHR_debug) { |
| 2135 fn.glObjectLabelFn = reinterpret_cast<glObjectLabelProc>( |
| 2136 GetGLProcAddress("glObjectLabelKHR")); |
| 2137 } |
| 2138 |
| 2139 debug_fn.glObjectPtrLabelFn = 0; |
| 2140 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 2u)) { |
| 2141 fn.glObjectPtrLabelFn = reinterpret_cast<glObjectPtrLabelProc>( |
| 2142 GetGLProcAddress("glObjectPtrLabel")); |
| 2143 } else if (ext.b_GL_KHR_debug) { |
| 2144 fn.glObjectPtrLabelFn = reinterpret_cast<glObjectPtrLabelProc>( |
| 2145 GetGLProcAddress("glObjectPtrLabelKHR")); |
| 2146 } |
| 2147 |
| 2055 debug_fn.glPathCommandsNVFn = 0; | 2148 debug_fn.glPathCommandsNVFn = 0; |
| 2056 if (ext.b_GL_NV_path_rendering) { | 2149 if (ext.b_GL_NV_path_rendering) { |
| 2057 fn.glPathCommandsNVFn = reinterpret_cast<glPathCommandsNVProc>( | 2150 fn.glPathCommandsNVFn = reinterpret_cast<glPathCommandsNVProc>( |
| 2058 GetGLProcAddress("glPathCommandsNV")); | 2151 GetGLProcAddress("glPathCommandsNV")); |
| 2059 } | 2152 } |
| 2060 | 2153 |
| 2061 debug_fn.glPathParameterfNVFn = 0; | 2154 debug_fn.glPathParameterfNVFn = 0; |
| 2062 if (ext.b_GL_NV_path_rendering) { | 2155 if (ext.b_GL_NV_path_rendering) { |
| 2063 fn.glPathParameterfNVFn = reinterpret_cast<glPathParameterfNVProc>( | 2156 fn.glPathParameterfNVFn = reinterpret_cast<glPathParameterfNVProc>( |
| 2064 GetGLProcAddress("glPathParameterfNV")); | 2157 GetGLProcAddress("glPathParameterfNV")); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2083 reinterpret_cast<glPauseTransformFeedbackProc>( | 2176 reinterpret_cast<glPauseTransformFeedbackProc>( |
| 2084 GetGLProcAddress("glPauseTransformFeedback")); | 2177 GetGLProcAddress("glPauseTransformFeedback")); |
| 2085 } | 2178 } |
| 2086 | 2179 |
| 2087 debug_fn.glPointParameteriFn = 0; | 2180 debug_fn.glPointParameteriFn = 0; |
| 2088 if (!ver->is_es) { | 2181 if (!ver->is_es) { |
| 2089 fn.glPointParameteriFn = reinterpret_cast<glPointParameteriProc>( | 2182 fn.glPointParameteriFn = reinterpret_cast<glPointParameteriProc>( |
| 2090 GetGLProcAddress("glPointParameteri")); | 2183 GetGLProcAddress("glPointParameteri")); |
| 2091 } | 2184 } |
| 2092 | 2185 |
| 2186 debug_fn.glPopDebugGroupFn = 0; |
| 2187 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 2u)) { |
| 2188 fn.glPopDebugGroupFn = reinterpret_cast<glPopDebugGroupProc>( |
| 2189 GetGLProcAddress("glPopDebugGroup")); |
| 2190 } else if (ext.b_GL_KHR_debug) { |
| 2191 fn.glPopDebugGroupFn = reinterpret_cast<glPopDebugGroupProc>( |
| 2192 GetGLProcAddress("glPopDebugGroupKHR")); |
| 2193 } |
| 2194 |
| 2093 debug_fn.glPopGroupMarkerEXTFn = 0; | 2195 debug_fn.glPopGroupMarkerEXTFn = 0; |
| 2094 if (ext.b_GL_EXT_debug_marker) { | 2196 if (ext.b_GL_EXT_debug_marker) { |
| 2095 fn.glPopGroupMarkerEXTFn = reinterpret_cast<glPopGroupMarkerEXTProc>( | 2197 fn.glPopGroupMarkerEXTFn = reinterpret_cast<glPopGroupMarkerEXTProc>( |
| 2096 GetGLProcAddress("glPopGroupMarkerEXT")); | 2198 GetGLProcAddress("glPopGroupMarkerEXT")); |
| 2097 } | 2199 } |
| 2098 | 2200 |
| 2099 debug_fn.glPrimitiveRestartIndexFn = 0; | 2201 debug_fn.glPrimitiveRestartIndexFn = 0; |
| 2100 if (ver->IsAtLeastGL(3u, 1u)) { | 2202 if (ver->IsAtLeastGL(3u, 1u)) { |
| 2101 fn.glPrimitiveRestartIndexFn = | 2203 fn.glPrimitiveRestartIndexFn = |
| 2102 reinterpret_cast<glPrimitiveRestartIndexProc>( | 2204 reinterpret_cast<glPrimitiveRestartIndexProc>( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2120 GetGLProcAddress("glProgramParameteri")); | 2222 GetGLProcAddress("glProgramParameteri")); |
| 2121 } | 2223 } |
| 2122 | 2224 |
| 2123 debug_fn.glProgramPathFragmentInputGenNVFn = 0; | 2225 debug_fn.glProgramPathFragmentInputGenNVFn = 0; |
| 2124 if (ext.b_GL_NV_path_rendering) { | 2226 if (ext.b_GL_NV_path_rendering) { |
| 2125 fn.glProgramPathFragmentInputGenNVFn = | 2227 fn.glProgramPathFragmentInputGenNVFn = |
| 2126 reinterpret_cast<glProgramPathFragmentInputGenNVProc>( | 2228 reinterpret_cast<glProgramPathFragmentInputGenNVProc>( |
| 2127 GetGLProcAddress("glProgramPathFragmentInputGenNV")); | 2229 GetGLProcAddress("glProgramPathFragmentInputGenNV")); |
| 2128 } | 2230 } |
| 2129 | 2231 |
| 2232 debug_fn.glPushDebugGroupFn = 0; |
| 2233 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 2u)) { |
| 2234 fn.glPushDebugGroupFn = reinterpret_cast<glPushDebugGroupProc>( |
| 2235 GetGLProcAddress("glPushDebugGroup")); |
| 2236 } else if (ext.b_GL_KHR_debug) { |
| 2237 fn.glPushDebugGroupFn = reinterpret_cast<glPushDebugGroupProc>( |
| 2238 GetGLProcAddress("glPushDebugGroupKHR")); |
| 2239 } |
| 2240 |
| 2130 debug_fn.glPushGroupMarkerEXTFn = 0; | 2241 debug_fn.glPushGroupMarkerEXTFn = 0; |
| 2131 if (ext.b_GL_EXT_debug_marker) { | 2242 if (ext.b_GL_EXT_debug_marker) { |
| 2132 fn.glPushGroupMarkerEXTFn = reinterpret_cast<glPushGroupMarkerEXTProc>( | 2243 fn.glPushGroupMarkerEXTFn = reinterpret_cast<glPushGroupMarkerEXTProc>( |
| 2133 GetGLProcAddress("glPushGroupMarkerEXT")); | 2244 GetGLProcAddress("glPushGroupMarkerEXT")); |
| 2134 } | 2245 } |
| 2135 | 2246 |
| 2136 debug_fn.glQueryCounterFn = 0; | 2247 debug_fn.glQueryCounterFn = 0; |
| 2137 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_timer_query) { | 2248 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_timer_query) { |
| 2138 fn.glQueryCounterFn = reinterpret_cast<glQueryCounterProc>( | 2249 fn.glQueryCounterFn = reinterpret_cast<glQueryCounterProc>( |
| 2139 GetGLProcAddress("glQueryCounter")); | 2250 GetGLProcAddress("glQueryCounter")); |
| (...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3336 return result; | 3447 return result; |
| 3337 } | 3448 } |
| 3338 | 3449 |
| 3339 static void GL_BINDING_CALL Debug_glCullFace(GLenum mode) { | 3450 static void GL_BINDING_CALL Debug_glCullFace(GLenum mode) { |
| 3340 GL_SERVICE_LOG("glCullFace" | 3451 GL_SERVICE_LOG("glCullFace" |
| 3341 << "(" << GLEnums::GetStringEnum(mode) << ")"); | 3452 << "(" << GLEnums::GetStringEnum(mode) << ")"); |
| 3342 DCHECK(g_driver_gl.debug_fn.glCullFaceFn != nullptr); | 3453 DCHECK(g_driver_gl.debug_fn.glCullFaceFn != nullptr); |
| 3343 g_driver_gl.debug_fn.glCullFaceFn(mode); | 3454 g_driver_gl.debug_fn.glCullFaceFn(mode); |
| 3344 } | 3455 } |
| 3345 | 3456 |
| 3457 static void GL_BINDING_CALL |
| 3458 Debug_glDebugMessageCallback(GLDEBUGPROC callback, const void* userParam) { |
| 3459 GL_SERVICE_LOG("glDebugMessageCallback" |
| 3460 << "(" << callback << ", " |
| 3461 << static_cast<const void*>(userParam) << ")"); |
| 3462 DCHECK(g_driver_gl.debug_fn.glDebugMessageCallbackFn != nullptr); |
| 3463 g_driver_gl.debug_fn.glDebugMessageCallbackFn(callback, userParam); |
| 3464 } |
| 3465 |
| 3466 static void GL_BINDING_CALL Debug_glDebugMessageControl(GLenum source, |
| 3467 GLenum type, |
| 3468 GLenum severity, |
| 3469 GLsizei count, |
| 3470 const GLuint* ids, |
| 3471 GLboolean enabled) { |
| 3472 GL_SERVICE_LOG("glDebugMessageControl" |
| 3473 << "(" << GLEnums::GetStringEnum(source) << ", " |
| 3474 << GLEnums::GetStringEnum(type) << ", " |
| 3475 << GLEnums::GetStringEnum(severity) << ", " << count << ", " |
| 3476 << static_cast<const void*>(ids) << ", " |
| 3477 << GLEnums::GetStringBool(enabled) << ")"); |
| 3478 DCHECK(g_driver_gl.debug_fn.glDebugMessageControlFn != nullptr); |
| 3479 g_driver_gl.debug_fn.glDebugMessageControlFn(source, type, severity, count, |
| 3480 ids, enabled); |
| 3481 } |
| 3482 |
| 3483 static void GL_BINDING_CALL Debug_glDebugMessageInsert(GLenum source, |
| 3484 GLenum type, |
| 3485 GLuint id, |
| 3486 GLenum severity, |
| 3487 GLsizei length, |
| 3488 const char* buf) { |
| 3489 GL_SERVICE_LOG("glDebugMessageInsert" |
| 3490 << "(" << GLEnums::GetStringEnum(source) << ", " |
| 3491 << GLEnums::GetStringEnum(type) << ", " << id << ", " |
| 3492 << GLEnums::GetStringEnum(severity) << ", " << length << ", " |
| 3493 << buf << ")"); |
| 3494 DCHECK(g_driver_gl.debug_fn.glDebugMessageInsertFn != nullptr); |
| 3495 g_driver_gl.debug_fn.glDebugMessageInsertFn(source, type, id, severity, |
| 3496 length, buf); |
| 3497 } |
| 3498 |
| 3346 static void GL_BINDING_CALL Debug_glDeleteBuffersARB(GLsizei n, | 3499 static void GL_BINDING_CALL Debug_glDeleteBuffersARB(GLsizei n, |
| 3347 const GLuint* buffers) { | 3500 const GLuint* buffers) { |
| 3348 GL_SERVICE_LOG("glDeleteBuffersARB" | 3501 GL_SERVICE_LOG("glDeleteBuffersARB" |
| 3349 << "(" << n << ", " << static_cast<const void*>(buffers) | 3502 << "(" << n << ", " << static_cast<const void*>(buffers) |
| 3350 << ")"); | 3503 << ")"); |
| 3351 DCHECK(g_driver_gl.debug_fn.glDeleteBuffersARBFn != nullptr); | 3504 DCHECK(g_driver_gl.debug_fn.glDeleteBuffersARBFn != nullptr); |
| 3352 g_driver_gl.debug_fn.glDeleteBuffersARBFn(n, buffers); | 3505 g_driver_gl.debug_fn.glDeleteBuffersARBFn(n, buffers); |
| 3353 } | 3506 } |
| 3354 | 3507 |
| 3355 static void GL_BINDING_CALL Debug_glDeleteFencesAPPLE(GLsizei n, | 3508 static void GL_BINDING_CALL Debug_glDeleteFencesAPPLE(GLsizei n, |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4096 void** params) { | 4249 void** params) { |
| 4097 GL_SERVICE_LOG("glGetBufferPointervRobustANGLE" | 4250 GL_SERVICE_LOG("glGetBufferPointervRobustANGLE" |
| 4098 << "(" << GLEnums::GetStringEnum(target) << ", " | 4251 << "(" << GLEnums::GetStringEnum(target) << ", " |
| 4099 << GLEnums::GetStringEnum(pname) << ", " << bufSize << ", " | 4252 << GLEnums::GetStringEnum(pname) << ", " << bufSize << ", " |
| 4100 << static_cast<const void*>(length) << ", " << params << ")"); | 4253 << static_cast<const void*>(length) << ", " << params << ")"); |
| 4101 DCHECK(g_driver_gl.debug_fn.glGetBufferPointervRobustANGLEFn != nullptr); | 4254 DCHECK(g_driver_gl.debug_fn.glGetBufferPointervRobustANGLEFn != nullptr); |
| 4102 g_driver_gl.debug_fn.glGetBufferPointervRobustANGLEFn(target, pname, bufSize, | 4255 g_driver_gl.debug_fn.glGetBufferPointervRobustANGLEFn(target, pname, bufSize, |
| 4103 length, params); | 4256 length, params); |
| 4104 } | 4257 } |
| 4105 | 4258 |
| 4259 static void GL_BINDING_CALL Debug_glGetDebugMessageLog(GLuint count, |
| 4260 GLsizei bufSize, |
| 4261 GLenum* sources, |
| 4262 GLenum* types, |
| 4263 GLuint* ids, |
| 4264 GLenum* severities, |
| 4265 GLsizei* lengths, |
| 4266 char* messageLog) { |
| 4267 GL_SERVICE_LOG("glGetDebugMessageLog" |
| 4268 << "(" << count << ", " << bufSize << ", " |
| 4269 << static_cast<const void*>(sources) << ", " |
| 4270 << static_cast<const void*>(types) << ", " |
| 4271 << static_cast<const void*>(ids) << ", " |
| 4272 << static_cast<const void*>(severities) << ", " |
| 4273 << static_cast<const void*>(lengths) << ", " |
| 4274 << static_cast<const void*>(messageLog) << ")"); |
| 4275 DCHECK(g_driver_gl.debug_fn.glGetDebugMessageLogFn != nullptr); |
| 4276 g_driver_gl.debug_fn.glGetDebugMessageLogFn( |
| 4277 count, bufSize, sources, types, ids, severities, lengths, messageLog); |
| 4278 } |
| 4279 |
| 4106 static GLenum GL_BINDING_CALL Debug_glGetError(void) { | 4280 static GLenum GL_BINDING_CALL Debug_glGetError(void) { |
| 4107 GL_SERVICE_LOG("glGetError" | 4281 GL_SERVICE_LOG("glGetError" |
| 4108 << "(" | 4282 << "(" |
| 4109 << ")"); | 4283 << ")"); |
| 4110 DCHECK(g_driver_gl.debug_fn.glGetErrorFn != nullptr); | 4284 DCHECK(g_driver_gl.debug_fn.glGetErrorFn != nullptr); |
| 4111 GLenum result = g_driver_gl.debug_fn.glGetErrorFn(); | 4285 GLenum result = g_driver_gl.debug_fn.glGetErrorFn(); |
| 4112 | 4286 |
| 4113 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result)); | 4287 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result)); |
| 4114 | 4288 |
| 4115 return result; | 4289 return result; |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4400 GLuint* params) { | 4574 GLuint* params) { |
| 4401 GL_SERVICE_LOG("glGetnUniformuivRobustANGLE" | 4575 GL_SERVICE_LOG("glGetnUniformuivRobustANGLE" |
| 4402 << "(" << program << ", " << location << ", " << bufSize | 4576 << "(" << program << ", " << location << ", " << bufSize |
| 4403 << ", " << static_cast<const void*>(length) << ", " | 4577 << ", " << static_cast<const void*>(length) << ", " |
| 4404 << static_cast<const void*>(params) << ")"); | 4578 << static_cast<const void*>(params) << ")"); |
| 4405 DCHECK(g_driver_gl.debug_fn.glGetnUniformuivRobustANGLEFn != nullptr); | 4579 DCHECK(g_driver_gl.debug_fn.glGetnUniformuivRobustANGLEFn != nullptr); |
| 4406 g_driver_gl.debug_fn.glGetnUniformuivRobustANGLEFn(program, location, bufSize, | 4580 g_driver_gl.debug_fn.glGetnUniformuivRobustANGLEFn(program, location, bufSize, |
| 4407 length, params); | 4581 length, params); |
| 4408 } | 4582 } |
| 4409 | 4583 |
| 4584 static void GL_BINDING_CALL Debug_glGetObjectLabel(GLenum identifier, |
| 4585 GLuint name, |
| 4586 GLsizei bufSize, |
| 4587 GLsizei* length, |
| 4588 char* label) { |
| 4589 GL_SERVICE_LOG("glGetObjectLabel" |
| 4590 << "(" << GLEnums::GetStringEnum(identifier) << ", " << name |
| 4591 << ", " << bufSize << ", " << static_cast<const void*>(length) |
| 4592 << ", " << static_cast<const void*>(label) << ")"); |
| 4593 DCHECK(g_driver_gl.debug_fn.glGetObjectLabelFn != nullptr); |
| 4594 g_driver_gl.debug_fn.glGetObjectLabelFn(identifier, name, bufSize, length, |
| 4595 label); |
| 4596 } |
| 4597 |
| 4598 static void GL_BINDING_CALL Debug_glGetObjectPtrLabel(void* ptr, |
| 4599 GLsizei bufSize, |
| 4600 GLsizei* length, |
| 4601 char* label) { |
| 4602 GL_SERVICE_LOG("glGetObjectPtrLabel" |
| 4603 << "(" << static_cast<const void*>(ptr) << ", " << bufSize |
| 4604 << ", " << static_cast<const void*>(length) << ", " |
| 4605 << static_cast<const void*>(label) << ")"); |
| 4606 DCHECK(g_driver_gl.debug_fn.glGetObjectPtrLabelFn != nullptr); |
| 4607 g_driver_gl.debug_fn.glGetObjectPtrLabelFn(ptr, bufSize, length, label); |
| 4608 } |
| 4609 |
| 4610 static void GL_BINDING_CALL Debug_glGetPointerv(GLenum pname, void** params) { |
| 4611 GL_SERVICE_LOG("glGetPointerv" |
| 4612 << "(" << GLEnums::GetStringEnum(pname) << ", " << params |
| 4613 << ")"); |
| 4614 DCHECK(g_driver_gl.debug_fn.glGetPointervFn != nullptr); |
| 4615 g_driver_gl.debug_fn.glGetPointervFn(pname, params); |
| 4616 } |
| 4617 |
| 4410 static void GL_BINDING_CALL | 4618 static void GL_BINDING_CALL |
| 4411 Debug_glGetPointervRobustANGLERobustANGLE(GLenum pname, | 4619 Debug_glGetPointervRobustANGLERobustANGLE(GLenum pname, |
| 4412 GLsizei bufSize, | 4620 GLsizei bufSize, |
| 4413 GLsizei* length, | 4621 GLsizei* length, |
| 4414 void** params) { | 4622 void** params) { |
| 4415 GL_SERVICE_LOG("glGetPointervRobustANGLERobustANGLE" | 4623 GL_SERVICE_LOG("glGetPointervRobustANGLERobustANGLE" |
| 4416 << "(" << GLEnums::GetStringEnum(pname) << ", " << bufSize | 4624 << "(" << GLEnums::GetStringEnum(pname) << ", " << bufSize |
| 4417 << ", " << static_cast<const void*>(length) << ", " << params | 4625 << ", " << static_cast<const void*>(length) << ", " << params |
| 4418 << ")"); | 4626 << ")"); |
| 4419 DCHECK(g_driver_gl.debug_fn.glGetPointervRobustANGLERobustANGLEFn != nullptr); | 4627 DCHECK(g_driver_gl.debug_fn.glGetPointervRobustANGLERobustANGLEFn != nullptr); |
| (...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5515 g_driver_gl.debug_fn.glMatrixLoadIdentityEXTFn(matrixMode); | 5723 g_driver_gl.debug_fn.glMatrixLoadIdentityEXTFn(matrixMode); |
| 5516 } | 5724 } |
| 5517 | 5725 |
| 5518 static void GL_BINDING_CALL Debug_glMemoryBarrierEXT(GLbitfield barriers) { | 5726 static void GL_BINDING_CALL Debug_glMemoryBarrierEXT(GLbitfield barriers) { |
| 5519 GL_SERVICE_LOG("glMemoryBarrierEXT" | 5727 GL_SERVICE_LOG("glMemoryBarrierEXT" |
| 5520 << "(" << barriers << ")"); | 5728 << "(" << barriers << ")"); |
| 5521 DCHECK(g_driver_gl.debug_fn.glMemoryBarrierEXTFn != nullptr); | 5729 DCHECK(g_driver_gl.debug_fn.glMemoryBarrierEXTFn != nullptr); |
| 5522 g_driver_gl.debug_fn.glMemoryBarrierEXTFn(barriers); | 5730 g_driver_gl.debug_fn.glMemoryBarrierEXTFn(barriers); |
| 5523 } | 5731 } |
| 5524 | 5732 |
| 5733 static void GL_BINDING_CALL Debug_glObjectLabel(GLenum identifier, |
| 5734 GLuint name, |
| 5735 GLsizei length, |
| 5736 const char* label) { |
| 5737 GL_SERVICE_LOG("glObjectLabel" |
| 5738 << "(" << GLEnums::GetStringEnum(identifier) << ", " << name |
| 5739 << ", " << length << ", " << label << ")"); |
| 5740 DCHECK(g_driver_gl.debug_fn.glObjectLabelFn != nullptr); |
| 5741 g_driver_gl.debug_fn.glObjectLabelFn(identifier, name, length, label); |
| 5742 } |
| 5743 |
| 5744 static void GL_BINDING_CALL Debug_glObjectPtrLabel(void* ptr, |
| 5745 GLsizei length, |
| 5746 const char* label) { |
| 5747 GL_SERVICE_LOG("glObjectPtrLabel" |
| 5748 << "(" << static_cast<const void*>(ptr) << ", " << length |
| 5749 << ", " << label << ")"); |
| 5750 DCHECK(g_driver_gl.debug_fn.glObjectPtrLabelFn != nullptr); |
| 5751 g_driver_gl.debug_fn.glObjectPtrLabelFn(ptr, length, label); |
| 5752 } |
| 5753 |
| 5525 static void GL_BINDING_CALL Debug_glPathCommandsNV(GLuint path, | 5754 static void GL_BINDING_CALL Debug_glPathCommandsNV(GLuint path, |
| 5526 GLsizei numCommands, | 5755 GLsizei numCommands, |
| 5527 const GLubyte* commands, | 5756 const GLubyte* commands, |
| 5528 GLsizei numCoords, | 5757 GLsizei numCoords, |
| 5529 GLenum coordType, | 5758 GLenum coordType, |
| 5530 const GLvoid* coords) { | 5759 const GLvoid* coords) { |
| 5531 GL_SERVICE_LOG("glPathCommandsNV" | 5760 GL_SERVICE_LOG("glPathCommandsNV" |
| 5532 << "(" << path << ", " << numCommands << ", " | 5761 << "(" << path << ", " << numCommands << ", " |
| 5533 << static_cast<const void*>(commands) << ", " << numCoords | 5762 << static_cast<const void*>(commands) << ", " << numCoords |
| 5534 << ", " << GLEnums::GetStringEnum(coordType) << ", " | 5763 << ", " << GLEnums::GetStringEnum(coordType) << ", " |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5593 } | 5822 } |
| 5594 | 5823 |
| 5595 static void GL_BINDING_CALL Debug_glPolygonOffset(GLfloat factor, | 5824 static void GL_BINDING_CALL Debug_glPolygonOffset(GLfloat factor, |
| 5596 GLfloat units) { | 5825 GLfloat units) { |
| 5597 GL_SERVICE_LOG("glPolygonOffset" | 5826 GL_SERVICE_LOG("glPolygonOffset" |
| 5598 << "(" << factor << ", " << units << ")"); | 5827 << "(" << factor << ", " << units << ")"); |
| 5599 DCHECK(g_driver_gl.debug_fn.glPolygonOffsetFn != nullptr); | 5828 DCHECK(g_driver_gl.debug_fn.glPolygonOffsetFn != nullptr); |
| 5600 g_driver_gl.debug_fn.glPolygonOffsetFn(factor, units); | 5829 g_driver_gl.debug_fn.glPolygonOffsetFn(factor, units); |
| 5601 } | 5830 } |
| 5602 | 5831 |
| 5832 static void GL_BINDING_CALL Debug_glPopDebugGroup() { |
| 5833 GL_SERVICE_LOG("glPopDebugGroup" |
| 5834 << "(" |
| 5835 << ")"); |
| 5836 DCHECK(g_driver_gl.debug_fn.glPopDebugGroupFn != nullptr); |
| 5837 g_driver_gl.debug_fn.glPopDebugGroupFn(); |
| 5838 } |
| 5839 |
| 5603 static void GL_BINDING_CALL Debug_glPopGroupMarkerEXT(void) { | 5840 static void GL_BINDING_CALL Debug_glPopGroupMarkerEXT(void) { |
| 5604 GL_SERVICE_LOG("glPopGroupMarkerEXT" | 5841 GL_SERVICE_LOG("glPopGroupMarkerEXT" |
| 5605 << "(" | 5842 << "(" |
| 5606 << ")"); | 5843 << ")"); |
| 5607 DCHECK(g_driver_gl.debug_fn.glPopGroupMarkerEXTFn != nullptr); | 5844 DCHECK(g_driver_gl.debug_fn.glPopGroupMarkerEXTFn != nullptr); |
| 5608 g_driver_gl.debug_fn.glPopGroupMarkerEXTFn(); | 5845 g_driver_gl.debug_fn.glPopGroupMarkerEXTFn(); |
| 5609 } | 5846 } |
| 5610 | 5847 |
| 5611 static void GL_BINDING_CALL Debug_glPrimitiveRestartIndex(GLuint index) { | 5848 static void GL_BINDING_CALL Debug_glPrimitiveRestartIndex(GLuint index) { |
| 5612 GL_SERVICE_LOG("glPrimitiveRestartIndex" | 5849 GL_SERVICE_LOG("glPrimitiveRestartIndex" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5645 const GLfloat* coeffs) { | 5882 const GLfloat* coeffs) { |
| 5646 GL_SERVICE_LOG("glProgramPathFragmentInputGenNV" | 5883 GL_SERVICE_LOG("glProgramPathFragmentInputGenNV" |
| 5647 << "(" << program << ", " << location << ", " | 5884 << "(" << program << ", " << location << ", " |
| 5648 << GLEnums::GetStringEnum(genMode) << ", " << components | 5885 << GLEnums::GetStringEnum(genMode) << ", " << components |
| 5649 << ", " << static_cast<const void*>(coeffs) << ")"); | 5886 << ", " << static_cast<const void*>(coeffs) << ")"); |
| 5650 DCHECK(g_driver_gl.debug_fn.glProgramPathFragmentInputGenNVFn != nullptr); | 5887 DCHECK(g_driver_gl.debug_fn.glProgramPathFragmentInputGenNVFn != nullptr); |
| 5651 g_driver_gl.debug_fn.glProgramPathFragmentInputGenNVFn( | 5888 g_driver_gl.debug_fn.glProgramPathFragmentInputGenNVFn( |
| 5652 program, location, genMode, components, coeffs); | 5889 program, location, genMode, components, coeffs); |
| 5653 } | 5890 } |
| 5654 | 5891 |
| 5892 static void GL_BINDING_CALL Debug_glPushDebugGroup(GLenum source, |
| 5893 GLuint id, |
| 5894 GLsizei length, |
| 5895 const char* message) { |
| 5896 GL_SERVICE_LOG("glPushDebugGroup" |
| 5897 << "(" << GLEnums::GetStringEnum(source) << ", " << id << ", " |
| 5898 << length << ", " << message << ")"); |
| 5899 DCHECK(g_driver_gl.debug_fn.glPushDebugGroupFn != nullptr); |
| 5900 g_driver_gl.debug_fn.glPushDebugGroupFn(source, id, length, message); |
| 5901 } |
| 5902 |
| 5655 static void GL_BINDING_CALL Debug_glPushGroupMarkerEXT(GLsizei length, | 5903 static void GL_BINDING_CALL Debug_glPushGroupMarkerEXT(GLsizei length, |
| 5656 const char* marker) { | 5904 const char* marker) { |
| 5657 GL_SERVICE_LOG("glPushGroupMarkerEXT" | 5905 GL_SERVICE_LOG("glPushGroupMarkerEXT" |
| 5658 << "(" << length << ", " << marker << ")"); | 5906 << "(" << length << ", " << marker << ")"); |
| 5659 DCHECK(g_driver_gl.debug_fn.glPushGroupMarkerEXTFn != nullptr); | 5907 DCHECK(g_driver_gl.debug_fn.glPushGroupMarkerEXTFn != nullptr); |
| 5660 g_driver_gl.debug_fn.glPushGroupMarkerEXTFn(length, marker); | 5908 g_driver_gl.debug_fn.glPushGroupMarkerEXTFn(length, marker); |
| 5661 } | 5909 } |
| 5662 | 5910 |
| 5663 static void GL_BINDING_CALL Debug_glQueryCounter(GLuint id, GLenum target) { | 5911 static void GL_BINDING_CALL Debug_glQueryCounter(GLuint id, GLenum target) { |
| 5664 GL_SERVICE_LOG("glQueryCounter" | 5912 GL_SERVICE_LOG("glQueryCounter" |
| (...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7329 fn.glCreateProgramFn = Debug_glCreateProgram; | 7577 fn.glCreateProgramFn = Debug_glCreateProgram; |
| 7330 } | 7578 } |
| 7331 if (!debug_fn.glCreateShaderFn) { | 7579 if (!debug_fn.glCreateShaderFn) { |
| 7332 debug_fn.glCreateShaderFn = fn.glCreateShaderFn; | 7580 debug_fn.glCreateShaderFn = fn.glCreateShaderFn; |
| 7333 fn.glCreateShaderFn = Debug_glCreateShader; | 7581 fn.glCreateShaderFn = Debug_glCreateShader; |
| 7334 } | 7582 } |
| 7335 if (!debug_fn.glCullFaceFn) { | 7583 if (!debug_fn.glCullFaceFn) { |
| 7336 debug_fn.glCullFaceFn = fn.glCullFaceFn; | 7584 debug_fn.glCullFaceFn = fn.glCullFaceFn; |
| 7337 fn.glCullFaceFn = Debug_glCullFace; | 7585 fn.glCullFaceFn = Debug_glCullFace; |
| 7338 } | 7586 } |
| 7587 if (!debug_fn.glDebugMessageCallbackFn) { |
| 7588 debug_fn.glDebugMessageCallbackFn = fn.glDebugMessageCallbackFn; |
| 7589 fn.glDebugMessageCallbackFn = Debug_glDebugMessageCallback; |
| 7590 } |
| 7591 if (!debug_fn.glDebugMessageControlFn) { |
| 7592 debug_fn.glDebugMessageControlFn = fn.glDebugMessageControlFn; |
| 7593 fn.glDebugMessageControlFn = Debug_glDebugMessageControl; |
| 7594 } |
| 7595 if (!debug_fn.glDebugMessageInsertFn) { |
| 7596 debug_fn.glDebugMessageInsertFn = fn.glDebugMessageInsertFn; |
| 7597 fn.glDebugMessageInsertFn = Debug_glDebugMessageInsert; |
| 7598 } |
| 7339 if (!debug_fn.glDeleteBuffersARBFn) { | 7599 if (!debug_fn.glDeleteBuffersARBFn) { |
| 7340 debug_fn.glDeleteBuffersARBFn = fn.glDeleteBuffersARBFn; | 7600 debug_fn.glDeleteBuffersARBFn = fn.glDeleteBuffersARBFn; |
| 7341 fn.glDeleteBuffersARBFn = Debug_glDeleteBuffersARB; | 7601 fn.glDeleteBuffersARBFn = Debug_glDeleteBuffersARB; |
| 7342 } | 7602 } |
| 7343 if (!debug_fn.glDeleteFencesAPPLEFn) { | 7603 if (!debug_fn.glDeleteFencesAPPLEFn) { |
| 7344 debug_fn.glDeleteFencesAPPLEFn = fn.glDeleteFencesAPPLEFn; | 7604 debug_fn.glDeleteFencesAPPLEFn = fn.glDeleteFencesAPPLEFn; |
| 7345 fn.glDeleteFencesAPPLEFn = Debug_glDeleteFencesAPPLE; | 7605 fn.glDeleteFencesAPPLEFn = Debug_glDeleteFencesAPPLE; |
| 7346 } | 7606 } |
| 7347 if (!debug_fn.glDeleteFencesNVFn) { | 7607 if (!debug_fn.glDeleteFencesNVFn) { |
| 7348 debug_fn.glDeleteFencesNVFn = fn.glDeleteFencesNVFn; | 7608 debug_fn.glDeleteFencesNVFn = fn.glDeleteFencesNVFn; |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7638 debug_fn.glGetBufferParameterivRobustANGLEFn = | 7898 debug_fn.glGetBufferParameterivRobustANGLEFn = |
| 7639 fn.glGetBufferParameterivRobustANGLEFn; | 7899 fn.glGetBufferParameterivRobustANGLEFn; |
| 7640 fn.glGetBufferParameterivRobustANGLEFn = | 7900 fn.glGetBufferParameterivRobustANGLEFn = |
| 7641 Debug_glGetBufferParameterivRobustANGLE; | 7901 Debug_glGetBufferParameterivRobustANGLE; |
| 7642 } | 7902 } |
| 7643 if (!debug_fn.glGetBufferPointervRobustANGLEFn) { | 7903 if (!debug_fn.glGetBufferPointervRobustANGLEFn) { |
| 7644 debug_fn.glGetBufferPointervRobustANGLEFn = | 7904 debug_fn.glGetBufferPointervRobustANGLEFn = |
| 7645 fn.glGetBufferPointervRobustANGLEFn; | 7905 fn.glGetBufferPointervRobustANGLEFn; |
| 7646 fn.glGetBufferPointervRobustANGLEFn = Debug_glGetBufferPointervRobustANGLE; | 7906 fn.glGetBufferPointervRobustANGLEFn = Debug_glGetBufferPointervRobustANGLE; |
| 7647 } | 7907 } |
| 7908 if (!debug_fn.glGetDebugMessageLogFn) { |
| 7909 debug_fn.glGetDebugMessageLogFn = fn.glGetDebugMessageLogFn; |
| 7910 fn.glGetDebugMessageLogFn = Debug_glGetDebugMessageLog; |
| 7911 } |
| 7648 if (!debug_fn.glGetErrorFn) { | 7912 if (!debug_fn.glGetErrorFn) { |
| 7649 debug_fn.glGetErrorFn = fn.glGetErrorFn; | 7913 debug_fn.glGetErrorFn = fn.glGetErrorFn; |
| 7650 fn.glGetErrorFn = Debug_glGetError; | 7914 fn.glGetErrorFn = Debug_glGetError; |
| 7651 } | 7915 } |
| 7652 if (!debug_fn.glGetFenceivNVFn) { | 7916 if (!debug_fn.glGetFenceivNVFn) { |
| 7653 debug_fn.glGetFenceivNVFn = fn.glGetFenceivNVFn; | 7917 debug_fn.glGetFenceivNVFn = fn.glGetFenceivNVFn; |
| 7654 fn.glGetFenceivNVFn = Debug_glGetFenceivNV; | 7918 fn.glGetFenceivNVFn = Debug_glGetFenceivNV; |
| 7655 } | 7919 } |
| 7656 if (!debug_fn.glGetFloatvFn) { | 7920 if (!debug_fn.glGetFloatvFn) { |
| 7657 debug_fn.glGetFloatvFn = fn.glGetFloatvFn; | 7921 debug_fn.glGetFloatvFn = fn.glGetFloatvFn; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7743 fn.glGetnUniformfvRobustANGLEFn = Debug_glGetnUniformfvRobustANGLE; | 8007 fn.glGetnUniformfvRobustANGLEFn = Debug_glGetnUniformfvRobustANGLE; |
| 7744 } | 8008 } |
| 7745 if (!debug_fn.glGetnUniformivRobustANGLEFn) { | 8009 if (!debug_fn.glGetnUniformivRobustANGLEFn) { |
| 7746 debug_fn.glGetnUniformivRobustANGLEFn = fn.glGetnUniformivRobustANGLEFn; | 8010 debug_fn.glGetnUniformivRobustANGLEFn = fn.glGetnUniformivRobustANGLEFn; |
| 7747 fn.glGetnUniformivRobustANGLEFn = Debug_glGetnUniformivRobustANGLE; | 8011 fn.glGetnUniformivRobustANGLEFn = Debug_glGetnUniformivRobustANGLE; |
| 7748 } | 8012 } |
| 7749 if (!debug_fn.glGetnUniformuivRobustANGLEFn) { | 8013 if (!debug_fn.glGetnUniformuivRobustANGLEFn) { |
| 7750 debug_fn.glGetnUniformuivRobustANGLEFn = fn.glGetnUniformuivRobustANGLEFn; | 8014 debug_fn.glGetnUniformuivRobustANGLEFn = fn.glGetnUniformuivRobustANGLEFn; |
| 7751 fn.glGetnUniformuivRobustANGLEFn = Debug_glGetnUniformuivRobustANGLE; | 8015 fn.glGetnUniformuivRobustANGLEFn = Debug_glGetnUniformuivRobustANGLE; |
| 7752 } | 8016 } |
| 8017 if (!debug_fn.glGetObjectLabelFn) { |
| 8018 debug_fn.glGetObjectLabelFn = fn.glGetObjectLabelFn; |
| 8019 fn.glGetObjectLabelFn = Debug_glGetObjectLabel; |
| 8020 } |
| 8021 if (!debug_fn.glGetObjectPtrLabelFn) { |
| 8022 debug_fn.glGetObjectPtrLabelFn = fn.glGetObjectPtrLabelFn; |
| 8023 fn.glGetObjectPtrLabelFn = Debug_glGetObjectPtrLabel; |
| 8024 } |
| 8025 if (!debug_fn.glGetPointervFn) { |
| 8026 debug_fn.glGetPointervFn = fn.glGetPointervFn; |
| 8027 fn.glGetPointervFn = Debug_glGetPointerv; |
| 8028 } |
| 7753 if (!debug_fn.glGetPointervRobustANGLERobustANGLEFn) { | 8029 if (!debug_fn.glGetPointervRobustANGLERobustANGLEFn) { |
| 7754 debug_fn.glGetPointervRobustANGLERobustANGLEFn = | 8030 debug_fn.glGetPointervRobustANGLERobustANGLEFn = |
| 7755 fn.glGetPointervRobustANGLERobustANGLEFn; | 8031 fn.glGetPointervRobustANGLERobustANGLEFn; |
| 7756 fn.glGetPointervRobustANGLERobustANGLEFn = | 8032 fn.glGetPointervRobustANGLERobustANGLEFn = |
| 7757 Debug_glGetPointervRobustANGLERobustANGLE; | 8033 Debug_glGetPointervRobustANGLERobustANGLE; |
| 7758 } | 8034 } |
| 7759 if (!debug_fn.glGetProgramBinaryFn) { | 8035 if (!debug_fn.glGetProgramBinaryFn) { |
| 7760 debug_fn.glGetProgramBinaryFn = fn.glGetProgramBinaryFn; | 8036 debug_fn.glGetProgramBinaryFn = fn.glGetProgramBinaryFn; |
| 7761 fn.glGetProgramBinaryFn = Debug_glGetProgramBinary; | 8037 fn.glGetProgramBinaryFn = Debug_glGetProgramBinary; |
| 7762 } | 8038 } |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8150 fn.glMatrixLoadfEXTFn = Debug_glMatrixLoadfEXT; | 8426 fn.glMatrixLoadfEXTFn = Debug_glMatrixLoadfEXT; |
| 8151 } | 8427 } |
| 8152 if (!debug_fn.glMatrixLoadIdentityEXTFn) { | 8428 if (!debug_fn.glMatrixLoadIdentityEXTFn) { |
| 8153 debug_fn.glMatrixLoadIdentityEXTFn = fn.glMatrixLoadIdentityEXTFn; | 8429 debug_fn.glMatrixLoadIdentityEXTFn = fn.glMatrixLoadIdentityEXTFn; |
| 8154 fn.glMatrixLoadIdentityEXTFn = Debug_glMatrixLoadIdentityEXT; | 8430 fn.glMatrixLoadIdentityEXTFn = Debug_glMatrixLoadIdentityEXT; |
| 8155 } | 8431 } |
| 8156 if (!debug_fn.glMemoryBarrierEXTFn) { | 8432 if (!debug_fn.glMemoryBarrierEXTFn) { |
| 8157 debug_fn.glMemoryBarrierEXTFn = fn.glMemoryBarrierEXTFn; | 8433 debug_fn.glMemoryBarrierEXTFn = fn.glMemoryBarrierEXTFn; |
| 8158 fn.glMemoryBarrierEXTFn = Debug_glMemoryBarrierEXT; | 8434 fn.glMemoryBarrierEXTFn = Debug_glMemoryBarrierEXT; |
| 8159 } | 8435 } |
| 8436 if (!debug_fn.glObjectLabelFn) { |
| 8437 debug_fn.glObjectLabelFn = fn.glObjectLabelFn; |
| 8438 fn.glObjectLabelFn = Debug_glObjectLabel; |
| 8439 } |
| 8440 if (!debug_fn.glObjectPtrLabelFn) { |
| 8441 debug_fn.glObjectPtrLabelFn = fn.glObjectPtrLabelFn; |
| 8442 fn.glObjectPtrLabelFn = Debug_glObjectPtrLabel; |
| 8443 } |
| 8160 if (!debug_fn.glPathCommandsNVFn) { | 8444 if (!debug_fn.glPathCommandsNVFn) { |
| 8161 debug_fn.glPathCommandsNVFn = fn.glPathCommandsNVFn; | 8445 debug_fn.glPathCommandsNVFn = fn.glPathCommandsNVFn; |
| 8162 fn.glPathCommandsNVFn = Debug_glPathCommandsNV; | 8446 fn.glPathCommandsNVFn = Debug_glPathCommandsNV; |
| 8163 } | 8447 } |
| 8164 if (!debug_fn.glPathParameterfNVFn) { | 8448 if (!debug_fn.glPathParameterfNVFn) { |
| 8165 debug_fn.glPathParameterfNVFn = fn.glPathParameterfNVFn; | 8449 debug_fn.glPathParameterfNVFn = fn.glPathParameterfNVFn; |
| 8166 fn.glPathParameterfNVFn = Debug_glPathParameterfNV; | 8450 fn.glPathParameterfNVFn = Debug_glPathParameterfNV; |
| 8167 } | 8451 } |
| 8168 if (!debug_fn.glPathParameteriNVFn) { | 8452 if (!debug_fn.glPathParameteriNVFn) { |
| 8169 debug_fn.glPathParameteriNVFn = fn.glPathParameteriNVFn; | 8453 debug_fn.glPathParameteriNVFn = fn.glPathParameteriNVFn; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 8182 fn.glPixelStoreiFn = Debug_glPixelStorei; | 8466 fn.glPixelStoreiFn = Debug_glPixelStorei; |
| 8183 } | 8467 } |
| 8184 if (!debug_fn.glPointParameteriFn) { | 8468 if (!debug_fn.glPointParameteriFn) { |
| 8185 debug_fn.glPointParameteriFn = fn.glPointParameteriFn; | 8469 debug_fn.glPointParameteriFn = fn.glPointParameteriFn; |
| 8186 fn.glPointParameteriFn = Debug_glPointParameteri; | 8470 fn.glPointParameteriFn = Debug_glPointParameteri; |
| 8187 } | 8471 } |
| 8188 if (!debug_fn.glPolygonOffsetFn) { | 8472 if (!debug_fn.glPolygonOffsetFn) { |
| 8189 debug_fn.glPolygonOffsetFn = fn.glPolygonOffsetFn; | 8473 debug_fn.glPolygonOffsetFn = fn.glPolygonOffsetFn; |
| 8190 fn.glPolygonOffsetFn = Debug_glPolygonOffset; | 8474 fn.glPolygonOffsetFn = Debug_glPolygonOffset; |
| 8191 } | 8475 } |
| 8476 if (!debug_fn.glPopDebugGroupFn) { |
| 8477 debug_fn.glPopDebugGroupFn = fn.glPopDebugGroupFn; |
| 8478 fn.glPopDebugGroupFn = Debug_glPopDebugGroup; |
| 8479 } |
| 8192 if (!debug_fn.glPopGroupMarkerEXTFn) { | 8480 if (!debug_fn.glPopGroupMarkerEXTFn) { |
| 8193 debug_fn.glPopGroupMarkerEXTFn = fn.glPopGroupMarkerEXTFn; | 8481 debug_fn.glPopGroupMarkerEXTFn = fn.glPopGroupMarkerEXTFn; |
| 8194 fn.glPopGroupMarkerEXTFn = Debug_glPopGroupMarkerEXT; | 8482 fn.glPopGroupMarkerEXTFn = Debug_glPopGroupMarkerEXT; |
| 8195 } | 8483 } |
| 8196 if (!debug_fn.glPrimitiveRestartIndexFn) { | 8484 if (!debug_fn.glPrimitiveRestartIndexFn) { |
| 8197 debug_fn.glPrimitiveRestartIndexFn = fn.glPrimitiveRestartIndexFn; | 8485 debug_fn.glPrimitiveRestartIndexFn = fn.glPrimitiveRestartIndexFn; |
| 8198 fn.glPrimitiveRestartIndexFn = Debug_glPrimitiveRestartIndex; | 8486 fn.glPrimitiveRestartIndexFn = Debug_glPrimitiveRestartIndex; |
| 8199 } | 8487 } |
| 8200 if (!debug_fn.glProgramBinaryFn) { | 8488 if (!debug_fn.glProgramBinaryFn) { |
| 8201 debug_fn.glProgramBinaryFn = fn.glProgramBinaryFn; | 8489 debug_fn.glProgramBinaryFn = fn.glProgramBinaryFn; |
| 8202 fn.glProgramBinaryFn = Debug_glProgramBinary; | 8490 fn.glProgramBinaryFn = Debug_glProgramBinary; |
| 8203 } | 8491 } |
| 8204 if (!debug_fn.glProgramParameteriFn) { | 8492 if (!debug_fn.glProgramParameteriFn) { |
| 8205 debug_fn.glProgramParameteriFn = fn.glProgramParameteriFn; | 8493 debug_fn.glProgramParameteriFn = fn.glProgramParameteriFn; |
| 8206 fn.glProgramParameteriFn = Debug_glProgramParameteri; | 8494 fn.glProgramParameteriFn = Debug_glProgramParameteri; |
| 8207 } | 8495 } |
| 8208 if (!debug_fn.glProgramPathFragmentInputGenNVFn) { | 8496 if (!debug_fn.glProgramPathFragmentInputGenNVFn) { |
| 8209 debug_fn.glProgramPathFragmentInputGenNVFn = | 8497 debug_fn.glProgramPathFragmentInputGenNVFn = |
| 8210 fn.glProgramPathFragmentInputGenNVFn; | 8498 fn.glProgramPathFragmentInputGenNVFn; |
| 8211 fn.glProgramPathFragmentInputGenNVFn = | 8499 fn.glProgramPathFragmentInputGenNVFn = |
| 8212 Debug_glProgramPathFragmentInputGenNV; | 8500 Debug_glProgramPathFragmentInputGenNV; |
| 8213 } | 8501 } |
| 8502 if (!debug_fn.glPushDebugGroupFn) { |
| 8503 debug_fn.glPushDebugGroupFn = fn.glPushDebugGroupFn; |
| 8504 fn.glPushDebugGroupFn = Debug_glPushDebugGroup; |
| 8505 } |
| 8214 if (!debug_fn.glPushGroupMarkerEXTFn) { | 8506 if (!debug_fn.glPushGroupMarkerEXTFn) { |
| 8215 debug_fn.glPushGroupMarkerEXTFn = fn.glPushGroupMarkerEXTFn; | 8507 debug_fn.glPushGroupMarkerEXTFn = fn.glPushGroupMarkerEXTFn; |
| 8216 fn.glPushGroupMarkerEXTFn = Debug_glPushGroupMarkerEXT; | 8508 fn.glPushGroupMarkerEXTFn = Debug_glPushGroupMarkerEXT; |
| 8217 } | 8509 } |
| 8218 if (!debug_fn.glQueryCounterFn) { | 8510 if (!debug_fn.glQueryCounterFn) { |
| 8219 debug_fn.glQueryCounterFn = fn.glQueryCounterFn; | 8511 debug_fn.glQueryCounterFn = fn.glQueryCounterFn; |
| 8220 fn.glQueryCounterFn = Debug_glQueryCounter; | 8512 fn.glQueryCounterFn = Debug_glQueryCounter; |
| 8221 } | 8513 } |
| 8222 if (!debug_fn.glReadBufferFn) { | 8514 if (!debug_fn.glReadBufferFn) { |
| 8223 debug_fn.glReadBufferFn = fn.glReadBufferFn; | 8515 debug_fn.glReadBufferFn = fn.glReadBufferFn; |
| (...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9131 } | 9423 } |
| 9132 | 9424 |
| 9133 GLuint GLApiBase::glCreateShaderFn(GLenum type) { | 9425 GLuint GLApiBase::glCreateShaderFn(GLenum type) { |
| 9134 return driver_->fn.glCreateShaderFn(type); | 9426 return driver_->fn.glCreateShaderFn(type); |
| 9135 } | 9427 } |
| 9136 | 9428 |
| 9137 void GLApiBase::glCullFaceFn(GLenum mode) { | 9429 void GLApiBase::glCullFaceFn(GLenum mode) { |
| 9138 driver_->fn.glCullFaceFn(mode); | 9430 driver_->fn.glCullFaceFn(mode); |
| 9139 } | 9431 } |
| 9140 | 9432 |
| 9433 void GLApiBase::glDebugMessageCallbackFn(GLDEBUGPROC callback, |
| 9434 const void* userParam) { |
| 9435 driver_->fn.glDebugMessageCallbackFn(callback, userParam); |
| 9436 } |
| 9437 |
| 9438 void GLApiBase::glDebugMessageControlFn(GLenum source, |
| 9439 GLenum type, |
| 9440 GLenum severity, |
| 9441 GLsizei count, |
| 9442 const GLuint* ids, |
| 9443 GLboolean enabled) { |
| 9444 driver_->fn.glDebugMessageControlFn(source, type, severity, count, ids, |
| 9445 enabled); |
| 9446 } |
| 9447 |
| 9448 void GLApiBase::glDebugMessageInsertFn(GLenum source, |
| 9449 GLenum type, |
| 9450 GLuint id, |
| 9451 GLenum severity, |
| 9452 GLsizei length, |
| 9453 const char* buf) { |
| 9454 driver_->fn.glDebugMessageInsertFn(source, type, id, severity, length, buf); |
| 9455 } |
| 9456 |
| 9141 void GLApiBase::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) { | 9457 void GLApiBase::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) { |
| 9142 driver_->fn.glDeleteBuffersARBFn(n, buffers); | 9458 driver_->fn.glDeleteBuffersARBFn(n, buffers); |
| 9143 } | 9459 } |
| 9144 | 9460 |
| 9145 void GLApiBase::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) { | 9461 void GLApiBase::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) { |
| 9146 driver_->fn.glDeleteFencesAPPLEFn(n, fences); | 9462 driver_->fn.glDeleteFencesAPPLEFn(n, fences); |
| 9147 } | 9463 } |
| 9148 | 9464 |
| 9149 void GLApiBase::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) { | 9465 void GLApiBase::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) { |
| 9150 driver_->fn.glDeleteFencesNVFn(n, fences); | 9466 driver_->fn.glDeleteFencesNVFn(n, fences); |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9539 | 9855 |
| 9540 void GLApiBase::glGetBufferPointervRobustANGLEFn(GLenum target, | 9856 void GLApiBase::glGetBufferPointervRobustANGLEFn(GLenum target, |
| 9541 GLenum pname, | 9857 GLenum pname, |
| 9542 GLsizei bufSize, | 9858 GLsizei bufSize, |
| 9543 GLsizei* length, | 9859 GLsizei* length, |
| 9544 void** params) { | 9860 void** params) { |
| 9545 driver_->fn.glGetBufferPointervRobustANGLEFn(target, pname, bufSize, length, | 9861 driver_->fn.glGetBufferPointervRobustANGLEFn(target, pname, bufSize, length, |
| 9546 params); | 9862 params); |
| 9547 } | 9863 } |
| 9548 | 9864 |
| 9865 void GLApiBase::glGetDebugMessageLogFn(GLuint count, |
| 9866 GLsizei bufSize, |
| 9867 GLenum* sources, |
| 9868 GLenum* types, |
| 9869 GLuint* ids, |
| 9870 GLenum* severities, |
| 9871 GLsizei* lengths, |
| 9872 char* messageLog) { |
| 9873 driver_->fn.glGetDebugMessageLogFn(count, bufSize, sources, types, ids, |
| 9874 severities, lengths, messageLog); |
| 9875 } |
| 9876 |
| 9549 GLenum GLApiBase::glGetErrorFn(void) { | 9877 GLenum GLApiBase::glGetErrorFn(void) { |
| 9550 return driver_->fn.glGetErrorFn(); | 9878 return driver_->fn.glGetErrorFn(); |
| 9551 } | 9879 } |
| 9552 | 9880 |
| 9553 void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { | 9881 void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { |
| 9554 driver_->fn.glGetFenceivNVFn(fence, pname, params); | 9882 driver_->fn.glGetFenceivNVFn(fence, pname, params); |
| 9555 } | 9883 } |
| 9556 | 9884 |
| 9557 void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) { | 9885 void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) { |
| 9558 driver_->fn.glGetFloatvFn(pname, params); | 9886 driver_->fn.glGetFloatvFn(pname, params); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9703 | 10031 |
| 9704 void GLApiBase::glGetnUniformuivRobustANGLEFn(GLuint program, | 10032 void GLApiBase::glGetnUniformuivRobustANGLEFn(GLuint program, |
| 9705 GLint location, | 10033 GLint location, |
| 9706 GLsizei bufSize, | 10034 GLsizei bufSize, |
| 9707 GLsizei* length, | 10035 GLsizei* length, |
| 9708 GLuint* params) { | 10036 GLuint* params) { |
| 9709 driver_->fn.glGetnUniformuivRobustANGLEFn(program, location, bufSize, length, | 10037 driver_->fn.glGetnUniformuivRobustANGLEFn(program, location, bufSize, length, |
| 9710 params); | 10038 params); |
| 9711 } | 10039 } |
| 9712 | 10040 |
| 10041 void GLApiBase::glGetObjectLabelFn(GLenum identifier, |
| 10042 GLuint name, |
| 10043 GLsizei bufSize, |
| 10044 GLsizei* length, |
| 10045 char* label) { |
| 10046 driver_->fn.glGetObjectLabelFn(identifier, name, bufSize, length, label); |
| 10047 } |
| 10048 |
| 10049 void GLApiBase::glGetObjectPtrLabelFn(void* ptr, |
| 10050 GLsizei bufSize, |
| 10051 GLsizei* length, |
| 10052 char* label) { |
| 10053 driver_->fn.glGetObjectPtrLabelFn(ptr, bufSize, length, label); |
| 10054 } |
| 10055 |
| 10056 void GLApiBase::glGetPointervFn(GLenum pname, void** params) { |
| 10057 driver_->fn.glGetPointervFn(pname, params); |
| 10058 } |
| 10059 |
| 9713 void GLApiBase::glGetPointervRobustANGLERobustANGLEFn(GLenum pname, | 10060 void GLApiBase::glGetPointervRobustANGLERobustANGLEFn(GLenum pname, |
| 9714 GLsizei bufSize, | 10061 GLsizei bufSize, |
| 9715 GLsizei* length, | 10062 GLsizei* length, |
| 9716 void** params) { | 10063 void** params) { |
| 9717 driver_->fn.glGetPointervRobustANGLERobustANGLEFn(pname, bufSize, length, | 10064 driver_->fn.glGetPointervRobustANGLERobustANGLEFn(pname, bufSize, length, |
| 9718 params); | 10065 params); |
| 9719 } | 10066 } |
| 9720 | 10067 |
| 9721 void GLApiBase::glGetProgramBinaryFn(GLuint program, | 10068 void GLApiBase::glGetProgramBinaryFn(GLuint program, |
| 9722 GLsizei bufSize, | 10069 GLsizei bufSize, |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10312 } | 10659 } |
| 10313 | 10660 |
| 10314 void GLApiBase::glMatrixLoadIdentityEXTFn(GLenum matrixMode) { | 10661 void GLApiBase::glMatrixLoadIdentityEXTFn(GLenum matrixMode) { |
| 10315 driver_->fn.glMatrixLoadIdentityEXTFn(matrixMode); | 10662 driver_->fn.glMatrixLoadIdentityEXTFn(matrixMode); |
| 10316 } | 10663 } |
| 10317 | 10664 |
| 10318 void GLApiBase::glMemoryBarrierEXTFn(GLbitfield barriers) { | 10665 void GLApiBase::glMemoryBarrierEXTFn(GLbitfield barriers) { |
| 10319 driver_->fn.glMemoryBarrierEXTFn(barriers); | 10666 driver_->fn.glMemoryBarrierEXTFn(barriers); |
| 10320 } | 10667 } |
| 10321 | 10668 |
| 10669 void GLApiBase::glObjectLabelFn(GLenum identifier, |
| 10670 GLuint name, |
| 10671 GLsizei length, |
| 10672 const char* label) { |
| 10673 driver_->fn.glObjectLabelFn(identifier, name, length, label); |
| 10674 } |
| 10675 |
| 10676 void GLApiBase::glObjectPtrLabelFn(void* ptr, |
| 10677 GLsizei length, |
| 10678 const char* label) { |
| 10679 driver_->fn.glObjectPtrLabelFn(ptr, length, label); |
| 10680 } |
| 10681 |
| 10322 void GLApiBase::glPathCommandsNVFn(GLuint path, | 10682 void GLApiBase::glPathCommandsNVFn(GLuint path, |
| 10323 GLsizei numCommands, | 10683 GLsizei numCommands, |
| 10324 const GLubyte* commands, | 10684 const GLubyte* commands, |
| 10325 GLsizei numCoords, | 10685 GLsizei numCoords, |
| 10326 GLenum coordType, | 10686 GLenum coordType, |
| 10327 const GLvoid* coords) { | 10687 const GLvoid* coords) { |
| 10328 driver_->fn.glPathCommandsNVFn(path, numCommands, commands, numCoords, | 10688 driver_->fn.glPathCommandsNVFn(path, numCommands, commands, numCoords, |
| 10329 coordType, coords); | 10689 coordType, coords); |
| 10330 } | 10690 } |
| 10331 | 10691 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10350 } | 10710 } |
| 10351 | 10711 |
| 10352 void GLApiBase::glPointParameteriFn(GLenum pname, GLint param) { | 10712 void GLApiBase::glPointParameteriFn(GLenum pname, GLint param) { |
| 10353 driver_->fn.glPointParameteriFn(pname, param); | 10713 driver_->fn.glPointParameteriFn(pname, param); |
| 10354 } | 10714 } |
| 10355 | 10715 |
| 10356 void GLApiBase::glPolygonOffsetFn(GLfloat factor, GLfloat units) { | 10716 void GLApiBase::glPolygonOffsetFn(GLfloat factor, GLfloat units) { |
| 10357 driver_->fn.glPolygonOffsetFn(factor, units); | 10717 driver_->fn.glPolygonOffsetFn(factor, units); |
| 10358 } | 10718 } |
| 10359 | 10719 |
| 10720 void GLApiBase::glPopDebugGroupFn() { |
| 10721 driver_->fn.glPopDebugGroupFn(); |
| 10722 } |
| 10723 |
| 10360 void GLApiBase::glPopGroupMarkerEXTFn(void) { | 10724 void GLApiBase::glPopGroupMarkerEXTFn(void) { |
| 10361 driver_->fn.glPopGroupMarkerEXTFn(); | 10725 driver_->fn.glPopGroupMarkerEXTFn(); |
| 10362 } | 10726 } |
| 10363 | 10727 |
| 10364 void GLApiBase::glPrimitiveRestartIndexFn(GLuint index) { | 10728 void GLApiBase::glPrimitiveRestartIndexFn(GLuint index) { |
| 10365 driver_->fn.glPrimitiveRestartIndexFn(index); | 10729 driver_->fn.glPrimitiveRestartIndexFn(index); |
| 10366 } | 10730 } |
| 10367 | 10731 |
| 10368 void GLApiBase::glProgramBinaryFn(GLuint program, | 10732 void GLApiBase::glProgramBinaryFn(GLuint program, |
| 10369 GLenum binaryFormat, | 10733 GLenum binaryFormat, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 10380 | 10744 |
| 10381 void GLApiBase::glProgramPathFragmentInputGenNVFn(GLuint program, | 10745 void GLApiBase::glProgramPathFragmentInputGenNVFn(GLuint program, |
| 10382 GLint location, | 10746 GLint location, |
| 10383 GLenum genMode, | 10747 GLenum genMode, |
| 10384 GLint components, | 10748 GLint components, |
| 10385 const GLfloat* coeffs) { | 10749 const GLfloat* coeffs) { |
| 10386 driver_->fn.glProgramPathFragmentInputGenNVFn(program, location, genMode, | 10750 driver_->fn.glProgramPathFragmentInputGenNVFn(program, location, genMode, |
| 10387 components, coeffs); | 10751 components, coeffs); |
| 10388 } | 10752 } |
| 10389 | 10753 |
| 10754 void GLApiBase::glPushDebugGroupFn(GLenum source, |
| 10755 GLuint id, |
| 10756 GLsizei length, |
| 10757 const char* message) { |
| 10758 driver_->fn.glPushDebugGroupFn(source, id, length, message); |
| 10759 } |
| 10760 |
| 10390 void GLApiBase::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) { | 10761 void GLApiBase::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) { |
| 10391 driver_->fn.glPushGroupMarkerEXTFn(length, marker); | 10762 driver_->fn.glPushGroupMarkerEXTFn(length, marker); |
| 10392 } | 10763 } |
| 10393 | 10764 |
| 10394 void GLApiBase::glQueryCounterFn(GLuint id, GLenum target) { | 10765 void GLApiBase::glQueryCounterFn(GLuint id, GLenum target) { |
| 10395 driver_->fn.glQueryCounterFn(id, target); | 10766 driver_->fn.glQueryCounterFn(id, target); |
| 10396 } | 10767 } |
| 10397 | 10768 |
| 10398 void GLApiBase::glReadBufferFn(GLenum src) { | 10769 void GLApiBase::glReadBufferFn(GLenum src) { |
| 10399 driver_->fn.glReadBufferFn(src); | 10770 driver_->fn.glReadBufferFn(src); |
| (...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11686 GLuint TraceGLApi::glCreateShaderFn(GLenum type) { | 12057 GLuint TraceGLApi::glCreateShaderFn(GLenum type) { |
| 11687 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateShader") | 12058 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateShader") |
| 11688 return gl_api_->glCreateShaderFn(type); | 12059 return gl_api_->glCreateShaderFn(type); |
| 11689 } | 12060 } |
| 11690 | 12061 |
| 11691 void TraceGLApi::glCullFaceFn(GLenum mode) { | 12062 void TraceGLApi::glCullFaceFn(GLenum mode) { |
| 11692 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCullFace") | 12063 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCullFace") |
| 11693 gl_api_->glCullFaceFn(mode); | 12064 gl_api_->glCullFaceFn(mode); |
| 11694 } | 12065 } |
| 11695 | 12066 |
| 12067 void TraceGLApi::glDebugMessageCallbackFn(GLDEBUGPROC callback, |
| 12068 const void* userParam) { |
| 12069 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDebugMessageCallback") |
| 12070 gl_api_->glDebugMessageCallbackFn(callback, userParam); |
| 12071 } |
| 12072 |
| 12073 void TraceGLApi::glDebugMessageControlFn(GLenum source, |
| 12074 GLenum type, |
| 12075 GLenum severity, |
| 12076 GLsizei count, |
| 12077 const GLuint* ids, |
| 12078 GLboolean enabled) { |
| 12079 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDebugMessageControl") |
| 12080 gl_api_->glDebugMessageControlFn(source, type, severity, count, ids, enabled); |
| 12081 } |
| 12082 |
| 12083 void TraceGLApi::glDebugMessageInsertFn(GLenum source, |
| 12084 GLenum type, |
| 12085 GLuint id, |
| 12086 GLenum severity, |
| 12087 GLsizei length, |
| 12088 const char* buf) { |
| 12089 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDebugMessageInsert") |
| 12090 gl_api_->glDebugMessageInsertFn(source, type, id, severity, length, buf); |
| 12091 } |
| 12092 |
| 11696 void TraceGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) { | 12093 void TraceGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) { |
| 11697 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteBuffersARB") | 12094 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteBuffersARB") |
| 11698 gl_api_->glDeleteBuffersARBFn(n, buffers); | 12095 gl_api_->glDeleteBuffersARBFn(n, buffers); |
| 11699 } | 12096 } |
| 11700 | 12097 |
| 11701 void TraceGLApi::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) { | 12098 void TraceGLApi::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) { |
| 11702 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesAPPLE") | 12099 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesAPPLE") |
| 11703 gl_api_->glDeleteFencesAPPLEFn(n, fences); | 12100 gl_api_->glDeleteFencesAPPLEFn(n, fences); |
| 11704 } | 12101 } |
| 11705 | 12102 |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12179 GLenum pname, | 12576 GLenum pname, |
| 12180 GLsizei bufSize, | 12577 GLsizei bufSize, |
| 12181 GLsizei* length, | 12578 GLsizei* length, |
| 12182 void** params) { | 12579 void** params) { |
| 12183 TRACE_EVENT_BINARY_EFFICIENT0("gpu", | 12580 TRACE_EVENT_BINARY_EFFICIENT0("gpu", |
| 12184 "TraceGLAPI::glGetBufferPointervRobustANGLE") | 12581 "TraceGLAPI::glGetBufferPointervRobustANGLE") |
| 12185 gl_api_->glGetBufferPointervRobustANGLEFn(target, pname, bufSize, length, | 12582 gl_api_->glGetBufferPointervRobustANGLEFn(target, pname, bufSize, length, |
| 12186 params); | 12583 params); |
| 12187 } | 12584 } |
| 12188 | 12585 |
| 12586 void TraceGLApi::glGetDebugMessageLogFn(GLuint count, |
| 12587 GLsizei bufSize, |
| 12588 GLenum* sources, |
| 12589 GLenum* types, |
| 12590 GLuint* ids, |
| 12591 GLenum* severities, |
| 12592 GLsizei* lengths, |
| 12593 char* messageLog) { |
| 12594 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetDebugMessageLog") |
| 12595 gl_api_->glGetDebugMessageLogFn(count, bufSize, sources, types, ids, |
| 12596 severities, lengths, messageLog); |
| 12597 } |
| 12598 |
| 12189 GLenum TraceGLApi::glGetErrorFn(void) { | 12599 GLenum TraceGLApi::glGetErrorFn(void) { |
| 12190 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetError") | 12600 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetError") |
| 12191 return gl_api_->glGetErrorFn(); | 12601 return gl_api_->glGetErrorFn(); |
| 12192 } | 12602 } |
| 12193 | 12603 |
| 12194 void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { | 12604 void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) { |
| 12195 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV") | 12605 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV") |
| 12196 gl_api_->glGetFenceivNVFn(fence, pname, params); | 12606 gl_api_->glGetFenceivNVFn(fence, pname, params); |
| 12197 } | 12607 } |
| 12198 | 12608 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12372 GLint location, | 12782 GLint location, |
| 12373 GLsizei bufSize, | 12783 GLsizei bufSize, |
| 12374 GLsizei* length, | 12784 GLsizei* length, |
| 12375 GLuint* params) { | 12785 GLuint* params) { |
| 12376 TRACE_EVENT_BINARY_EFFICIENT0("gpu", | 12786 TRACE_EVENT_BINARY_EFFICIENT0("gpu", |
| 12377 "TraceGLAPI::glGetnUniformuivRobustANGLE") | 12787 "TraceGLAPI::glGetnUniformuivRobustANGLE") |
| 12378 gl_api_->glGetnUniformuivRobustANGLEFn(program, location, bufSize, length, | 12788 gl_api_->glGetnUniformuivRobustANGLEFn(program, location, bufSize, length, |
| 12379 params); | 12789 params); |
| 12380 } | 12790 } |
| 12381 | 12791 |
| 12792 void TraceGLApi::glGetObjectLabelFn(GLenum identifier, |
| 12793 GLuint name, |
| 12794 GLsizei bufSize, |
| 12795 GLsizei* length, |
| 12796 char* label) { |
| 12797 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetObjectLabel") |
| 12798 gl_api_->glGetObjectLabelFn(identifier, name, bufSize, length, label); |
| 12799 } |
| 12800 |
| 12801 void TraceGLApi::glGetObjectPtrLabelFn(void* ptr, |
| 12802 GLsizei bufSize, |
| 12803 GLsizei* length, |
| 12804 char* label) { |
| 12805 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetObjectPtrLabel") |
| 12806 gl_api_->glGetObjectPtrLabelFn(ptr, bufSize, length, label); |
| 12807 } |
| 12808 |
| 12809 void TraceGLApi::glGetPointervFn(GLenum pname, void** params) { |
| 12810 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetPointerv") |
| 12811 gl_api_->glGetPointervFn(pname, params); |
| 12812 } |
| 12813 |
| 12382 void TraceGLApi::glGetPointervRobustANGLERobustANGLEFn(GLenum pname, | 12814 void TraceGLApi::glGetPointervRobustANGLERobustANGLEFn(GLenum pname, |
| 12383 GLsizei bufSize, | 12815 GLsizei bufSize, |
| 12384 GLsizei* length, | 12816 GLsizei* length, |
| 12385 void** params) { | 12817 void** params) { |
| 12386 TRACE_EVENT_BINARY_EFFICIENT0( | 12818 TRACE_EVENT_BINARY_EFFICIENT0( |
| 12387 "gpu", "TraceGLAPI::glGetPointervRobustANGLERobustANGLE") | 12819 "gpu", "TraceGLAPI::glGetPointervRobustANGLERobustANGLE") |
| 12388 gl_api_->glGetPointervRobustANGLERobustANGLEFn(pname, bufSize, length, | 12820 gl_api_->glGetPointervRobustANGLERobustANGLEFn(pname, bufSize, length, |
| 12389 params); | 12821 params); |
| 12390 } | 12822 } |
| 12391 | 12823 |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13092 void TraceGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) { | 13524 void TraceGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) { |
| 13093 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadIdentityEXT") | 13525 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadIdentityEXT") |
| 13094 gl_api_->glMatrixLoadIdentityEXTFn(matrixMode); | 13526 gl_api_->glMatrixLoadIdentityEXTFn(matrixMode); |
| 13095 } | 13527 } |
| 13096 | 13528 |
| 13097 void TraceGLApi::glMemoryBarrierEXTFn(GLbitfield barriers) { | 13529 void TraceGLApi::glMemoryBarrierEXTFn(GLbitfield barriers) { |
| 13098 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMemoryBarrierEXT") | 13530 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMemoryBarrierEXT") |
| 13099 gl_api_->glMemoryBarrierEXTFn(barriers); | 13531 gl_api_->glMemoryBarrierEXTFn(barriers); |
| 13100 } | 13532 } |
| 13101 | 13533 |
| 13534 void TraceGLApi::glObjectLabelFn(GLenum identifier, |
| 13535 GLuint name, |
| 13536 GLsizei length, |
| 13537 const char* label) { |
| 13538 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glObjectLabel") |
| 13539 gl_api_->glObjectLabelFn(identifier, name, length, label); |
| 13540 } |
| 13541 |
| 13542 void TraceGLApi::glObjectPtrLabelFn(void* ptr, |
| 13543 GLsizei length, |
| 13544 const char* label) { |
| 13545 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glObjectPtrLabel") |
| 13546 gl_api_->glObjectPtrLabelFn(ptr, length, label); |
| 13547 } |
| 13548 |
| 13102 void TraceGLApi::glPathCommandsNVFn(GLuint path, | 13549 void TraceGLApi::glPathCommandsNVFn(GLuint path, |
| 13103 GLsizei numCommands, | 13550 GLsizei numCommands, |
| 13104 const GLubyte* commands, | 13551 const GLubyte* commands, |
| 13105 GLsizei numCoords, | 13552 GLsizei numCoords, |
| 13106 GLenum coordType, | 13553 GLenum coordType, |
| 13107 const GLvoid* coords) { | 13554 const GLvoid* coords) { |
| 13108 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathCommandsNV") | 13555 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathCommandsNV") |
| 13109 gl_api_->glPathCommandsNVFn(path, numCommands, commands, numCoords, coordType, | 13556 gl_api_->glPathCommandsNVFn(path, numCommands, commands, numCoords, coordType, |
| 13110 coords); | 13557 coords); |
| 13111 } | 13558 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 13140 void TraceGLApi::glPointParameteriFn(GLenum pname, GLint param) { | 13587 void TraceGLApi::glPointParameteriFn(GLenum pname, GLint param) { |
| 13141 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPointParameteri") | 13588 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPointParameteri") |
| 13142 gl_api_->glPointParameteriFn(pname, param); | 13589 gl_api_->glPointParameteriFn(pname, param); |
| 13143 } | 13590 } |
| 13144 | 13591 |
| 13145 void TraceGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) { | 13592 void TraceGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) { |
| 13146 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPolygonOffset") | 13593 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPolygonOffset") |
| 13147 gl_api_->glPolygonOffsetFn(factor, units); | 13594 gl_api_->glPolygonOffsetFn(factor, units); |
| 13148 } | 13595 } |
| 13149 | 13596 |
| 13597 void TraceGLApi::glPopDebugGroupFn() { |
| 13598 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPopDebugGroup") |
| 13599 gl_api_->glPopDebugGroupFn(); |
| 13600 } |
| 13601 |
| 13150 void TraceGLApi::glPopGroupMarkerEXTFn(void) { | 13602 void TraceGLApi::glPopGroupMarkerEXTFn(void) { |
| 13151 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPopGroupMarkerEXT") | 13603 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPopGroupMarkerEXT") |
| 13152 gl_api_->glPopGroupMarkerEXTFn(); | 13604 gl_api_->glPopGroupMarkerEXTFn(); |
| 13153 } | 13605 } |
| 13154 | 13606 |
| 13155 void TraceGLApi::glPrimitiveRestartIndexFn(GLuint index) { | 13607 void TraceGLApi::glPrimitiveRestartIndexFn(GLuint index) { |
| 13156 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPrimitiveRestartIndex") | 13608 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPrimitiveRestartIndex") |
| 13157 gl_api_->glPrimitiveRestartIndexFn(index); | 13609 gl_api_->glPrimitiveRestartIndexFn(index); |
| 13158 } | 13610 } |
| 13159 | 13611 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 13176 GLint location, | 13628 GLint location, |
| 13177 GLenum genMode, | 13629 GLenum genMode, |
| 13178 GLint components, | 13630 GLint components, |
| 13179 const GLfloat* coeffs) { | 13631 const GLfloat* coeffs) { |
| 13180 TRACE_EVENT_BINARY_EFFICIENT0("gpu", | 13632 TRACE_EVENT_BINARY_EFFICIENT0("gpu", |
| 13181 "TraceGLAPI::glProgramPathFragmentInputGenNV") | 13633 "TraceGLAPI::glProgramPathFragmentInputGenNV") |
| 13182 gl_api_->glProgramPathFragmentInputGenNVFn(program, location, genMode, | 13634 gl_api_->glProgramPathFragmentInputGenNVFn(program, location, genMode, |
| 13183 components, coeffs); | 13635 components, coeffs); |
| 13184 } | 13636 } |
| 13185 | 13637 |
| 13638 void TraceGLApi::glPushDebugGroupFn(GLenum source, |
| 13639 GLuint id, |
| 13640 GLsizei length, |
| 13641 const char* message) { |
| 13642 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPushDebugGroup") |
| 13643 gl_api_->glPushDebugGroupFn(source, id, length, message); |
| 13644 } |
| 13645 |
| 13186 void TraceGLApi::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) { | 13646 void TraceGLApi::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) { |
| 13187 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPushGroupMarkerEXT") | 13647 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPushGroupMarkerEXT") |
| 13188 gl_api_->glPushGroupMarkerEXTFn(length, marker); | 13648 gl_api_->glPushGroupMarkerEXTFn(length, marker); |
| 13189 } | 13649 } |
| 13190 | 13650 |
| 13191 void TraceGLApi::glQueryCounterFn(GLuint id, GLenum target) { | 13651 void TraceGLApi::glQueryCounterFn(GLuint id, GLenum target) { |
| 13192 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glQueryCounter") | 13652 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glQueryCounter") |
| 13193 gl_api_->glQueryCounterFn(id, target); | 13653 gl_api_->glQueryCounterFn(id, target); |
| 13194 } | 13654 } |
| 13195 | 13655 |
| (...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14663 NOTREACHED() << "Trying to call glCreateShader() without current GL context"; | 15123 NOTREACHED() << "Trying to call glCreateShader() without current GL context"; |
| 14664 LOG(ERROR) << "Trying to call glCreateShader() without current GL context"; | 15124 LOG(ERROR) << "Trying to call glCreateShader() without current GL context"; |
| 14665 return 0U; | 15125 return 0U; |
| 14666 } | 15126 } |
| 14667 | 15127 |
| 14668 void NoContextGLApi::glCullFaceFn(GLenum mode) { | 15128 void NoContextGLApi::glCullFaceFn(GLenum mode) { |
| 14669 NOTREACHED() << "Trying to call glCullFace() without current GL context"; | 15129 NOTREACHED() << "Trying to call glCullFace() without current GL context"; |
| 14670 LOG(ERROR) << "Trying to call glCullFace() without current GL context"; | 15130 LOG(ERROR) << "Trying to call glCullFace() without current GL context"; |
| 14671 } | 15131 } |
| 14672 | 15132 |
| 15133 void NoContextGLApi::glDebugMessageCallbackFn(GLDEBUGPROC callback, |
| 15134 const void* userParam) { |
| 15135 NOTREACHED() |
| 15136 << "Trying to call glDebugMessageCallback() without current GL context"; |
| 15137 LOG(ERROR) |
| 15138 << "Trying to call glDebugMessageCallback() without current GL context"; |
| 15139 } |
| 15140 |
| 15141 void NoContextGLApi::glDebugMessageControlFn(GLenum source, |
| 15142 GLenum type, |
| 15143 GLenum severity, |
| 15144 GLsizei count, |
| 15145 const GLuint* ids, |
| 15146 GLboolean enabled) { |
| 15147 NOTREACHED() |
| 15148 << "Trying to call glDebugMessageControl() without current GL context"; |
| 15149 LOG(ERROR) |
| 15150 << "Trying to call glDebugMessageControl() without current GL context"; |
| 15151 } |
| 15152 |
| 15153 void NoContextGLApi::glDebugMessageInsertFn(GLenum source, |
| 15154 GLenum type, |
| 15155 GLuint id, |
| 15156 GLenum severity, |
| 15157 GLsizei length, |
| 15158 const char* buf) { |
| 15159 NOTREACHED() |
| 15160 << "Trying to call glDebugMessageInsert() without current GL context"; |
| 15161 LOG(ERROR) |
| 15162 << "Trying to call glDebugMessageInsert() without current GL context"; |
| 15163 } |
| 15164 |
| 14673 void NoContextGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) { | 15165 void NoContextGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) { |
| 14674 NOTREACHED() | 15166 NOTREACHED() |
| 14675 << "Trying to call glDeleteBuffersARB() without current GL context"; | 15167 << "Trying to call glDeleteBuffersARB() without current GL context"; |
| 14676 LOG(ERROR) | 15168 LOG(ERROR) |
| 14677 << "Trying to call glDeleteBuffersARB() without current GL context"; | 15169 << "Trying to call glDeleteBuffersARB() without current GL context"; |
| 14678 } | 15170 } |
| 14679 | 15171 |
| 14680 void NoContextGLApi::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) { | 15172 void NoContextGLApi::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) { |
| 14681 NOTREACHED() | 15173 NOTREACHED() |
| 14682 << "Trying to call glDeleteFencesAPPLE() without current GL context"; | 15174 << "Trying to call glDeleteFencesAPPLE() without current GL context"; |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15222 GLenum pname, | 15714 GLenum pname, |
| 15223 GLsizei bufSize, | 15715 GLsizei bufSize, |
| 15224 GLsizei* length, | 15716 GLsizei* length, |
| 15225 void** params) { | 15717 void** params) { |
| 15226 NOTREACHED() << "Trying to call glGetBufferPointervRobustANGLE() without " | 15718 NOTREACHED() << "Trying to call glGetBufferPointervRobustANGLE() without " |
| 15227 "current GL context"; | 15719 "current GL context"; |
| 15228 LOG(ERROR) << "Trying to call glGetBufferPointervRobustANGLE() without " | 15720 LOG(ERROR) << "Trying to call glGetBufferPointervRobustANGLE() without " |
| 15229 "current GL context"; | 15721 "current GL context"; |
| 15230 } | 15722 } |
| 15231 | 15723 |
| 15724 void NoContextGLApi::glGetDebugMessageLogFn(GLuint count, |
| 15725 GLsizei bufSize, |
| 15726 GLenum* sources, |
| 15727 GLenum* types, |
| 15728 GLuint* ids, |
| 15729 GLenum* severities, |
| 15730 GLsizei* lengths, |
| 15731 char* messageLog) { |
| 15732 NOTREACHED() |
| 15733 << "Trying to call glGetDebugMessageLog() without current GL context"; |
| 15734 LOG(ERROR) |
| 15735 << "Trying to call glGetDebugMessageLog() without current GL context"; |
| 15736 } |
| 15737 |
| 15232 GLenum NoContextGLApi::glGetErrorFn(void) { | 15738 GLenum NoContextGLApi::glGetErrorFn(void) { |
| 15233 NOTREACHED() << "Trying to call glGetError() without current GL context"; | 15739 NOTREACHED() << "Trying to call glGetError() without current GL context"; |
| 15234 LOG(ERROR) << "Trying to call glGetError() without current GL context"; | 15740 LOG(ERROR) << "Trying to call glGetError() without current GL context"; |
| 15235 return static_cast<GLenum>(0); | 15741 return static_cast<GLenum>(0); |
| 15236 } | 15742 } |
| 15237 | 15743 |
| 15238 void NoContextGLApi::glGetFenceivNVFn(GLuint fence, | 15744 void NoContextGLApi::glGetFenceivNVFn(GLuint fence, |
| 15239 GLenum pname, | 15745 GLenum pname, |
| 15240 GLint* params) { | 15746 GLint* params) { |
| 15241 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context"; | 15747 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context"; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15446 GLint location, | 15952 GLint location, |
| 15447 GLsizei bufSize, | 15953 GLsizei bufSize, |
| 15448 GLsizei* length, | 15954 GLsizei* length, |
| 15449 GLuint* params) { | 15955 GLuint* params) { |
| 15450 NOTREACHED() << "Trying to call glGetnUniformuivRobustANGLE() without " | 15956 NOTREACHED() << "Trying to call glGetnUniformuivRobustANGLE() without " |
| 15451 "current GL context"; | 15957 "current GL context"; |
| 15452 LOG(ERROR) << "Trying to call glGetnUniformuivRobustANGLE() without current " | 15958 LOG(ERROR) << "Trying to call glGetnUniformuivRobustANGLE() without current " |
| 15453 "GL context"; | 15959 "GL context"; |
| 15454 } | 15960 } |
| 15455 | 15961 |
| 15962 void NoContextGLApi::glGetObjectLabelFn(GLenum identifier, |
| 15963 GLuint name, |
| 15964 GLsizei bufSize, |
| 15965 GLsizei* length, |
| 15966 char* label) { |
| 15967 NOTREACHED() |
| 15968 << "Trying to call glGetObjectLabel() without current GL context"; |
| 15969 LOG(ERROR) << "Trying to call glGetObjectLabel() without current GL context"; |
| 15970 } |
| 15971 |
| 15972 void NoContextGLApi::glGetObjectPtrLabelFn(void* ptr, |
| 15973 GLsizei bufSize, |
| 15974 GLsizei* length, |
| 15975 char* label) { |
| 15976 NOTREACHED() |
| 15977 << "Trying to call glGetObjectPtrLabel() without current GL context"; |
| 15978 LOG(ERROR) |
| 15979 << "Trying to call glGetObjectPtrLabel() without current GL context"; |
| 15980 } |
| 15981 |
| 15982 void NoContextGLApi::glGetPointervFn(GLenum pname, void** params) { |
| 15983 NOTREACHED() << "Trying to call glGetPointerv() without current GL context"; |
| 15984 LOG(ERROR) << "Trying to call glGetPointerv() without current GL context"; |
| 15985 } |
| 15986 |
| 15456 void NoContextGLApi::glGetPointervRobustANGLERobustANGLEFn(GLenum pname, | 15987 void NoContextGLApi::glGetPointervRobustANGLERobustANGLEFn(GLenum pname, |
| 15457 GLsizei bufSize, | 15988 GLsizei bufSize, |
| 15458 GLsizei* length, | 15989 GLsizei* length, |
| 15459 void** params) { | 15990 void** params) { |
| 15460 NOTREACHED() << "Trying to call glGetPointervRobustANGLERobustANGLE() " | 15991 NOTREACHED() << "Trying to call glGetPointervRobustANGLERobustANGLE() " |
| 15461 "without current GL context"; | 15992 "without current GL context"; |
| 15462 LOG(ERROR) << "Trying to call glGetPointervRobustANGLERobustANGLE() without " | 15993 LOG(ERROR) << "Trying to call glGetPointervRobustANGLERobustANGLE() without " |
| 15463 "current GL context"; | 15994 "current GL context"; |
| 15464 } | 15995 } |
| 15465 | 15996 |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16273 << "Trying to call glMatrixLoadIdentityEXT() without current GL context"; | 16804 << "Trying to call glMatrixLoadIdentityEXT() without current GL context"; |
| 16274 } | 16805 } |
| 16275 | 16806 |
| 16276 void NoContextGLApi::glMemoryBarrierEXTFn(GLbitfield barriers) { | 16807 void NoContextGLApi::glMemoryBarrierEXTFn(GLbitfield barriers) { |
| 16277 NOTREACHED() | 16808 NOTREACHED() |
| 16278 << "Trying to call glMemoryBarrierEXT() without current GL context"; | 16809 << "Trying to call glMemoryBarrierEXT() without current GL context"; |
| 16279 LOG(ERROR) | 16810 LOG(ERROR) |
| 16280 << "Trying to call glMemoryBarrierEXT() without current GL context"; | 16811 << "Trying to call glMemoryBarrierEXT() without current GL context"; |
| 16281 } | 16812 } |
| 16282 | 16813 |
| 16814 void NoContextGLApi::glObjectLabelFn(GLenum identifier, |
| 16815 GLuint name, |
| 16816 GLsizei length, |
| 16817 const char* label) { |
| 16818 NOTREACHED() << "Trying to call glObjectLabel() without current GL context"; |
| 16819 LOG(ERROR) << "Trying to call glObjectLabel() without current GL context"; |
| 16820 } |
| 16821 |
| 16822 void NoContextGLApi::glObjectPtrLabelFn(void* ptr, |
| 16823 GLsizei length, |
| 16824 const char* label) { |
| 16825 NOTREACHED() |
| 16826 << "Trying to call glObjectPtrLabel() without current GL context"; |
| 16827 LOG(ERROR) << "Trying to call glObjectPtrLabel() without current GL context"; |
| 16828 } |
| 16829 |
| 16283 void NoContextGLApi::glPathCommandsNVFn(GLuint path, | 16830 void NoContextGLApi::glPathCommandsNVFn(GLuint path, |
| 16284 GLsizei numCommands, | 16831 GLsizei numCommands, |
| 16285 const GLubyte* commands, | 16832 const GLubyte* commands, |
| 16286 GLsizei numCoords, | 16833 GLsizei numCoords, |
| 16287 GLenum coordType, | 16834 GLenum coordType, |
| 16288 const GLvoid* coords) { | 16835 const GLvoid* coords) { |
| 16289 NOTREACHED() | 16836 NOTREACHED() |
| 16290 << "Trying to call glPathCommandsNV() without current GL context"; | 16837 << "Trying to call glPathCommandsNV() without current GL context"; |
| 16291 LOG(ERROR) << "Trying to call glPathCommandsNV() without current GL context"; | 16838 LOG(ERROR) << "Trying to call glPathCommandsNV() without current GL context"; |
| 16292 } | 16839 } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16334 NOTREACHED() | 16881 NOTREACHED() |
| 16335 << "Trying to call glPointParameteri() without current GL context"; | 16882 << "Trying to call glPointParameteri() without current GL context"; |
| 16336 LOG(ERROR) << "Trying to call glPointParameteri() without current GL context"; | 16883 LOG(ERROR) << "Trying to call glPointParameteri() without current GL context"; |
| 16337 } | 16884 } |
| 16338 | 16885 |
| 16339 void NoContextGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) { | 16886 void NoContextGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) { |
| 16340 NOTREACHED() << "Trying to call glPolygonOffset() without current GL context"; | 16887 NOTREACHED() << "Trying to call glPolygonOffset() without current GL context"; |
| 16341 LOG(ERROR) << "Trying to call glPolygonOffset() without current GL context"; | 16888 LOG(ERROR) << "Trying to call glPolygonOffset() without current GL context"; |
| 16342 } | 16889 } |
| 16343 | 16890 |
| 16891 void NoContextGLApi::glPopDebugGroupFn() { |
| 16892 NOTREACHED() << "Trying to call glPopDebugGroup() without current GL context"; |
| 16893 LOG(ERROR) << "Trying to call glPopDebugGroup() without current GL context"; |
| 16894 } |
| 16895 |
| 16344 void NoContextGLApi::glPopGroupMarkerEXTFn(void) { | 16896 void NoContextGLApi::glPopGroupMarkerEXTFn(void) { |
| 16345 NOTREACHED() | 16897 NOTREACHED() |
| 16346 << "Trying to call glPopGroupMarkerEXT() without current GL context"; | 16898 << "Trying to call glPopGroupMarkerEXT() without current GL context"; |
| 16347 LOG(ERROR) | 16899 LOG(ERROR) |
| 16348 << "Trying to call glPopGroupMarkerEXT() without current GL context"; | 16900 << "Trying to call glPopGroupMarkerEXT() without current GL context"; |
| 16349 } | 16901 } |
| 16350 | 16902 |
| 16351 void NoContextGLApi::glPrimitiveRestartIndexFn(GLuint index) { | 16903 void NoContextGLApi::glPrimitiveRestartIndexFn(GLuint index) { |
| 16352 NOTREACHED() | 16904 NOTREACHED() |
| 16353 << "Trying to call glPrimitiveRestartIndex() without current GL context"; | 16905 << "Trying to call glPrimitiveRestartIndex() without current GL context"; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 16376 GLint location, | 16928 GLint location, |
| 16377 GLenum genMode, | 16929 GLenum genMode, |
| 16378 GLint components, | 16930 GLint components, |
| 16379 const GLfloat* coeffs) { | 16931 const GLfloat* coeffs) { |
| 16380 NOTREACHED() << "Trying to call glProgramPathFragmentInputGenNV() without " | 16932 NOTREACHED() << "Trying to call glProgramPathFragmentInputGenNV() without " |
| 16381 "current GL context"; | 16933 "current GL context"; |
| 16382 LOG(ERROR) << "Trying to call glProgramPathFragmentInputGenNV() without " | 16934 LOG(ERROR) << "Trying to call glProgramPathFragmentInputGenNV() without " |
| 16383 "current GL context"; | 16935 "current GL context"; |
| 16384 } | 16936 } |
| 16385 | 16937 |
| 16938 void NoContextGLApi::glPushDebugGroupFn(GLenum source, |
| 16939 GLuint id, |
| 16940 GLsizei length, |
| 16941 const char* message) { |
| 16942 NOTREACHED() |
| 16943 << "Trying to call glPushDebugGroup() without current GL context"; |
| 16944 LOG(ERROR) << "Trying to call glPushDebugGroup() without current GL context"; |
| 16945 } |
| 16946 |
| 16386 void NoContextGLApi::glPushGroupMarkerEXTFn(GLsizei length, | 16947 void NoContextGLApi::glPushGroupMarkerEXTFn(GLsizei length, |
| 16387 const char* marker) { | 16948 const char* marker) { |
| 16388 NOTREACHED() | 16949 NOTREACHED() |
| 16389 << "Trying to call glPushGroupMarkerEXT() without current GL context"; | 16950 << "Trying to call glPushGroupMarkerEXT() without current GL context"; |
| 16390 LOG(ERROR) | 16951 LOG(ERROR) |
| 16391 << "Trying to call glPushGroupMarkerEXT() without current GL context"; | 16952 << "Trying to call glPushGroupMarkerEXT() without current GL context"; |
| 16392 } | 16953 } |
| 16393 | 16954 |
| 16394 void NoContextGLApi::glQueryCounterFn(GLuint id, GLenum target) { | 16955 void NoContextGLApi::glQueryCounterFn(GLuint id, GLenum target) { |
| 16395 NOTREACHED() << "Trying to call glQueryCounter() without current GL context"; | 16956 NOTREACHED() << "Trying to call glQueryCounter() without current GL context"; |
| (...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17416 | 17977 |
| 17417 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, | 17978 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, |
| 17418 GLbitfield flags, | 17979 GLbitfield flags, |
| 17419 GLuint64 timeout) { | 17980 GLuint64 timeout) { |
| 17420 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; | 17981 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; |
| 17421 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; | 17982 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; |
| 17422 return static_cast<GLenum>(0); | 17983 return static_cast<GLenum>(0); |
| 17423 } | 17984 } |
| 17424 | 17985 |
| 17425 } // namespace gl | 17986 } // namespace gl |
| OLD | NEW |