| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 fn.glXSwapBuffersFn = | 105 fn.glXSwapBuffersFn = |
| 106 reinterpret_cast<glXSwapBuffersProc>(GetGLProcAddress("glXSwapBuffers")); | 106 reinterpret_cast<glXSwapBuffersProc>(GetGLProcAddress("glXSwapBuffers")); |
| 107 fn.glXSwapIntervalEXTFn = 0; | 107 fn.glXSwapIntervalEXTFn = 0; |
| 108 fn.glXSwapIntervalMESAFn = 0; | 108 fn.glXSwapIntervalMESAFn = 0; |
| 109 fn.glXUseXFontFn = | 109 fn.glXUseXFontFn = |
| 110 reinterpret_cast<glXUseXFontProc>(GetGLProcAddress("glXUseXFont")); | 110 reinterpret_cast<glXUseXFontProc>(GetGLProcAddress("glXUseXFont")); |
| 111 fn.glXWaitGLFn = | 111 fn.glXWaitGLFn = |
| 112 reinterpret_cast<glXWaitGLProc>(GetGLProcAddress("glXWaitGL")); | 112 reinterpret_cast<glXWaitGLProc>(GetGLProcAddress("glXWaitGL")); |
| 113 fn.glXWaitVideoSyncSGIFn = 0; | 113 fn.glXWaitVideoSyncSGIFn = 0; |
| 114 fn.glXWaitXFn = reinterpret_cast<glXWaitXProc>(GetGLProcAddress("glXWaitX")); | 114 fn.glXWaitXFn = reinterpret_cast<glXWaitXProc>(GetGLProcAddress("glXWaitX")); |
| 115 } |
| 116 |
| 117 void DriverGLX::InitializeExtensionBindings() { |
| 115 std::string extensions(GetPlatformExtensions()); | 118 std::string extensions(GetPlatformExtensions()); |
| 116 extensions += " "; | 119 extensions += " "; |
| 117 ALLOW_UNUSED_LOCAL(extensions); | 120 ALLOW_UNUSED_LOCAL(extensions); |
| 118 | 121 |
| 119 ext.b_GLX_ARB_create_context = | 122 ext.b_GLX_ARB_create_context = |
| 120 extensions.find("GLX_ARB_create_context ") != std::string::npos; | 123 extensions.find("GLX_ARB_create_context ") != std::string::npos; |
| 121 ext.b_GLX_EXT_swap_control = | 124 ext.b_GLX_EXT_swap_control = |
| 122 extensions.find("GLX_EXT_swap_control ") != std::string::npos; | 125 extensions.find("GLX_EXT_swap_control ") != std::string::npos; |
| 123 ext.b_GLX_EXT_texture_from_pixmap = | 126 ext.b_GLX_EXT_texture_from_pixmap = |
| 124 extensions.find("GLX_EXT_texture_from_pixmap ") != std::string::npos; | 127 extensions.find("GLX_EXT_texture_from_pixmap ") != std::string::npos; |
| (...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1509 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitVideoSyncSGI") | 1512 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitVideoSyncSGI") |
| 1510 return glx_api_->glXWaitVideoSyncSGIFn(divisor, remainder, count); | 1513 return glx_api_->glXWaitVideoSyncSGIFn(divisor, remainder, count); |
| 1511 } | 1514 } |
| 1512 | 1515 |
| 1513 void TraceGLXApi::glXWaitXFn(void) { | 1516 void TraceGLXApi::glXWaitXFn(void) { |
| 1514 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitX") | 1517 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glXWaitX") |
| 1515 glx_api_->glXWaitXFn(); | 1518 glx_api_->glXWaitXFn(); |
| 1516 } | 1519 } |
| 1517 | 1520 |
| 1518 } // namespace gfx | 1521 } // namespace gfx |
| OLD | NEW |