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 |
11 // liable to cause conflicts. | 11 // liable to cause conflicts. |
12 | 12 |
13 // GL headers may include inttypes.h and so we need to ensure that | |
Mark Dittmer
2016/04/18 18:03:03
piman@, agl@ helped me debug this issue [1] and re
| |
14 // __STDC_FORMAT_MACROS is defined in order for //base/format_macros.h to | |
15 // function correctly. See comment and #error message in //base/format_macros.h | |
16 // for details. | |
17 #if defined(OS_POSIX) && !defined(__STDC_FORMAT_MACROS) | |
18 #define __STDC_FORMAT_MACROS | |
19 #endif | |
20 | |
13 #include <GL/gl.h> | 21 #include <GL/gl.h> |
14 #include <GL/glext.h> | 22 #include <GL/glext.h> |
15 #include <EGL/egl.h> | 23 #include <EGL/egl.h> |
16 #include <EGL/eglext.h> | 24 #include <EGL/eglext.h> |
17 #include <stdint.h> | 25 #include <stdint.h> |
18 | 26 |
19 #include <string> | 27 #include <string> |
20 | 28 |
21 #include "base/logging.h" | 29 #include "base/logging.h" |
22 #include "base/threading/thread_local.h" | 30 #include "base/threading/thread_local.h" |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
498 #elif defined(OS_ANDROID) | 506 #elif defined(OS_ANDROID) |
499 | 507 |
500 GL_EXPORT extern EGLApi* g_current_egl_context; | 508 GL_EXPORT extern EGLApi* g_current_egl_context; |
501 GL_EXPORT extern DriverEGL g_driver_egl; | 509 GL_EXPORT extern DriverEGL g_driver_egl; |
502 | 510 |
503 #endif | 511 #endif |
504 | 512 |
505 } // namespace gfx | 513 } // namespace gfx |
506 | 514 |
507 #endif // UI_GL_GL_BINDINGS_H_ | 515 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |