| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 ProcsGL debug_fn; | 338 ProcsGL debug_fn; |
| 339 ExtensionsGL ext; | 339 ExtensionsGL ext; |
| 340 bool null_draw_bindings_enabled; | 340 bool null_draw_bindings_enabled; |
| 341 | 341 |
| 342 private: | 342 private: |
| 343 void InitializeDynamicBindings(GLContext* context); | 343 void InitializeDynamicBindings(GLContext* context); |
| 344 }; | 344 }; |
| 345 | 345 |
| 346 struct GL_EXPORT DriverOSMESA { | 346 struct GL_EXPORT DriverOSMESA { |
| 347 void InitializeStaticBindings(); | 347 void InitializeStaticBindings(); |
| 348 void InitializeExtensionBindings(); |
| 348 void InitializeDebugBindings(); | 349 void InitializeDebugBindings(); |
| 349 void ClearBindings(); | 350 void ClearBindings(); |
| 350 | 351 |
| 351 ProcsOSMESA fn; | 352 ProcsOSMESA fn; |
| 352 ProcsOSMESA debug_fn; | 353 ProcsOSMESA debug_fn; |
| 353 ExtensionsOSMESA ext; | 354 ExtensionsOSMESA ext; |
| 354 | 355 |
| 355 private: | 356 private: |
| 356 static std::string GetPlatformExtensions(); | 357 static std::string GetPlatformExtensions(); |
| 357 }; | 358 }; |
| 358 | 359 |
| 359 #if defined(OS_WIN) | 360 #if defined(OS_WIN) |
| 360 struct GL_EXPORT DriverWGL { | 361 struct GL_EXPORT DriverWGL { |
| 361 void InitializeStaticBindings(); | 362 void InitializeStaticBindings(); |
| 363 void InitializeExtensionBindings(); |
| 362 void InitializeDebugBindings(); | 364 void InitializeDebugBindings(); |
| 363 void ClearBindings(); | 365 void ClearBindings(); |
| 364 | 366 |
| 365 ProcsWGL fn; | 367 ProcsWGL fn; |
| 366 ProcsWGL debug_fn; | 368 ProcsWGL debug_fn; |
| 367 ExtensionsWGL ext; | 369 ExtensionsWGL ext; |
| 368 | 370 |
| 369 private: | 371 private: |
| 370 static std::string GetPlatformExtensions(); | 372 static std::string GetPlatformExtensions(); |
| 371 }; | 373 }; |
| 372 #endif | 374 #endif |
| 373 | 375 |
| 374 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZ
ONE) | 376 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZ
ONE) |
| 375 struct GL_EXPORT DriverEGL { | 377 struct GL_EXPORT DriverEGL { |
| 376 void InitializeStaticBindings(); | 378 void InitializeStaticBindings(); |
| 379 void InitializeExtensionBindings(); |
| 377 void InitializeDebugBindings(); | 380 void InitializeDebugBindings(); |
| 378 void ClearBindings(); | 381 void ClearBindings(); |
| 379 | 382 |
| 380 ProcsEGL fn; | 383 ProcsEGL fn; |
| 381 ProcsEGL debug_fn; | 384 ProcsEGL debug_fn; |
| 382 ExtensionsEGL ext; | 385 ExtensionsEGL ext; |
| 383 | 386 |
| 384 static std::string GetPlatformExtensions(); | 387 static std::string GetPlatformExtensions(); |
| 385 static std::string GetClientExtensions(); | 388 static std::string GetClientExtensions(); |
| 386 }; | 389 }; |
| 387 #endif | 390 #endif |
| 388 | 391 |
| 389 #if defined(USE_X11) | 392 #if defined(USE_X11) |
| 390 struct GL_EXPORT DriverGLX { | 393 struct GL_EXPORT DriverGLX { |
| 391 void InitializeStaticBindings(); | 394 void InitializeStaticBindings(); |
| 395 void InitializeExtensionBindings(); |
| 392 void InitializeDebugBindings(); | 396 void InitializeDebugBindings(); |
| 393 void ClearBindings(); | 397 void ClearBindings(); |
| 394 | 398 |
| 395 ProcsGLX fn; | 399 ProcsGLX fn; |
| 396 ProcsGLX debug_fn; | 400 ProcsGLX debug_fn; |
| 397 ExtensionsGLX ext; | 401 ExtensionsGLX ext; |
| 398 | 402 |
| 399 private: | 403 private: |
| 400 static std::string GetPlatformExtensions(); | 404 static std::string GetPlatformExtensions(); |
| 401 }; | 405 }; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 431 #elif defined(OS_ANDROID) | 435 #elif defined(OS_ANDROID) |
| 432 | 436 |
| 433 GL_EXPORT extern EGLApi* g_current_egl_context; | 437 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 434 GL_EXPORT extern DriverEGL g_driver_egl; | 438 GL_EXPORT extern DriverEGL g_driver_egl; |
| 435 | 439 |
| 436 #endif | 440 #endif |
| 437 | 441 |
| 438 } // namespace gfx | 442 } // namespace gfx |
| 439 | 443 |
| 440 #endif // UI_GL_GL_BINDINGS_H_ | 444 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |