Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Side by Side Diff: ui/gl/gl_bindings_autogen_osmesa.cc

Issue 1203513004: Respect the disabled extension list during binding initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split extension binding loading from static binding loading; pass enabled extensions Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 += " ";
51 ALLOW_UNUSED_LOCAL(extensions);
52 50
51 void DriverOSMESA::InitializeExtensionBindings(
52 const std::set<std::string>& enabled_extensions) {
53 if (g_debugBindingsInitialized) 53 if (g_debugBindingsInitialized)
54 InitializeDebugBindings(); 54 InitializeDebugBindings();
55 } 55 }
56 56
57 extern "C" { 57 extern "C" {
58 58
59 static void GL_BINDING_CALL Debug_OSMesaColorClamp(GLboolean enable) { 59 static void GL_BINDING_CALL Debug_OSMesaColorClamp(GLboolean enable) {
60 GL_SERVICE_LOG("OSMesaColorClamp" 60 GL_SERVICE_LOG("OSMesaColorClamp"
61 << "(" << GLEnums::GetStringBool(enable) << ")"); 61 << "(" << GLEnums::GetStringBool(enable) << ")");
62 g_driver_osmesa.debug_fn.OSMesaColorClampFn(enable); 62 g_driver_osmesa.debug_fn.OSMesaColorClampFn(enable);
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaMakeCurrent") 358 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaMakeCurrent")
359 return osmesa_api_->OSMesaMakeCurrentFn(ctx, buffer, type, width, height); 359 return osmesa_api_->OSMesaMakeCurrentFn(ctx, buffer, type, width, height);
360 } 360 }
361 361
362 void TraceOSMESAApi::OSMesaPixelStoreFn(GLint pname, GLint value) { 362 void TraceOSMESAApi::OSMesaPixelStoreFn(GLint pname, GLint value) {
363 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaPixelStore") 363 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaPixelStore")
364 osmesa_api_->OSMesaPixelStoreFn(pname, value); 364 osmesa_api_->OSMesaPixelStoreFn(pname, value);
365 } 365 }
366 366
367 } // namespace gfx 367 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698