| 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 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 // Includes the platform independent and platform dependent GL headers. | 10 // Includes the platform independent and platform dependent GL headers. |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZ
ONE) | 379 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZ
ONE) |
| 380 struct GL_EXPORT DriverEGL { | 380 struct GL_EXPORT DriverEGL { |
| 381 void InitializeStaticBindings(); | 381 void InitializeStaticBindings(); |
| 382 void InitializeDebugBindings(); | 382 void InitializeDebugBindings(); |
| 383 void ClearBindings(); | 383 void ClearBindings(); |
| 384 | 384 |
| 385 ProcsEGL fn; | 385 ProcsEGL fn; |
| 386 ProcsEGL debug_fn; | 386 ProcsEGL debug_fn; |
| 387 ExtensionsEGL ext; | 387 ExtensionsEGL ext; |
| 388 | 388 |
| 389 private: | |
| 390 static std::string GetPlatformExtensions(); | 389 static std::string GetPlatformExtensions(); |
| 391 static std::string GetClientExtensions(); | 390 static std::string GetClientExtensions(); |
| 392 }; | 391 }; |
| 393 #endif | 392 #endif |
| 394 | 393 |
| 395 #if defined(USE_X11) | 394 #if defined(USE_X11) |
| 396 struct GL_EXPORT DriverGLX { | 395 struct GL_EXPORT DriverGLX { |
| 397 void InitializeStaticBindings(); | 396 void InitializeStaticBindings(); |
| 398 void InitializeDebugBindings(); | 397 void InitializeDebugBindings(); |
| 399 void ClearBindings(); | 398 void ClearBindings(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 #elif defined(OS_ANDROID) | 436 #elif defined(OS_ANDROID) |
| 438 | 437 |
| 439 GL_EXPORT extern EGLApi* g_current_egl_context; | 438 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 440 GL_EXPORT extern DriverEGL g_driver_egl; | 439 GL_EXPORT extern DriverEGL g_driver_egl; |
| 441 | 440 |
| 442 #endif | 441 #endif |
| 443 | 442 |
| 444 } // namespace gfx | 443 } // namespace gfx |
| 445 | 444 |
| 446 #endif // UI_GL_GL_BINDINGS_H_ | 445 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |