| 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 #include <stdint.h> | |
| 9 | |
| 10 #include <string> | |
| 11 | |
| 12 // Includes the platform independent and platform dependent GL headers. | 8 // Includes the platform independent and platform dependent GL headers. |
| 13 // 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 |
| 14 // 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 |
| 15 // liable to cause conflicts. | 11 // liable to cause conflicts. |
| 16 | 12 |
| 17 #include <GL/gl.h> | 13 #include <GL/gl.h> |
| 18 #include <GL/glext.h> | 14 #include <GL/glext.h> |
| 19 #include <EGL/egl.h> | 15 #include <EGL/egl.h> |
| 20 #include <EGL/eglext.h> | 16 #include <EGL/eglext.h> |
| 17 #include <stdint.h> |
| 18 |
| 19 #include <string> |
| 21 | 20 |
| 22 #include "base/logging.h" | 21 #include "base/logging.h" |
| 23 #include "base/threading/thread_local.h" | 22 #include "base/threading/thread_local.h" |
| 24 #include "build/build_config.h" | 23 #include "build/build_config.h" |
| 25 #include "ui/gl/gl_export.h" | 24 #include "ui/gl/gl_export.h" |
| 26 | 25 |
| 27 // The standard OpenGL native extension headers are also included. | 26 // The standard OpenGL native extension headers are also included. |
| 28 #if defined(OS_WIN) | 27 #if defined(OS_WIN) |
| 29 #include <GL/wglext.h> | 28 #include <GL/wglext.h> |
| 30 #elif defined(OS_MACOSX) | 29 #elif defined(OS_MACOSX) |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 #elif defined(OS_ANDROID) | 501 #elif defined(OS_ANDROID) |
| 503 | 502 |
| 504 GL_EXPORT extern EGLApi* g_current_egl_context; | 503 GL_EXPORT extern EGLApi* g_current_egl_context; |
| 505 GL_EXPORT extern DriverEGL g_driver_egl; | 504 GL_EXPORT extern DriverEGL g_driver_egl; |
| 506 | 505 |
| 507 #endif | 506 #endif |
| 508 | 507 |
| 509 } // namespace gfx | 508 } // namespace gfx |
| 510 | 509 |
| 511 #endif // UI_GL_GL_BINDINGS_H_ | 510 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |