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 30 matching lines...) Expand all Loading... |
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 InitializeGLBindings(GLImplementation implementation); | 45 GL_EXPORT bool InitializeGLBindings(GLImplementation implementation); |
46 | 46 |
47 // Initialize extension function bindings for a GL implementation. | 47 // Initialize extension function bindings for a GL implementation. |
48 GL_EXPORT bool InitializeGLExtensionBindings(GLImplementation implementation, | 48 GL_EXPORT bool InitializeGLExtensionBindings(GLImplementation implementation, |
49 GLContext* context); | 49 GLContext* context); |
50 | 50 |
51 // Initialize Debug logging wrappers for GL bindings. | |
52 void InitializeDebugGLBindings(); | |
53 | |
54 GL_EXPORT void ClearGLBindings(); | 51 GL_EXPORT void ClearGLBindings(); |
55 | 52 |
56 // Set the current GL implementation. | 53 // Set the current GL implementation. |
57 GL_EXPORT void SetGLImplementation(GLImplementation implementation); | 54 GL_EXPORT void SetGLImplementation(GLImplementation implementation); |
58 | 55 |
59 // Get the current GL implementation. | 56 // Get the current GL implementation. |
60 GL_EXPORT GLImplementation GetGLImplementation(); | 57 GL_EXPORT GLImplementation GetGLImplementation(); |
61 | 58 |
62 // Does the underlying GL support all features from Desktop GL 2.0 that were | 59 // Does the underlying GL support all features from Desktop GL 2.0 that were |
63 // removed from the ES 2.0 spec without requiring specific extension strings. | 60 // removed from the ES 2.0 spec without requiring specific extension strings. |
(...skipping 22 matching lines...) Expand all Loading... |
86 // Find an entry point in the current GL implementation. | 83 // Find an entry point in the current GL implementation. |
87 void* GetGLProcAddress(const char* name); | 84 void* GetGLProcAddress(const char* name); |
88 | 85 |
89 // Return information about the GL window system binding implementation (e.g., | 86 // Return information about the GL window system binding implementation (e.g., |
90 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. | 87 // EGL, GLX, WGL). Returns true if the information was retrieved successfully. |
91 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info); | 88 GL_EXPORT bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info); |
92 | 89 |
93 } // namespace gfx | 90 } // namespace gfx |
94 | 91 |
95 #endif // UI_GL_GL_IMPLEMENTATION_H_ | 92 #endif // UI_GL_GL_IMPLEMENTATION_H_ |
OLD | NEW |