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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 #define GL_ALPHA8_EXT 0x803C | 93 #define GL_ALPHA8_EXT 0x803C |
94 #define GL_LUMINANCE8_EXT 0x8040 | 94 #define GL_LUMINANCE8_EXT 0x8040 |
95 #define GL_LUMINANCE8_ALPHA8_EXT 0x8045 | 95 #define GL_LUMINANCE8_ALPHA8_EXT 0x8045 |
96 #define GL_RGBA32F_EXT 0x8814 | 96 #define GL_RGBA32F_EXT 0x8814 |
97 #define GL_RGB32F_EXT 0x8815 | 97 #define GL_RGB32F_EXT 0x8815 |
98 #define GL_ALPHA32F_EXT 0x8816 | 98 #define GL_ALPHA32F_EXT 0x8816 |
99 #define GL_LUMINANCE32F_EXT 0x8818 | 99 #define GL_LUMINANCE32F_EXT 0x8818 |
100 #define GL_LUMINANCE_ALPHA32F_EXT 0x8819 | 100 #define GL_LUMINANCE_ALPHA32F_EXT 0x8819 |
101 #define GL_RGBA16F_EXT 0x881A | 101 #define GL_RGBA16F_EXT 0x881A |
102 #define GL_RGB16F_EXT 0x881B | 102 #define GL_RGB16F_EXT 0x881B |
| 103 #define GL_RG16F_EXT 0x822F |
| 104 #define GL_R16F_EXT 0x822D |
103 #define GL_ALPHA16F_EXT 0x881C | 105 #define GL_ALPHA16F_EXT 0x881C |
104 #define GL_LUMINANCE16F_EXT 0x881E | 106 #define GL_LUMINANCE16F_EXT 0x881E |
105 #define GL_LUMINANCE_ALPHA16F_EXT 0x881F | 107 #define GL_LUMINANCE_ALPHA16F_EXT 0x881F |
| 108 #define GL_R32F_EXT 0x822E |
| 109 #define GL_RG32F_EXT 0x8230 |
106 #define GL_BGRA8_EXT 0x93A1 | 110 #define GL_BGRA8_EXT 0x93A1 |
107 | 111 |
108 // GL_ANGLE_instanced_arrays | 112 // GL_ANGLE_instanced_arrays |
109 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 0x88FE | 113 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 0x88FE |
110 | 114 |
111 // GL_EXT_occlusion_query_boolean | 115 // GL_EXT_occlusion_query_boolean |
112 #define GL_ANY_SAMPLES_PASSED_EXT 0x8C2F | 116 #define GL_ANY_SAMPLES_PASSED_EXT 0x8C2F |
113 #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A | 117 #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A |
114 #define GL_CURRENT_QUERY_EXT 0x8865 | 118 #define GL_CURRENT_QUERY_EXT 0x8865 |
115 #define GL_QUERY_RESULT_EXT 0x8866 | 119 #define GL_QUERY_RESULT_EXT 0x8866 |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 #elif defined(OS_ANDROID) | 423 #elif defined(OS_ANDROID) |
420 | 424 |
421 GL_EXPORT extern EGLApi* g_current_egl_context; | 425 GL_EXPORT extern EGLApi* g_current_egl_context; |
422 GL_EXPORT extern DriverEGL g_driver_egl; | 426 GL_EXPORT extern DriverEGL g_driver_egl; |
423 | 427 |
424 #endif | 428 #endif |
425 | 429 |
426 } // namespace gfx | 430 } // namespace gfx |
427 | 431 |
428 #endif // UI_GL_GL_BINDINGS_H_ | 432 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |