| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 namespace gfx { | 225 namespace gfx { |
| 226 | 226 |
| 227 struct GL_EXPORT DriverGL { | 227 struct GL_EXPORT DriverGL { |
| 228 DriverGL(); | 228 DriverGL(); |
| 229 | 229 |
| 230 void InitializeStaticBindings(); | 230 void InitializeStaticBindings(); |
| 231 void InitializeCustomDynamicBindings(GLContext* context); | 231 void InitializeCustomDynamicBindings(GLContext* context); |
| 232 void InitializeDebugBindings(); | 232 void InitializeDebugBindings(); |
| 233 void InitializeNullDrawBindings(); | 233 void InitializeNullDrawBindings(); |
| 234 bool SetNullDrawBindingsEnabled(bool enabled); |
| 234 void ClearBindings(); | 235 void ClearBindings(); |
| 235 | 236 |
| 236 ProcsGL fn; | 237 ProcsGL fn; |
| 237 ProcsGL orig_fn; | 238 ProcsGL orig_fn; |
| 238 ProcsGL debug_fn; | 239 ProcsGL debug_fn; |
| 239 ExtensionsGL ext; | 240 ExtensionsGL ext; |
| 241 bool null_draw_bindings_enabled; |
| 240 | 242 |
| 241 private: | 243 private: |
| 242 void InitializeDynamicBindings(GLContext* context); | 244 void InitializeDynamicBindings(GLContext* context); |
| 243 }; | 245 }; |
| 244 | 246 |
| 245 struct GL_EXPORT DriverOSMESA { | 247 struct GL_EXPORT DriverOSMESA { |
| 246 void InitializeStaticBindings(); | 248 void InitializeStaticBindings(); |
| 247 void InitializeDynamicBindings(GLContext* context); | 249 void InitializeDynamicBindings(GLContext* context); |
| 248 void InitializeDebugBindings(); | 250 void InitializeDebugBindings(); |
| 249 void ClearBindings(); | 251 void ClearBindings(); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 #elif defined(OS_ANDROID) | 324 #elif defined(OS_ANDROID) |
| 323 | 325 |
| 324 GL_EXPORT extern EGLApi* g_current_egl_context; | 326 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 325 GL_EXPORT extern DriverEGL g_driver_egl; | 327 GL_EXPORT extern DriverEGL g_driver_egl; |
| 326 | 328 |
| 327 #endif | 329 #endif |
| 328 | 330 |
| 329 } // namespace gfx | 331 } // namespace gfx |
| 330 | 332 |
| 331 #endif // UI_GL_GL_BINDINGS_H_ | 333 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |