| 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 28 matching lines...) Expand all Loading... |
| 39 fn.OSMesaGetDepthBufferFn = reinterpret_cast<OSMesaGetDepthBufferProc>( | 39 fn.OSMesaGetDepthBufferFn = reinterpret_cast<OSMesaGetDepthBufferProc>( |
| 40 GetGLProcAddress("OSMesaGetDepthBuffer")); | 40 GetGLProcAddress("OSMesaGetDepthBuffer")); |
| 41 fn.OSMesaGetIntegervFn = reinterpret_cast<OSMesaGetIntegervProc>( | 41 fn.OSMesaGetIntegervFn = reinterpret_cast<OSMesaGetIntegervProc>( |
| 42 GetGLProcAddress("OSMesaGetIntegerv")); | 42 GetGLProcAddress("OSMesaGetIntegerv")); |
| 43 fn.OSMesaGetProcAddressFn = reinterpret_cast<OSMesaGetProcAddressProc>( | 43 fn.OSMesaGetProcAddressFn = reinterpret_cast<OSMesaGetProcAddressProc>( |
| 44 GetGLProcAddress("OSMesaGetProcAddress")); | 44 GetGLProcAddress("OSMesaGetProcAddress")); |
| 45 fn.OSMesaMakeCurrentFn = reinterpret_cast<OSMesaMakeCurrentProc>( | 45 fn.OSMesaMakeCurrentFn = reinterpret_cast<OSMesaMakeCurrentProc>( |
| 46 GetGLProcAddress("OSMesaMakeCurrent")); | 46 GetGLProcAddress("OSMesaMakeCurrent")); |
| 47 fn.OSMesaPixelStoreFn = reinterpret_cast<OSMesaPixelStoreProc>( | 47 fn.OSMesaPixelStoreFn = reinterpret_cast<OSMesaPixelStoreProc>( |
| 48 GetGLProcAddress("OSMesaPixelStore")); | 48 GetGLProcAddress("OSMesaPixelStore")); |
| 49 } |
| 50 |
| 51 void DriverOSMESA::InitializeExtensionBindings() { |
| 49 std::string extensions(GetPlatformExtensions()); | 52 std::string extensions(GetPlatformExtensions()); |
| 50 extensions += " "; | 53 extensions += " "; |
| 51 ALLOW_UNUSED_LOCAL(extensions); | 54 ALLOW_UNUSED_LOCAL(extensions); |
| 52 | 55 |
| 53 if (g_debugBindingsInitialized) | 56 if (g_debugBindingsInitialized) |
| 54 InitializeDebugBindings(); | 57 InitializeDebugBindings(); |
| 55 } | 58 } |
| 56 | 59 |
| 57 extern "C" { | 60 extern "C" { |
| 58 | 61 |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaMakeCurrent") | 361 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaMakeCurrent") |
| 359 return osmesa_api_->OSMesaMakeCurrentFn(ctx, buffer, type, width, height); | 362 return osmesa_api_->OSMesaMakeCurrentFn(ctx, buffer, type, width, height); |
| 360 } | 363 } |
| 361 | 364 |
| 362 void TraceOSMESAApi::OSMesaPixelStoreFn(GLint pname, GLint value) { | 365 void TraceOSMESAApi::OSMesaPixelStoreFn(GLint pname, GLint value) { |
| 363 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaPixelStore") | 366 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaPixelStore") |
| 364 osmesa_api_->OSMesaPixelStoreFn(pname, value); | 367 osmesa_api_->OSMesaPixelStoreFn(pname, value); |
| 365 } | 368 } |
| 366 | 369 |
| 367 } // namespace gfx | 370 } // namespace gfx |
| OLD | NEW |