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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 #define GL_CONTEXT_ROBUST_ACCESS_KHR 0x90F3 | 328 #define GL_CONTEXT_ROBUST_ACCESS_KHR 0x90F3 |
329 #define GL_LOSE_CONTEXT_ON_RESET_KHR 0x8252 | 329 #define GL_LOSE_CONTEXT_ON_RESET_KHR 0x8252 |
330 #define GL_GUILTY_CONTEXT_RESET_KHR 0x8253 | 330 #define GL_GUILTY_CONTEXT_RESET_KHR 0x8253 |
331 #define GL_INNOCENT_CONTEXT_RESET_KHR 0x8254 | 331 #define GL_INNOCENT_CONTEXT_RESET_KHR 0x8254 |
332 #define GL_UNKNOWN_CONTEXT_RESET_KHR 0x8255 | 332 #define GL_UNKNOWN_CONTEXT_RESET_KHR 0x8255 |
333 #define GL_RESET_NOTIFICATION_STRATEGY_KHR 0x8256 | 333 #define GL_RESET_NOTIFICATION_STRATEGY_KHR 0x8256 |
334 #define GL_NO_RESET_NOTIFICATION_KHR 0x8261 | 334 #define GL_NO_RESET_NOTIFICATION_KHR 0x8261 |
335 #define GL_CONTEXT_LOST_KHR 0x0507 | 335 #define GL_CONTEXT_LOST_KHR 0x0507 |
336 #endif /* GL_KHR_robustness */ | 336 #endif /* GL_KHR_robustness */ |
337 | 337 |
| 338 #ifndef GL_EXT_texture_norm16 |
| 339 #define GL_EXT_texture_norm16 1 |
| 340 #define GL_R16_EXT 0x822A |
| 341 #define GL_RG16_EXT 0x822C |
| 342 #define GL_RGBA16_EXT 0x805B |
| 343 #define GL_RGB16_EXT 0x8054 |
| 344 #define GL_RGB16_SNORM_EXT 0x8F9A |
| 345 #endif /* GL_EXT_texture_norm16 */ |
| 346 |
338 #ifndef GL_EXT_texture_rg | 347 #ifndef GL_EXT_texture_rg |
339 #define GL_EXT_texture_rg 1 | 348 #define GL_EXT_texture_rg 1 |
340 #define GL_RED_EXT 0x1903 | 349 #define GL_RED_EXT 0x1903 |
341 #define GL_RG_EXT 0x8227 | 350 #define GL_RG_EXT 0x8227 |
342 #define GL_R8_EXT 0x8229 | 351 #define GL_R8_EXT 0x8229 |
343 #define GL_RG8_EXT 0x822B | 352 #define GL_RG8_EXT 0x822B |
344 #endif /* GL_EXT_texture_rg */ | 353 #endif /* GL_EXT_texture_rg */ |
345 | 354 |
346 // This is from NV_path_rendering, but the Mesa GL header is not up to date with | 355 // This is from NV_path_rendering, but the Mesa GL header is not up to date with |
347 // the most recent | 356 // the most recent |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 #endif | 503 #endif |
495 | 504 |
496 #if defined(USE_GLX) | 505 #if defined(USE_GLX) |
497 GL_EXPORT extern GLXApi* g_current_glx_context; | 506 GL_EXPORT extern GLXApi* g_current_glx_context; |
498 GL_EXPORT extern DriverGLX g_driver_glx; | 507 GL_EXPORT extern DriverGLX g_driver_glx; |
499 #endif | 508 #endif |
500 | 509 |
501 } // namespace gl | 510 } // namespace gl |
502 | 511 |
503 #endif // UI_GL_GL_BINDINGS_H_ | 512 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |