| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_GL_GL_BINDINGS_H_ | 5 #ifndef UI_GL_GL_BINDINGS_H_ |
| 6 #define UI_GL_GL_BINDINGS_H_ | 6 #define UI_GL_GL_BINDINGS_H_ |
| 7 | 7 |
| 8 // Includes the platform independent and platform dependent GL headers. | 8 // Includes the platform independent and platform dependent GL headers. |
| 9 // Only include this in cc files. It pulls in system headers, including | 9 // Only include this in cc files. It pulls in system headers, including |
| 10 // the X11 headers on linux, which define all kinds of macros that are | 10 // the X11 headers on linux, which define all kinds of macros that are |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 ExtensionsWGL ext; | 440 ExtensionsWGL ext; |
| 441 | 441 |
| 442 private: | 442 private: |
| 443 static std::string GetPlatformExtensions(); | 443 static std::string GetPlatformExtensions(); |
| 444 }; | 444 }; |
| 445 #endif | 445 #endif |
| 446 | 446 |
| 447 #if defined(USE_EGL) | 447 #if defined(USE_EGL) |
| 448 struct GL_EXPORT DriverEGL { | 448 struct GL_EXPORT DriverEGL { |
| 449 void InitializeStaticBindings(); | 449 void InitializeStaticBindings(); |
| 450 void InitializeClientExtensionBindings(); |
| 450 void InitializeExtensionBindings(); | 451 void InitializeExtensionBindings(); |
| 451 void InitializeDebugBindings(); | 452 void InitializeDebugBindings(); |
| 452 void ClearBindings(); | 453 void ClearBindings(); |
| 453 | 454 |
| 454 ProcsEGL fn; | 455 ProcsEGL fn; |
| 455 ProcsEGL debug_fn; | 456 ProcsEGL debug_fn; |
| 456 ExtensionsEGL ext; | 457 ExtensionsEGL ext; |
| 457 | 458 |
| 458 static std::string GetPlatformExtensions(); | 459 static std::string GetPlatformExtensions(); |
| 459 static std::string GetClientExtensions(); | 460 static std::string GetClientExtensions(); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 #endif | 496 #endif |
| 496 | 497 |
| 497 #if defined(USE_GLX) | 498 #if defined(USE_GLX) |
| 498 GL_EXPORT extern GLXApi* g_current_glx_context; | 499 GL_EXPORT extern GLXApi* g_current_glx_context; |
| 499 GL_EXPORT extern DriverGLX g_driver_glx; | 500 GL_EXPORT extern DriverGLX g_driver_glx; |
| 500 #endif | 501 #endif |
| 501 | 502 |
| 502 } // namespace gl | 503 } // namespace gl |
| 503 | 504 |
| 504 #endif // UI_GL_GL_BINDINGS_H_ | 505 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |