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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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: | 389 private: |
390 friend class RealEGLApi; | |
no sievers
2015/06/08 22:26:35
I think you should just make the functions public
David Yen
2015/06/09 20:43:15
Done.
| |
390 static std::string GetPlatformExtensions(); | 391 static std::string GetPlatformExtensions(); |
391 static std::string GetClientExtensions(); | 392 static std::string GetClientExtensions(); |
392 }; | 393 }; |
393 #endif | 394 #endif |
394 | 395 |
395 #if defined(USE_X11) | 396 #if defined(USE_X11) |
396 struct GL_EXPORT DriverGLX { | 397 struct GL_EXPORT DriverGLX { |
397 void InitializeStaticBindings(); | 398 void InitializeStaticBindings(); |
398 void InitializeDebugBindings(); | 399 void InitializeDebugBindings(); |
399 void ClearBindings(); | 400 void ClearBindings(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
437 #elif defined(OS_ANDROID) | 438 #elif defined(OS_ANDROID) |
438 | 439 |
439 GL_EXPORT extern EGLApi* g_current_egl_context; | 440 GL_EXPORT extern EGLApi* g_current_egl_context; |
440 GL_EXPORT extern DriverEGL g_driver_egl; | 441 GL_EXPORT extern DriverEGL g_driver_egl; |
441 | 442 |
442 #endif | 443 #endif |
443 | 444 |
444 } // namespace gfx | 445 } // namespace gfx |
445 | 446 |
446 #endif // UI_GL_GL_BINDINGS_H_ | 447 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |