| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file is auto-generated from | 5 // This file is auto-generated from |
| 6 // ui/gl/generate_bindings.py | 6 // ui/gl/generate_bindings.py |
| 7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
| 8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
| 9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 fn.glCompressedTexSubImage2DFn = | 89 fn.glCompressedTexSubImage2DFn = |
| 90 reinterpret_cast<glCompressedTexSubImage2DProc>( | 90 reinterpret_cast<glCompressedTexSubImage2DProc>( |
| 91 GetGLProcAddress("glCompressedTexSubImage2D")); | 91 GetGLProcAddress("glCompressedTexSubImage2D")); |
| 92 fn.glCompressedTexSubImage3DFn = 0; | 92 fn.glCompressedTexSubImage3DFn = 0; |
| 93 fn.glCopyBufferSubDataFn = 0; | 93 fn.glCopyBufferSubDataFn = 0; |
| 94 fn.glCopyTexImage2DFn = reinterpret_cast<glCopyTexImage2DProc>( | 94 fn.glCopyTexImage2DFn = reinterpret_cast<glCopyTexImage2DProc>( |
| 95 GetGLProcAddress("glCopyTexImage2D")); | 95 GetGLProcAddress("glCopyTexImage2D")); |
| 96 fn.glCopyTexSubImage2DFn = reinterpret_cast<glCopyTexSubImage2DProc>( | 96 fn.glCopyTexSubImage2DFn = reinterpret_cast<glCopyTexSubImage2DProc>( |
| 97 GetGLProcAddress("glCopyTexSubImage2D")); | 97 GetGLProcAddress("glCopyTexSubImage2D")); |
| 98 fn.glCopyTexSubImage3DFn = 0; | 98 fn.glCopyTexSubImage3DFn = 0; |
| 99 fn.glCoverageModulationNVFn = 0; |
| 99 fn.glCoverFillPathInstancedNVFn = 0; | 100 fn.glCoverFillPathInstancedNVFn = 0; |
| 100 fn.glCoverFillPathNVFn = 0; | 101 fn.glCoverFillPathNVFn = 0; |
| 101 fn.glCoverStrokePathInstancedNVFn = 0; | 102 fn.glCoverStrokePathInstancedNVFn = 0; |
| 102 fn.glCoverStrokePathNVFn = 0; | 103 fn.glCoverStrokePathNVFn = 0; |
| 103 fn.glCreateProgramFn = reinterpret_cast<glCreateProgramProc>( | 104 fn.glCreateProgramFn = reinterpret_cast<glCreateProgramProc>( |
| 104 GetGLProcAddress("glCreateProgram")); | 105 GetGLProcAddress("glCreateProgram")); |
| 105 fn.glCreateShaderFn = | 106 fn.glCreateShaderFn = |
| 106 reinterpret_cast<glCreateShaderProc>(GetGLProcAddress("glCreateShader")); | 107 reinterpret_cast<glCreateShaderProc>(GetGLProcAddress("glCreateShader")); |
| 107 fn.glCullFaceFn = | 108 fn.glCullFaceFn = |
| 108 reinterpret_cast<glCullFaceProc>(GetGLProcAddress("glCullFace")); | 109 reinterpret_cast<glCullFaceProc>(GetGLProcAddress("glCullFace")); |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 std::string::npos; | 557 std::string::npos; |
| 557 ext.b_GL_INTEL_framebuffer_CMAA = | 558 ext.b_GL_INTEL_framebuffer_CMAA = |
| 558 extensions.find("GL_INTEL_framebuffer_CMAA ") != std::string::npos; | 559 extensions.find("GL_INTEL_framebuffer_CMAA ") != std::string::npos; |
| 559 ext.b_GL_KHR_blend_equation_advanced = | 560 ext.b_GL_KHR_blend_equation_advanced = |
| 560 extensions.find("GL_KHR_blend_equation_advanced ") != std::string::npos; | 561 extensions.find("GL_KHR_blend_equation_advanced ") != std::string::npos; |
| 561 ext.b_GL_KHR_robustness = | 562 ext.b_GL_KHR_robustness = |
| 562 extensions.find("GL_KHR_robustness ") != std::string::npos; | 563 extensions.find("GL_KHR_robustness ") != std::string::npos; |
| 563 ext.b_GL_NV_blend_equation_advanced = | 564 ext.b_GL_NV_blend_equation_advanced = |
| 564 extensions.find("GL_NV_blend_equation_advanced ") != std::string::npos; | 565 extensions.find("GL_NV_blend_equation_advanced ") != std::string::npos; |
| 565 ext.b_GL_NV_fence = extensions.find("GL_NV_fence ") != std::string::npos; | 566 ext.b_GL_NV_fence = extensions.find("GL_NV_fence ") != std::string::npos; |
| 567 ext.b_GL_NV_framebuffer_mixed_samples = |
| 568 extensions.find("GL_NV_framebuffer_mixed_samples ") != std::string::npos; |
| 566 ext.b_GL_NV_path_rendering = | 569 ext.b_GL_NV_path_rendering = |
| 567 extensions.find("GL_NV_path_rendering ") != std::string::npos; | 570 extensions.find("GL_NV_path_rendering ") != std::string::npos; |
| 568 ext.b_GL_OES_EGL_image = | 571 ext.b_GL_OES_EGL_image = |
| 569 extensions.find("GL_OES_EGL_image ") != std::string::npos; | 572 extensions.find("GL_OES_EGL_image ") != std::string::npos; |
| 570 ext.b_GL_OES_get_program_binary = | 573 ext.b_GL_OES_get_program_binary = |
| 571 extensions.find("GL_OES_get_program_binary ") != std::string::npos; | 574 extensions.find("GL_OES_get_program_binary ") != std::string::npos; |
| 572 ext.b_GL_OES_mapbuffer = | 575 ext.b_GL_OES_mapbuffer = |
| 573 extensions.find("GL_OES_mapbuffer ") != std::string::npos; | 576 extensions.find("GL_OES_mapbuffer ") != std::string::npos; |
| 574 ext.b_GL_OES_vertex_array_object = | 577 ext.b_GL_OES_vertex_array_object = |
| 575 extensions.find("GL_OES_vertex_array_object ") != std::string::npos; | 578 extensions.find("GL_OES_vertex_array_object ") != std::string::npos; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 fn.glCopyBufferSubDataFn = reinterpret_cast<glCopyBufferSubDataProc>( | 789 fn.glCopyBufferSubDataFn = reinterpret_cast<glCopyBufferSubDataProc>( |
| 787 GetGLProcAddress("glCopyBufferSubData")); | 790 GetGLProcAddress("glCopyBufferSubData")); |
| 788 } | 791 } |
| 789 | 792 |
| 790 debug_fn.glCopyTexSubImage3DFn = 0; | 793 debug_fn.glCopyTexSubImage3DFn = 0; |
| 791 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) { | 794 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) { |
| 792 fn.glCopyTexSubImage3DFn = reinterpret_cast<glCopyTexSubImage3DProc>( | 795 fn.glCopyTexSubImage3DFn = reinterpret_cast<glCopyTexSubImage3DProc>( |
| 793 GetGLProcAddress("glCopyTexSubImage3D")); | 796 GetGLProcAddress("glCopyTexSubImage3D")); |
| 794 } | 797 } |
| 795 | 798 |
| 799 debug_fn.glCoverageModulationNVFn = 0; |
| 800 if (ext.b_GL_NV_framebuffer_mixed_samples) { |
| 801 fn.glCoverageModulationNVFn = reinterpret_cast<glCoverageModulationNVProc>( |
| 802 GetGLProcAddress("glCoverageModulationNV")); |
| 803 } |
| 804 |
| 796 debug_fn.glCoverFillPathInstancedNVFn = 0; | 805 debug_fn.glCoverFillPathInstancedNVFn = 0; |
| 797 if (ext.b_GL_NV_path_rendering) { | 806 if (ext.b_GL_NV_path_rendering) { |
| 798 fn.glCoverFillPathInstancedNVFn = | 807 fn.glCoverFillPathInstancedNVFn = |
| 799 reinterpret_cast<glCoverFillPathInstancedNVProc>( | 808 reinterpret_cast<glCoverFillPathInstancedNVProc>( |
| 800 GetGLProcAddress("glCoverFillPathInstancedNV")); | 809 GetGLProcAddress("glCoverFillPathInstancedNV")); |
| 801 } | 810 } |
| 802 | 811 |
| 803 debug_fn.glCoverFillPathNVFn = 0; | 812 debug_fn.glCoverFillPathNVFn = 0; |
| 804 if (ext.b_GL_NV_path_rendering) { | 813 if (ext.b_GL_NV_path_rendering) { |
| 805 fn.glCoverFillPathNVFn = reinterpret_cast<glCoverFillPathNVProc>( | 814 fn.glCoverFillPathNVFn = reinterpret_cast<glCoverFillPathNVProc>( |
| (...skipping 1735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2541 GLsizei height) { | 2550 GLsizei height) { |
| 2542 GL_SERVICE_LOG("glCopyTexSubImage3D" | 2551 GL_SERVICE_LOG("glCopyTexSubImage3D" |
| 2543 << "(" << GLEnums::GetStringEnum(target) << ", " << level | 2552 << "(" << GLEnums::GetStringEnum(target) << ", " << level |
| 2544 << ", " << xoffset << ", " << yoffset << ", " << zoffset | 2553 << ", " << xoffset << ", " << yoffset << ", " << zoffset |
| 2545 << ", " << x << ", " << y << ", " << width << ", " << height | 2554 << ", " << x << ", " << y << ", " << width << ", " << height |
| 2546 << ")"); | 2555 << ")"); |
| 2547 g_driver_gl.debug_fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset, | 2556 g_driver_gl.debug_fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset, |
| 2548 zoffset, x, y, width, height); | 2557 zoffset, x, y, width, height); |
| 2549 } | 2558 } |
| 2550 | 2559 |
| 2560 static void GL_BINDING_CALL Debug_glCoverageModulationNV(GLenum components) { |
| 2561 GL_SERVICE_LOG("glCoverageModulationNV" |
| 2562 << "(" << GLEnums::GetStringEnum(components) << ")"); |
| 2563 g_driver_gl.debug_fn.glCoverageModulationNVFn(components); |
| 2564 } |
| 2565 |
| 2551 static void GL_BINDING_CALL | 2566 static void GL_BINDING_CALL |
| 2552 Debug_glCoverFillPathInstancedNV(GLsizei numPaths, | 2567 Debug_glCoverFillPathInstancedNV(GLsizei numPaths, |
| 2553 GLenum pathNameType, | 2568 GLenum pathNameType, |
| 2554 const void* paths, | 2569 const void* paths, |
| 2555 GLuint pathBase, | 2570 GLuint pathBase, |
| 2556 GLenum coverMode, | 2571 GLenum coverMode, |
| 2557 GLenum transformType, | 2572 GLenum transformType, |
| 2558 const GLfloat* transformValues) { | 2573 const GLfloat* transformValues) { |
| 2559 GL_SERVICE_LOG("glCoverFillPathInstancedNV" | 2574 GL_SERVICE_LOG("glCoverFillPathInstancedNV" |
| 2560 << "(" << numPaths << ", " | 2575 << "(" << numPaths << ", " |
| (...skipping 2788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5349 fn.glCopyTexImage2DFn = Debug_glCopyTexImage2D; | 5364 fn.glCopyTexImage2DFn = Debug_glCopyTexImage2D; |
| 5350 } | 5365 } |
| 5351 if (!debug_fn.glCopyTexSubImage2DFn) { | 5366 if (!debug_fn.glCopyTexSubImage2DFn) { |
| 5352 debug_fn.glCopyTexSubImage2DFn = fn.glCopyTexSubImage2DFn; | 5367 debug_fn.glCopyTexSubImage2DFn = fn.glCopyTexSubImage2DFn; |
| 5353 fn.glCopyTexSubImage2DFn = Debug_glCopyTexSubImage2D; | 5368 fn.glCopyTexSubImage2DFn = Debug_glCopyTexSubImage2D; |
| 5354 } | 5369 } |
| 5355 if (!debug_fn.glCopyTexSubImage3DFn) { | 5370 if (!debug_fn.glCopyTexSubImage3DFn) { |
| 5356 debug_fn.glCopyTexSubImage3DFn = fn.glCopyTexSubImage3DFn; | 5371 debug_fn.glCopyTexSubImage3DFn = fn.glCopyTexSubImage3DFn; |
| 5357 fn.glCopyTexSubImage3DFn = Debug_glCopyTexSubImage3D; | 5372 fn.glCopyTexSubImage3DFn = Debug_glCopyTexSubImage3D; |
| 5358 } | 5373 } |
| 5374 if (!debug_fn.glCoverageModulationNVFn) { |
| 5375 debug_fn.glCoverageModulationNVFn = fn.glCoverageModulationNVFn; |
| 5376 fn.glCoverageModulationNVFn = Debug_glCoverageModulationNV; |
| 5377 } |
| 5359 if (!debug_fn.glCoverFillPathInstancedNVFn) { | 5378 if (!debug_fn.glCoverFillPathInstancedNVFn) { |
| 5360 debug_fn.glCoverFillPathInstancedNVFn = fn.glCoverFillPathInstancedNVFn; | 5379 debug_fn.glCoverFillPathInstancedNVFn = fn.glCoverFillPathInstancedNVFn; |
| 5361 fn.glCoverFillPathInstancedNVFn = Debug_glCoverFillPathInstancedNV; | 5380 fn.glCoverFillPathInstancedNVFn = Debug_glCoverFillPathInstancedNV; |
| 5362 } | 5381 } |
| 5363 if (!debug_fn.glCoverFillPathNVFn) { | 5382 if (!debug_fn.glCoverFillPathNVFn) { |
| 5364 debug_fn.glCoverFillPathNVFn = fn.glCoverFillPathNVFn; | 5383 debug_fn.glCoverFillPathNVFn = fn.glCoverFillPathNVFn; |
| 5365 fn.glCoverFillPathNVFn = Debug_glCoverFillPathNV; | 5384 fn.glCoverFillPathNVFn = Debug_glCoverFillPathNV; |
| 5366 } | 5385 } |
| 5367 if (!debug_fn.glCoverStrokePathInstancedNVFn) { | 5386 if (!debug_fn.glCoverStrokePathInstancedNVFn) { |
| 5368 debug_fn.glCoverStrokePathInstancedNVFn = fn.glCoverStrokePathInstancedNVFn; | 5387 debug_fn.glCoverStrokePathInstancedNVFn = fn.glCoverStrokePathInstancedNVFn; |
| (...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6787 GLint yoffset, | 6806 GLint yoffset, |
| 6788 GLint zoffset, | 6807 GLint zoffset, |
| 6789 GLint x, | 6808 GLint x, |
| 6790 GLint y, | 6809 GLint y, |
| 6791 GLsizei width, | 6810 GLsizei width, |
| 6792 GLsizei height) { | 6811 GLsizei height) { |
| 6793 driver_->fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, | 6812 driver_->fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, |
| 6794 y, width, height); | 6813 y, width, height); |
| 6795 } | 6814 } |
| 6796 | 6815 |
| 6816 void GLApiBase::glCoverageModulationNVFn(GLenum components) { |
| 6817 driver_->fn.glCoverageModulationNVFn(components); |
| 6818 } |
| 6819 |
| 6797 void GLApiBase::glCoverFillPathInstancedNVFn(GLsizei numPaths, | 6820 void GLApiBase::glCoverFillPathInstancedNVFn(GLsizei numPaths, |
| 6798 GLenum pathNameType, | 6821 GLenum pathNameType, |
| 6799 const void* paths, | 6822 const void* paths, |
| 6800 GLuint pathBase, | 6823 GLuint pathBase, |
| 6801 GLenum coverMode, | 6824 GLenum coverMode, |
| 6802 GLenum transformType, | 6825 GLenum transformType, |
| 6803 const GLfloat* transformValues) { | 6826 const GLfloat* transformValues) { |
| 6804 driver_->fn.glCoverFillPathInstancedNVFn(numPaths, pathNameType, paths, | 6827 driver_->fn.glCoverFillPathInstancedNVFn(numPaths, pathNameType, paths, |
| 6805 pathBase, coverMode, transformType, | 6828 pathBase, coverMode, transformType, |
| 6806 transformValues); | 6829 transformValues); |
| (...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8721 GLint zoffset, | 8744 GLint zoffset, |
| 8722 GLint x, | 8745 GLint x, |
| 8723 GLint y, | 8746 GLint y, |
| 8724 GLsizei width, | 8747 GLsizei width, |
| 8725 GLsizei height) { | 8748 GLsizei height) { |
| 8726 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage3D") | 8749 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage3D") |
| 8727 gl_api_->glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, y, | 8750 gl_api_->glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, y, |
| 8728 width, height); | 8751 width, height); |
| 8729 } | 8752 } |
| 8730 | 8753 |
| 8754 void TraceGLApi::glCoverageModulationNVFn(GLenum components) { |
| 8755 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverageModulationNV") |
| 8756 gl_api_->glCoverageModulationNVFn(components); |
| 8757 } |
| 8758 |
| 8731 void TraceGLApi::glCoverFillPathInstancedNVFn(GLsizei numPaths, | 8759 void TraceGLApi::glCoverFillPathInstancedNVFn(GLsizei numPaths, |
| 8732 GLenum pathNameType, | 8760 GLenum pathNameType, |
| 8733 const void* paths, | 8761 const void* paths, |
| 8734 GLuint pathBase, | 8762 GLuint pathBase, |
| 8735 GLenum coverMode, | 8763 GLenum coverMode, |
| 8736 GLenum transformType, | 8764 GLenum transformType, |
| 8737 const GLfloat* transformValues) { | 8765 const GLfloat* transformValues) { |
| 8738 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverFillPathInstancedNV") | 8766 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverFillPathInstancedNV") |
| 8739 gl_api_->glCoverFillPathInstancedNVFn(numPaths, pathNameType, paths, pathBase, | 8767 gl_api_->glCoverFillPathInstancedNVFn(numPaths, pathNameType, paths, pathBase, |
| 8740 coverMode, transformType, | 8768 coverMode, transformType, |
| (...skipping 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10985 GLint x, | 11013 GLint x, |
| 10986 GLint y, | 11014 GLint y, |
| 10987 GLsizei width, | 11015 GLsizei width, |
| 10988 GLsizei height) { | 11016 GLsizei height) { |
| 10989 NOTREACHED() | 11017 NOTREACHED() |
| 10990 << "Trying to call glCopyTexSubImage3D() without current GL context"; | 11018 << "Trying to call glCopyTexSubImage3D() without current GL context"; |
| 10991 LOG(ERROR) | 11019 LOG(ERROR) |
| 10992 << "Trying to call glCopyTexSubImage3D() without current GL context"; | 11020 << "Trying to call glCopyTexSubImage3D() without current GL context"; |
| 10993 } | 11021 } |
| 10994 | 11022 |
| 11023 void NoContextGLApi::glCoverageModulationNVFn(GLenum components) { |
| 11024 NOTREACHED() |
| 11025 << "Trying to call glCoverageModulationNV() without current GL context"; |
| 11026 LOG(ERROR) |
| 11027 << "Trying to call glCoverageModulationNV() without current GL context"; |
| 11028 } |
| 11029 |
| 10995 void NoContextGLApi::glCoverFillPathInstancedNVFn( | 11030 void NoContextGLApi::glCoverFillPathInstancedNVFn( |
| 10996 GLsizei numPaths, | 11031 GLsizei numPaths, |
| 10997 GLenum pathNameType, | 11032 GLenum pathNameType, |
| 10998 const void* paths, | 11033 const void* paths, |
| 10999 GLuint pathBase, | 11034 GLuint pathBase, |
| 11000 GLenum coverMode, | 11035 GLenum coverMode, |
| 11001 GLenum transformType, | 11036 GLenum transformType, |
| 11002 const GLfloat* transformValues) { | 11037 const GLfloat* transformValues) { |
| 11003 NOTREACHED() << "Trying to call glCoverFillPathInstancedNV() without current " | 11038 NOTREACHED() << "Trying to call glCoverFillPathInstancedNV() without current " |
| 11004 "GL context"; | 11039 "GL context"; |
| (...skipping 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13100 | 13135 |
| 13101 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, | 13136 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync, |
| 13102 GLbitfield flags, | 13137 GLbitfield flags, |
| 13103 GLuint64 timeout) { | 13138 GLuint64 timeout) { |
| 13104 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; | 13139 NOTREACHED() << "Trying to call glWaitSync() without current GL context"; |
| 13105 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; | 13140 LOG(ERROR) << "Trying to call glWaitSync() without current GL context"; |
| 13106 return static_cast<GLenum>(0); | 13141 return static_cast<GLenum>(0); |
| 13107 } | 13142 } |
| 13108 | 13143 |
| 13109 } // namespace gfx | 13144 } // namespace gfx |
| OLD | NEW |