| 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_IMPLEMENTATION_H_ | 5 #ifndef UI_GL_GL_IMPLEMENTATION_H_ |
| 6 #define UI_GL_GL_IMPLEMENTATION_H_ | 6 #define UI_GL_GL_IMPLEMENTATION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 struct GL_EXPORT GLWindowSystemBindingInfo { | 30 struct GL_EXPORT GLWindowSystemBindingInfo { |
| 31 GLWindowSystemBindingInfo(); | 31 GLWindowSystemBindingInfo(); |
| 32 std::string vendor; | 32 std::string vendor; |
| 33 std::string version; | 33 std::string version; |
| 34 std::string extensions; | 34 std::string extensions; |
| 35 bool direct_rendering; | 35 bool direct_rendering; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 void GetAllowedGLImplementations(std::vector<GLImplementation>* impls); | 38 void GetAllowedGLImplementations(std::vector<GLImplementation>* impls); |
| 39 | 39 |
| 40 #if defined(OS_WIN) | |
| 41 typedef void* (WINAPI *GLGetProcAddressProc)(const char* name); | |
| 42 #else | |
| 43 typedef void* (*GLGetProcAddressProc)(const char* name); | 40 typedef void* (*GLGetProcAddressProc)(const char* name); |
| 44 #endif | |
| 45 | 41 |
| 46 // Initialize a particular GL implementation. | 42 // Initialize a particular GL implementation. |
| 47 GL_EXPORT bool InitializeStaticGLBindings(GLImplementation implementation); | 43 GL_EXPORT bool InitializeStaticGLBindings(GLImplementation implementation); |
| 48 | 44 |
| 49 // Initialize function bindings that depend on the context for a GL | 45 // Initialize function bindings that depend on the context for a GL |
| 50 // implementation. | 46 // implementation. |
| 51 GL_EXPORT bool InitializeDynamicGLBindings(GLImplementation implementation, | 47 GL_EXPORT bool InitializeDynamicGLBindings(GLImplementation implementation, |
| 52 GLContext* context); | 48 GLContext* context); |
| 53 | 49 |
| 54 // Initialize Debug logging wrappers for GL bindings. | 50 // Initialize Debug logging wrappers for GL bindings. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // unsupported. | 105 // unsupported. |
| 110 void* GetGLProcAddress(const char* name); | 106 void* GetGLProcAddress(const char* name); |
| 111 | 107 |
| 112 // Return information about the GL window system binding implementation (e.g., | 108 // Return information about the GL window system binding implementation (e.g., |
| 113 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. | 109 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. |
| 114 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info); | 110 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info); |
| 115 | 111 |
| 116 } // namespace gfx | 112 } // namespace gfx |
| 117 | 113 |
| 118 #endif // UI_GL_GL_IMPLEMENTATION_H_ | 114 #endif // UI_GL_GL_IMPLEMENTATION_H_ |
| OLD | NEW |