| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Includes the platform independent and platform dependent GL headers. | 5 // Includes the platform independent and platform dependent GL headers. |
| 6 // Only include this in cc files. It pulls in system headers, including | 6 // Only include this in cc files. It pulls in system headers, including |
| 7 // the X11 headers on linux, which define all kinds of macros that are | 7 // the X11 headers on linux, which define all kinds of macros that are |
| 8 // liable to cause conflicts. | 8 // liable to cause conflicts. |
| 9 | 9 |
| 10 #ifndef UI_GFX_GL_GL_BINDINGS_H_ | 10 #ifndef UI_GFX_GL_GL_BINDINGS_H_ |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 #include "gl_bindings_autogen_gl.h" | 84 #include "gl_bindings_autogen_gl.h" |
| 85 #include "gl_bindings_autogen_osmesa.h" | 85 #include "gl_bindings_autogen_osmesa.h" |
| 86 | 86 |
| 87 #if defined(OS_WIN) | 87 #if defined(OS_WIN) |
| 88 #include "gl_bindings_autogen_egl.h" | 88 #include "gl_bindings_autogen_egl.h" |
| 89 #include "gl_bindings_autogen_wgl.h" | 89 #include "gl_bindings_autogen_wgl.h" |
| 90 #elif defined(USE_X11) | 90 #elif defined(USE_X11) |
| 91 #include "gl_bindings_autogen_egl.h" | 91 #include "gl_bindings_autogen_egl.h" |
| 92 #include "gl_bindings_autogen_glx.h" | 92 #include "gl_bindings_autogen_glx.h" |
| 93 #elif defined(OS_ANDROID) |
| 94 #include "gl_bindings_autogen_egl.h" |
| 93 #endif | 95 #endif |
| 94 | 96 |
| 95 namespace gfx { | 97 namespace gfx { |
| 96 | 98 |
| 97 // Find an entry point to the mock GL implementation. | 99 // Find an entry point to the mock GL implementation. |
| 98 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); | 100 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); |
| 99 | 101 |
| 100 } // namespace gfx | 102 } // namespace gfx |
| 101 | 103 |
| 102 #endif // UI_GFX_GL_GL_BINDINGS_H_ | 104 #endif // UI_GFX_GL_GL_BINDINGS_H_ |
| OLD | NEW |