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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C | 206 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C |
207 #endif | 207 #endif |
208 | 208 |
209 #ifndef GL_IMG_multisampled_render_to_texture | 209 #ifndef GL_IMG_multisampled_render_to_texture |
210 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133 | 210 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133 |
211 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134 | 211 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134 |
212 #define GL_MAX_SAMPLES_IMG 0x9135 | 212 #define GL_MAX_SAMPLES_IMG 0x9135 |
213 #define GL_TEXTURE_SAMPLES_IMG 0x9136 | 213 #define GL_TEXTURE_SAMPLES_IMG 0x9136 |
214 #endif | 214 #endif |
215 | 215 |
| 216 #ifndef GL_CHROMIUM_path_rendering |
| 217 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6 |
| 218 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7 |
| 219 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700 |
| 220 #define GL_PATH_PROJECTION_CHROMIUM 0x1701 |
| 221 #endif |
| 222 |
216 #define GL_GLEXT_PROTOTYPES 1 | 223 #define GL_GLEXT_PROTOTYPES 1 |
217 | 224 |
218 #if defined(OS_WIN) | 225 #if defined(OS_WIN) |
219 #define GL_BINDING_CALL WINAPI | 226 #define GL_BINDING_CALL WINAPI |
220 #else | 227 #else |
221 #define GL_BINDING_CALL | 228 #define GL_BINDING_CALL |
222 #endif | 229 #endif |
223 | 230 |
224 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; | 231 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; |
225 #if defined(NDEBUG) | 232 #if defined(NDEBUG) |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 #elif defined(OS_ANDROID) | 359 #elif defined(OS_ANDROID) |
353 | 360 |
354 GL_EXPORT extern EGLApi* g_current_egl_context; | 361 GL_EXPORT extern EGLApi* g_current_egl_context; |
355 GL_EXPORT extern DriverEGL g_driver_egl; | 362 GL_EXPORT extern DriverEGL g_driver_egl; |
356 | 363 |
357 #endif | 364 #endif |
358 | 365 |
359 } // namespace gfx | 366 } // namespace gfx |
360 | 367 |
361 #endif // UI_GL_GL_BINDINGS_H_ | 368 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |