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 std::string extensions(GetPlatformExtensions()); | 49 } |
50 extensions += " "; | 50 |
| 51 void DriverOSMESA::InitializeDynamicBindings(GLContext* context) { |
| 52 DCHECK(context && context->IsCurrent(NULL)); |
| 53 const GLVersionInfo* ver = context->GetVersionInfo(); |
| 54 ALLOW_UNUSED_LOCAL(ver); |
| 55 std::string extensions = context->GetExtensions() + " "; |
51 ALLOW_UNUSED_LOCAL(extensions); | 56 ALLOW_UNUSED_LOCAL(extensions); |
52 | 57 |
53 if (g_debugBindingsInitialized) | 58 if (g_debugBindingsInitialized) |
54 InitializeDebugBindings(); | 59 InitializeDebugBindings(); |
55 } | 60 } |
56 | 61 |
57 extern "C" { | 62 extern "C" { |
58 | 63 |
59 static void GL_BINDING_CALL Debug_OSMesaColorClamp(GLboolean enable) { | 64 static void GL_BINDING_CALL Debug_OSMesaColorClamp(GLboolean enable) { |
60 GL_SERVICE_LOG("OSMesaColorClamp" | 65 GL_SERVICE_LOG("OSMesaColorClamp" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaMakeCurrent") | 363 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaMakeCurrent") |
359 return osmesa_api_->OSMesaMakeCurrentFn(ctx, buffer, type, width, height); | 364 return osmesa_api_->OSMesaMakeCurrentFn(ctx, buffer, type, width, height); |
360 } | 365 } |
361 | 366 |
362 void TraceOSMESAApi::OSMesaPixelStoreFn(GLint pname, GLint value) { | 367 void TraceOSMESAApi::OSMesaPixelStoreFn(GLint pname, GLint value) { |
363 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaPixelStore") | 368 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaPixelStore") |
364 osmesa_api_->OSMesaPixelStoreFn(pname, value); | 369 osmesa_api_->OSMesaPixelStoreFn(pname, value); |
365 } | 370 } |
366 | 371 |
367 } // namespace gfx | 372 } // namespace gfx |
OLD | NEW |