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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 fn.eglGetDisplayFn = | 71 fn.eglGetDisplayFn = |
72 reinterpret_cast<eglGetDisplayProc>(GetGLProcAddress("eglGetDisplay")); | 72 reinterpret_cast<eglGetDisplayProc>(GetGLProcAddress("eglGetDisplay")); |
73 fn.eglGetErrorFn = | 73 fn.eglGetErrorFn = |
74 reinterpret_cast<eglGetErrorProc>(GetGLProcAddress("eglGetError")); | 74 reinterpret_cast<eglGetErrorProc>(GetGLProcAddress("eglGetError")); |
75 fn.eglGetPlatformDisplayEXTFn = 0; | 75 fn.eglGetPlatformDisplayEXTFn = 0; |
76 fn.eglGetProcAddressFn = reinterpret_cast<eglGetProcAddressProc>( | 76 fn.eglGetProcAddressFn = reinterpret_cast<eglGetProcAddressProc>( |
77 GetGLProcAddress("eglGetProcAddress")); | 77 GetGLProcAddress("eglGetProcAddress")); |
78 fn.eglGetSyncAttribKHRFn = reinterpret_cast<eglGetSyncAttribKHRProc>( | 78 fn.eglGetSyncAttribKHRFn = reinterpret_cast<eglGetSyncAttribKHRProc>( |
79 GetGLProcAddress("eglGetSyncAttribKHR")); | 79 GetGLProcAddress("eglGetSyncAttribKHR")); |
80 fn.eglGetSyncValuesCHROMIUMFn = 0; | 80 fn.eglGetSyncValuesCHROMIUMFn = 0; |
| 81 fn.eglImageFlushExternalEXTFn = 0; |
81 fn.eglInitializeFn = | 82 fn.eglInitializeFn = |
82 reinterpret_cast<eglInitializeProc>(GetGLProcAddress("eglInitialize")); | 83 reinterpret_cast<eglInitializeProc>(GetGLProcAddress("eglInitialize")); |
83 fn.eglMakeCurrentFn = | 84 fn.eglMakeCurrentFn = |
84 reinterpret_cast<eglMakeCurrentProc>(GetGLProcAddress("eglMakeCurrent")); | 85 reinterpret_cast<eglMakeCurrentProc>(GetGLProcAddress("eglMakeCurrent")); |
85 fn.eglPostSubBufferNVFn = 0; | 86 fn.eglPostSubBufferNVFn = 0; |
86 fn.eglQueryAPIFn = | 87 fn.eglQueryAPIFn = |
87 reinterpret_cast<eglQueryAPIProc>(GetGLProcAddress("eglQueryAPI")); | 88 reinterpret_cast<eglQueryAPIProc>(GetGLProcAddress("eglQueryAPI")); |
88 fn.eglQueryContextFn = reinterpret_cast<eglQueryContextProc>( | 89 fn.eglQueryContextFn = reinterpret_cast<eglQueryContextProc>( |
89 GetGLProcAddress("eglQueryContext")); | 90 GetGLProcAddress("eglQueryContext")); |
90 fn.eglQueryStreamKHRFn = 0; | 91 fn.eglQueryStreamKHRFn = 0; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 ext.b_EGL_ANGLE_query_surface_pointer = | 146 ext.b_EGL_ANGLE_query_surface_pointer = |
146 extensions.find("EGL_ANGLE_query_surface_pointer ") != std::string::npos; | 147 extensions.find("EGL_ANGLE_query_surface_pointer ") != std::string::npos; |
147 ext.b_EGL_ANGLE_stream_producer_d3d_texture_nv12 = | 148 ext.b_EGL_ANGLE_stream_producer_d3d_texture_nv12 = |
148 extensions.find("EGL_ANGLE_stream_producer_d3d_texture_nv12 ") != | 149 extensions.find("EGL_ANGLE_stream_producer_d3d_texture_nv12 ") != |
149 std::string::npos; | 150 std::string::npos; |
150 ext.b_EGL_ANGLE_surface_d3d_texture_2d_share_handle = | 151 ext.b_EGL_ANGLE_surface_d3d_texture_2d_share_handle = |
151 extensions.find("EGL_ANGLE_surface_d3d_texture_2d_share_handle ") != | 152 extensions.find("EGL_ANGLE_surface_d3d_texture_2d_share_handle ") != |
152 std::string::npos; | 153 std::string::npos; |
153 ext.b_EGL_CHROMIUM_sync_control = | 154 ext.b_EGL_CHROMIUM_sync_control = |
154 extensions.find("EGL_CHROMIUM_sync_control ") != std::string::npos; | 155 extensions.find("EGL_CHROMIUM_sync_control ") != std::string::npos; |
| 156 ext.b_EGL_EXT_image_flush_external = |
| 157 extensions.find("EGL_EXT_image_flush_external ") != std::string::npos; |
155 ext.b_EGL_KHR_fence_sync = | 158 ext.b_EGL_KHR_fence_sync = |
156 extensions.find("EGL_KHR_fence_sync ") != std::string::npos; | 159 extensions.find("EGL_KHR_fence_sync ") != std::string::npos; |
157 ext.b_EGL_KHR_gl_texture_2D_image = | 160 ext.b_EGL_KHR_gl_texture_2D_image = |
158 extensions.find("EGL_KHR_gl_texture_2D_image ") != std::string::npos; | 161 extensions.find("EGL_KHR_gl_texture_2D_image ") != std::string::npos; |
159 ext.b_EGL_KHR_image = extensions.find("EGL_KHR_image ") != std::string::npos; | 162 ext.b_EGL_KHR_image = extensions.find("EGL_KHR_image ") != std::string::npos; |
160 ext.b_EGL_KHR_image_base = | 163 ext.b_EGL_KHR_image_base = |
161 extensions.find("EGL_KHR_image_base ") != std::string::npos; | 164 extensions.find("EGL_KHR_image_base ") != std::string::npos; |
162 ext.b_EGL_KHR_reusable_sync = | 165 ext.b_EGL_KHR_reusable_sync = |
163 extensions.find("EGL_KHR_reusable_sync ") != std::string::npos; | 166 extensions.find("EGL_KHR_reusable_sync ") != std::string::npos; |
164 ext.b_EGL_KHR_stream = | 167 ext.b_EGL_KHR_stream = |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 GetGLProcAddress("eglDestroyStreamKHR")); | 212 GetGLProcAddress("eglDestroyStreamKHR")); |
210 } | 213 } |
211 | 214 |
212 debug_fn.eglGetSyncValuesCHROMIUMFn = 0; | 215 debug_fn.eglGetSyncValuesCHROMIUMFn = 0; |
213 if (ext.b_EGL_CHROMIUM_sync_control) { | 216 if (ext.b_EGL_CHROMIUM_sync_control) { |
214 fn.eglGetSyncValuesCHROMIUMFn = | 217 fn.eglGetSyncValuesCHROMIUMFn = |
215 reinterpret_cast<eglGetSyncValuesCHROMIUMProc>( | 218 reinterpret_cast<eglGetSyncValuesCHROMIUMProc>( |
216 GetGLProcAddress("eglGetSyncValuesCHROMIUM")); | 219 GetGLProcAddress("eglGetSyncValuesCHROMIUM")); |
217 } | 220 } |
218 | 221 |
| 222 debug_fn.eglImageFlushExternalEXTFn = 0; |
| 223 if (ext.b_EGL_EXT_image_flush_external) { |
| 224 fn.eglImageFlushExternalEXTFn = |
| 225 reinterpret_cast<eglImageFlushExternalEXTProc>( |
| 226 GetGLProcAddress("eglImageFlushExternalEXT")); |
| 227 } |
| 228 |
219 debug_fn.eglPostSubBufferNVFn = 0; | 229 debug_fn.eglPostSubBufferNVFn = 0; |
220 if (ext.b_EGL_NV_post_sub_buffer) { | 230 if (ext.b_EGL_NV_post_sub_buffer) { |
221 fn.eglPostSubBufferNVFn = reinterpret_cast<eglPostSubBufferNVProc>( | 231 fn.eglPostSubBufferNVFn = reinterpret_cast<eglPostSubBufferNVProc>( |
222 GetGLProcAddress("eglPostSubBufferNV")); | 232 GetGLProcAddress("eglPostSubBufferNV")); |
223 } | 233 } |
224 | 234 |
225 debug_fn.eglQueryStreamKHRFn = 0; | 235 debug_fn.eglQueryStreamKHRFn = 0; |
226 if (ext.b_EGL_KHR_stream) { | 236 if (ext.b_EGL_KHR_stream) { |
227 fn.eglQueryStreamKHRFn = reinterpret_cast<eglQueryStreamKHRProc>( | 237 fn.eglQueryStreamKHRFn = reinterpret_cast<eglQueryStreamKHRProc>( |
228 GetGLProcAddress("eglQueryStreamKHR")); | 238 GetGLProcAddress("eglQueryStreamKHR")); |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 << static_cast<const void*>(ust) << ", " | 684 << static_cast<const void*>(ust) << ", " |
675 << static_cast<const void*>(msc) << ", " | 685 << static_cast<const void*>(msc) << ", " |
676 << static_cast<const void*>(sbc) << ")"); | 686 << static_cast<const void*>(sbc) << ")"); |
677 DCHECK(g_driver_egl.debug_fn.eglGetSyncValuesCHROMIUMFn != nullptr); | 687 DCHECK(g_driver_egl.debug_fn.eglGetSyncValuesCHROMIUMFn != nullptr); |
678 EGLBoolean result = g_driver_egl.debug_fn.eglGetSyncValuesCHROMIUMFn( | 688 EGLBoolean result = g_driver_egl.debug_fn.eglGetSyncValuesCHROMIUMFn( |
679 dpy, surface, ust, msc, sbc); | 689 dpy, surface, ust, msc, sbc); |
680 GL_SERVICE_LOG("GL_RESULT: " << result); | 690 GL_SERVICE_LOG("GL_RESULT: " << result); |
681 return result; | 691 return result; |
682 } | 692 } |
683 | 693 |
| 694 static EGLBoolean GL_BINDING_CALL |
| 695 Debug_eglImageFlushExternalEXT(EGLDisplay dpy, |
| 696 EGLImageKHR image, |
| 697 const EGLAttrib* attrib_list) { |
| 698 GL_SERVICE_LOG("eglImageFlushExternalEXT" |
| 699 << "(" << dpy << ", " << image << ", " |
| 700 << static_cast<const void*>(attrib_list) << ")"); |
| 701 DCHECK(g_driver_egl.debug_fn.eglImageFlushExternalEXTFn != nullptr); |
| 702 EGLBoolean result = |
| 703 g_driver_egl.debug_fn.eglImageFlushExternalEXTFn(dpy, image, attrib_list); |
| 704 GL_SERVICE_LOG("GL_RESULT: " << result); |
| 705 return result; |
| 706 } |
| 707 |
684 static EGLBoolean GL_BINDING_CALL Debug_eglInitialize(EGLDisplay dpy, | 708 static EGLBoolean GL_BINDING_CALL Debug_eglInitialize(EGLDisplay dpy, |
685 EGLint* major, | 709 EGLint* major, |
686 EGLint* minor) { | 710 EGLint* minor) { |
687 GL_SERVICE_LOG("eglInitialize" | 711 GL_SERVICE_LOG("eglInitialize" |
688 << "(" << dpy << ", " << static_cast<const void*>(major) | 712 << "(" << dpy << ", " << static_cast<const void*>(major) |
689 << ", " << static_cast<const void*>(minor) << ")"); | 713 << ", " << static_cast<const void*>(minor) << ")"); |
690 DCHECK(g_driver_egl.debug_fn.eglInitializeFn != nullptr); | 714 DCHECK(g_driver_egl.debug_fn.eglInitializeFn != nullptr); |
691 EGLBoolean result = g_driver_egl.debug_fn.eglInitializeFn(dpy, major, minor); | 715 EGLBoolean result = g_driver_egl.debug_fn.eglInitializeFn(dpy, major, minor); |
692 GL_SERVICE_LOG("GL_RESULT: " << result); | 716 GL_SERVICE_LOG("GL_RESULT: " << result); |
693 return result; | 717 return result; |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 fn.eglGetProcAddressFn = Debug_eglGetProcAddress; | 1145 fn.eglGetProcAddressFn = Debug_eglGetProcAddress; |
1122 } | 1146 } |
1123 if (!debug_fn.eglGetSyncAttribKHRFn) { | 1147 if (!debug_fn.eglGetSyncAttribKHRFn) { |
1124 debug_fn.eglGetSyncAttribKHRFn = fn.eglGetSyncAttribKHRFn; | 1148 debug_fn.eglGetSyncAttribKHRFn = fn.eglGetSyncAttribKHRFn; |
1125 fn.eglGetSyncAttribKHRFn = Debug_eglGetSyncAttribKHR; | 1149 fn.eglGetSyncAttribKHRFn = Debug_eglGetSyncAttribKHR; |
1126 } | 1150 } |
1127 if (!debug_fn.eglGetSyncValuesCHROMIUMFn) { | 1151 if (!debug_fn.eglGetSyncValuesCHROMIUMFn) { |
1128 debug_fn.eglGetSyncValuesCHROMIUMFn = fn.eglGetSyncValuesCHROMIUMFn; | 1152 debug_fn.eglGetSyncValuesCHROMIUMFn = fn.eglGetSyncValuesCHROMIUMFn; |
1129 fn.eglGetSyncValuesCHROMIUMFn = Debug_eglGetSyncValuesCHROMIUM; | 1153 fn.eglGetSyncValuesCHROMIUMFn = Debug_eglGetSyncValuesCHROMIUM; |
1130 } | 1154 } |
| 1155 if (!debug_fn.eglImageFlushExternalEXTFn) { |
| 1156 debug_fn.eglImageFlushExternalEXTFn = fn.eglImageFlushExternalEXTFn; |
| 1157 fn.eglImageFlushExternalEXTFn = Debug_eglImageFlushExternalEXT; |
| 1158 } |
1131 if (!debug_fn.eglInitializeFn) { | 1159 if (!debug_fn.eglInitializeFn) { |
1132 debug_fn.eglInitializeFn = fn.eglInitializeFn; | 1160 debug_fn.eglInitializeFn = fn.eglInitializeFn; |
1133 fn.eglInitializeFn = Debug_eglInitialize; | 1161 fn.eglInitializeFn = Debug_eglInitialize; |
1134 } | 1162 } |
1135 if (!debug_fn.eglMakeCurrentFn) { | 1163 if (!debug_fn.eglMakeCurrentFn) { |
1136 debug_fn.eglMakeCurrentFn = fn.eglMakeCurrentFn; | 1164 debug_fn.eglMakeCurrentFn = fn.eglMakeCurrentFn; |
1137 fn.eglMakeCurrentFn = Debug_eglMakeCurrent; | 1165 fn.eglMakeCurrentFn = Debug_eglMakeCurrent; |
1138 } | 1166 } |
1139 if (!debug_fn.eglPostSubBufferNVFn) { | 1167 if (!debug_fn.eglPostSubBufferNVFn) { |
1140 debug_fn.eglPostSubBufferNVFn = fn.eglPostSubBufferNVFn; | 1168 debug_fn.eglPostSubBufferNVFn = fn.eglPostSubBufferNVFn; |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1417 } | 1445 } |
1418 | 1446 |
1419 EGLBoolean EGLApiBase::eglGetSyncValuesCHROMIUMFn(EGLDisplay dpy, | 1447 EGLBoolean EGLApiBase::eglGetSyncValuesCHROMIUMFn(EGLDisplay dpy, |
1420 EGLSurface surface, | 1448 EGLSurface surface, |
1421 EGLuint64CHROMIUM* ust, | 1449 EGLuint64CHROMIUM* ust, |
1422 EGLuint64CHROMIUM* msc, | 1450 EGLuint64CHROMIUM* msc, |
1423 EGLuint64CHROMIUM* sbc) { | 1451 EGLuint64CHROMIUM* sbc) { |
1424 return driver_->fn.eglGetSyncValuesCHROMIUMFn(dpy, surface, ust, msc, sbc); | 1452 return driver_->fn.eglGetSyncValuesCHROMIUMFn(dpy, surface, ust, msc, sbc); |
1425 } | 1453 } |
1426 | 1454 |
| 1455 EGLBoolean EGLApiBase::eglImageFlushExternalEXTFn( |
| 1456 EGLDisplay dpy, |
| 1457 EGLImageKHR image, |
| 1458 const EGLAttrib* attrib_list) { |
| 1459 return driver_->fn.eglImageFlushExternalEXTFn(dpy, image, attrib_list); |
| 1460 } |
| 1461 |
1427 EGLBoolean EGLApiBase::eglInitializeFn(EGLDisplay dpy, | 1462 EGLBoolean EGLApiBase::eglInitializeFn(EGLDisplay dpy, |
1428 EGLint* major, | 1463 EGLint* major, |
1429 EGLint* minor) { | 1464 EGLint* minor) { |
1430 return driver_->fn.eglInitializeFn(dpy, major, minor); | 1465 return driver_->fn.eglInitializeFn(dpy, major, minor); |
1431 } | 1466 } |
1432 | 1467 |
1433 EGLBoolean EGLApiBase::eglMakeCurrentFn(EGLDisplay dpy, | 1468 EGLBoolean EGLApiBase::eglMakeCurrentFn(EGLDisplay dpy, |
1434 EGLSurface draw, | 1469 EGLSurface draw, |
1435 EGLSurface read, | 1470 EGLSurface read, |
1436 EGLContext ctx) { | 1471 EGLContext ctx) { |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1782 | 1817 |
1783 EGLBoolean TraceEGLApi::eglGetSyncValuesCHROMIUMFn(EGLDisplay dpy, | 1818 EGLBoolean TraceEGLApi::eglGetSyncValuesCHROMIUMFn(EGLDisplay dpy, |
1784 EGLSurface surface, | 1819 EGLSurface surface, |
1785 EGLuint64CHROMIUM* ust, | 1820 EGLuint64CHROMIUM* ust, |
1786 EGLuint64CHROMIUM* msc, | 1821 EGLuint64CHROMIUM* msc, |
1787 EGLuint64CHROMIUM* sbc) { | 1822 EGLuint64CHROMIUM* sbc) { |
1788 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::eglGetSyncValuesCHROMIUM") | 1823 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::eglGetSyncValuesCHROMIUM") |
1789 return egl_api_->eglGetSyncValuesCHROMIUMFn(dpy, surface, ust, msc, sbc); | 1824 return egl_api_->eglGetSyncValuesCHROMIUMFn(dpy, surface, ust, msc, sbc); |
1790 } | 1825 } |
1791 | 1826 |
| 1827 EGLBoolean TraceEGLApi::eglImageFlushExternalEXTFn( |
| 1828 EGLDisplay dpy, |
| 1829 EGLImageKHR image, |
| 1830 const EGLAttrib* attrib_list) { |
| 1831 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::eglImageFlushExternalEXT") |
| 1832 return egl_api_->eglImageFlushExternalEXTFn(dpy, image, attrib_list); |
| 1833 } |
| 1834 |
1792 EGLBoolean TraceEGLApi::eglInitializeFn(EGLDisplay dpy, | 1835 EGLBoolean TraceEGLApi::eglInitializeFn(EGLDisplay dpy, |
1793 EGLint* major, | 1836 EGLint* major, |
1794 EGLint* minor) { | 1837 EGLint* minor) { |
1795 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::eglInitialize") | 1838 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::eglInitialize") |
1796 return egl_api_->eglInitializeFn(dpy, major, minor); | 1839 return egl_api_->eglInitializeFn(dpy, major, minor); |
1797 } | 1840 } |
1798 | 1841 |
1799 EGLBoolean TraceEGLApi::eglMakeCurrentFn(EGLDisplay dpy, | 1842 EGLBoolean TraceEGLApi::eglMakeCurrentFn(EGLDisplay dpy, |
1800 EGLSurface draw, | 1843 EGLSurface draw, |
1801 EGLSurface read, | 1844 EGLSurface read, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1968 } | 2011 } |
1969 | 2012 |
1970 EGLint TraceEGLApi::eglWaitSyncKHRFn(EGLDisplay dpy, | 2013 EGLint TraceEGLApi::eglWaitSyncKHRFn(EGLDisplay dpy, |
1971 EGLSyncKHR sync, | 2014 EGLSyncKHR sync, |
1972 EGLint flags) { | 2015 EGLint flags) { |
1973 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::eglWaitSyncKHR") | 2016 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::eglWaitSyncKHR") |
1974 return egl_api_->eglWaitSyncKHRFn(dpy, sync, flags); | 2017 return egl_api_->eglWaitSyncKHRFn(dpy, sync, flags); |
1975 } | 2018 } |
1976 | 2019 |
1977 } // namespace gl | 2020 } // namespace gl |
OLD | NEW |