| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 #endif | 385 #endif |
| 386 | 386 |
| 387 #if defined(OS_WIN) | 387 #if defined(OS_WIN) |
| 388 #include "gl_bindings_autogen_wgl.h" | 388 #include "gl_bindings_autogen_wgl.h" |
| 389 #endif | 389 #endif |
| 390 | 390 |
| 391 #if defined(USE_GLX) | 391 #if defined(USE_GLX) |
| 392 #include "gl_bindings_autogen_glx.h" | 392 #include "gl_bindings_autogen_glx.h" |
| 393 #endif | 393 #endif |
| 394 | 394 |
| 395 namespace gfx { | 395 namespace gl { |
| 396 | 396 |
| 397 struct GL_EXPORT DriverGL { | 397 struct GL_EXPORT DriverGL { |
| 398 void InitializeStaticBindings(); | 398 void InitializeStaticBindings(); |
| 399 void InitializeCustomDynamicBindings(GLContext* context); | 399 void InitializeCustomDynamicBindings(GLContext* context); |
| 400 void InitializeDebugBindings(); | 400 void InitializeDebugBindings(); |
| 401 void InitializeNullDrawBindings(); | 401 void InitializeNullDrawBindings(); |
| 402 // TODO(danakj): Remove this when all test suites are using null-draw. | 402 // TODO(danakj): Remove this when all test suites are using null-draw. |
| 403 bool HasInitializedNullDrawBindings(); | 403 bool HasInitializedNullDrawBindings(); |
| 404 bool SetNullDrawBindingsEnabled(bool enabled); | 404 bool SetNullDrawBindingsEnabled(bool enabled); |
| 405 void ClearBindings(); | 405 void ClearBindings(); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 #if defined(OS_WIN) | 492 #if defined(OS_WIN) |
| 493 GL_EXPORT extern WGLApi* g_current_wgl_context; | 493 GL_EXPORT extern WGLApi* g_current_wgl_context; |
| 494 GL_EXPORT extern DriverWGL g_driver_wgl; | 494 GL_EXPORT extern DriverWGL g_driver_wgl; |
| 495 #endif | 495 #endif |
| 496 | 496 |
| 497 #if defined(USE_GLX) | 497 #if defined(USE_GLX) |
| 498 GL_EXPORT extern GLXApi* g_current_glx_context; | 498 GL_EXPORT extern GLXApi* g_current_glx_context; |
| 499 GL_EXPORT extern DriverGLX g_driver_glx; | 499 GL_EXPORT extern DriverGLX g_driver_glx; |
| 500 #endif | 500 #endif |
| 501 | 501 |
| 502 } // namespace gfx | 502 } // namespace gl |
| 503 | 503 |
| 504 #endif // UI_GL_GL_BINDINGS_H_ | 504 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |