| 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 29 matching lines...) Expand all Loading... |
| 40 #else | 40 #else |
| 41 typedef void* (*GLGetProcAddressProc)(const char* name); | 41 typedef void* (*GLGetProcAddressProc)(const char* name); |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 // Initialize a particular GL implementation. | 44 // Initialize a particular GL implementation. |
| 45 GL_EXPORT bool InitializeStaticGLBindings(GLImplementation implementation); | 45 GL_EXPORT bool InitializeStaticGLBindings(GLImplementation implementation); |
| 46 | 46 |
| 47 // Initialize function bindings that depend on the context for a GL | 47 // Initialize function bindings that depend on the context for a GL |
| 48 // implementation. | 48 // implementation. |
| 49 GL_EXPORT bool InitializeDynamicGLBindings(GLImplementation implementation, | 49 GL_EXPORT bool InitializeDynamicGLBindings(GLImplementation implementation, |
| 50 GLContext* context); | 50 GLContext* context); |
| 51 | 51 |
| 52 // Initialize Debug logging wrappers for GL bindings. | 52 // Initialize Debug logging wrappers for GL bindings. |
| 53 void InitializeDebugGLBindings(); | 53 void InitializeDebugGLBindings(); |
| 54 | 54 |
| 55 // Initialize stub methods for drawing operations in the GL bindings. | 55 // Initialize stub methods for drawing operations in the GL bindings. |
| 56 void InitializeNullDrawGLBindings(); | 56 void InitializeNullDrawGLBindings(); |
| 57 | 57 |
| 58 GL_EXPORT void ClearGLBindings(); | 58 GL_EXPORT void ClearGLBindings(); |
| 59 | 59 |
| 60 // Set the current GL implementation. | 60 // Set the current GL implementation. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // unsupported. | 92 // unsupported. |
| 93 void* GetGLProcAddress(const char* name); | 93 void* GetGLProcAddress(const char* name); |
| 94 | 94 |
| 95 // Return information about the GL window system binding implementation (e.g., | 95 // Return information about the GL window system binding implementation (e.g., |
| 96 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. | 96 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. |
| 97 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info); | 97 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info); |
| 98 | 98 |
| 99 } // namespace gfx | 99 } // namespace gfx |
| 100 | 100 |
| 101 #endif // UI_GL_GL_IMPLEMENTATION_H_ | 101 #endif // UI_GL_GL_IMPLEMENTATION_H_ |
| OLD | NEW |