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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 #define GL_CONTEXT_ROBUST_ACCESS_KHR 0x90F3 | 265 #define GL_CONTEXT_ROBUST_ACCESS_KHR 0x90F3 |
266 #define GL_LOSE_CONTEXT_ON_RESET_KHR 0x8252 | 266 #define GL_LOSE_CONTEXT_ON_RESET_KHR 0x8252 |
267 #define GL_GUILTY_CONTEXT_RESET_KHR 0x8253 | 267 #define GL_GUILTY_CONTEXT_RESET_KHR 0x8253 |
268 #define GL_INNOCENT_CONTEXT_RESET_KHR 0x8254 | 268 #define GL_INNOCENT_CONTEXT_RESET_KHR 0x8254 |
269 #define GL_UNKNOWN_CONTEXT_RESET_KHR 0x8255 | 269 #define GL_UNKNOWN_CONTEXT_RESET_KHR 0x8255 |
270 #define GL_RESET_NOTIFICATION_STRATEGY_KHR 0x8256 | 270 #define GL_RESET_NOTIFICATION_STRATEGY_KHR 0x8256 |
271 #define GL_NO_RESET_NOTIFICATION_KHR 0x8261 | 271 #define GL_NO_RESET_NOTIFICATION_KHR 0x8261 |
272 #define GL_CONTEXT_LOST_KHR 0x0507 | 272 #define GL_CONTEXT_LOST_KHR 0x0507 |
273 #endif /* GL_KHR_robustness */ | 273 #endif /* GL_KHR_robustness */ |
274 | 274 |
| 275 #ifndef GL_EXT_texture_rg |
| 276 #define GL_EXT_texture_rg 1 |
| 277 #define GL_RED_EXT 0x1903 |
| 278 #define GL_RG_EXT 0x8227 |
| 279 #define GL_R8_EXT 0x8229 |
| 280 #define GL_RG8_EXT 0x822B |
| 281 #endif /* GL_EXT_texture_rg */ |
| 282 |
275 #define GL_GLEXT_PROTOTYPES 1 | 283 #define GL_GLEXT_PROTOTYPES 1 |
276 | 284 |
277 #if defined(OS_WIN) | 285 #if defined(OS_WIN) |
278 #define GL_BINDING_CALL WINAPI | 286 #define GL_BINDING_CALL WINAPI |
279 #else | 287 #else |
280 #define GL_BINDING_CALL | 288 #define GL_BINDING_CALL |
281 #endif | 289 #endif |
282 | 290 |
283 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; | 291 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; |
284 #if defined(NDEBUG) | 292 #if defined(NDEBUG) |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 #elif defined(OS_ANDROID) | 419 #elif defined(OS_ANDROID) |
412 | 420 |
413 GL_EXPORT extern EGLApi* g_current_egl_context; | 421 GL_EXPORT extern EGLApi* g_current_egl_context; |
414 GL_EXPORT extern DriverEGL g_driver_egl; | 422 GL_EXPORT extern DriverEGL g_driver_egl; |
415 | 423 |
416 #endif | 424 #endif |
417 | 425 |
418 } // namespace gfx | 426 } // namespace gfx |
419 | 427 |
420 #endif // UI_GL_GL_BINDINGS_H_ | 428 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |