| 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 // Includes the platform independent and platform dependent GL headers. | 8 // Includes the platform independent and platform dependent GL headers. |
| 9 // Only include this in cc files. It pulls in system headers, including | 9 // Only include this in cc files. It pulls in system headers, including |
| 10 // the X11 headers on linux, which define all kinds of macros that are | 10 // the X11 headers on linux, which define all kinds of macros that are |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 #elif defined(OS_ANDROID) | 221 #elif defined(OS_ANDROID) |
| 222 #include "gl_bindings_autogen_egl.h" | 222 #include "gl_bindings_autogen_egl.h" |
| 223 #endif | 223 #endif |
| 224 | 224 |
| 225 namespace gfx { | 225 namespace gfx { |
| 226 | 226 |
| 227 struct GL_EXPORT DriverGL { | 227 struct GL_EXPORT DriverGL { |
| 228 void Initialize(); | 228 void Initialize(); |
| 229 void InitializeExtensions(GLContext* context); | 229 void InitializeExtensions(GLContext* context); |
| 230 void InitializeDebugBindings(); | 230 void InitializeDebugBindings(); |
| 231 void InitializeStubBindings(); |
| 231 void ClearBindings(); | 232 void ClearBindings(); |
| 232 void UpdateDebugExtensionBindings(); | 233 void UpdateDebugExtensionBindings(); |
| 233 | 234 |
| 234 ProcsGL fn; | 235 ProcsGL fn; |
| 235 ProcsGL orig_fn; | 236 ProcsGL orig_fn; |
| 236 ProcsGL debug_fn; | 237 ProcsGL debug_fn; |
| 237 ExtensionsGL ext; | 238 ExtensionsGL ext; |
| 238 | 239 |
| 239 private: | 240 private: |
| 240 void InitializeBindings(); | 241 void InitializeBindings(); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 GL_EXPORT extern DriverEGL g_driver_egl; | 329 GL_EXPORT extern DriverEGL g_driver_egl; |
| 329 | 330 |
| 330 #endif | 331 #endif |
| 331 | 332 |
| 332 // Find an entry point to the mock GL implementation. | 333 // Find an entry point to the mock GL implementation. |
| 333 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); | 334 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); |
| 334 | 335 |
| 335 } // namespace gfx | 336 } // namespace gfx |
| 336 | 337 |
| 337 #endif // UI_GL_GL_BINDINGS_H_ | 338 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |