| 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 #ifndef GL_EXT_blend_func_extended | 348 #ifndef GL_EXT_blend_func_extended |
| 349 #define GL_EXT_blend_func_extended 1 | 349 #define GL_EXT_blend_func_extended 1 |
| 350 #define GL_SRC_ALPHA_SATURATE_EXT 0x0308 | 350 #define GL_SRC_ALPHA_SATURATE_EXT 0x0308 |
| 351 #define GL_SRC1_ALPHA_EXT 0x8589 // OpenGL 1.5 token value | 351 #define GL_SRC1_ALPHA_EXT 0x8589 // OpenGL 1.5 token value |
| 352 #define GL_SRC1_COLOR_EXT 0x88F9 | 352 #define GL_SRC1_COLOR_EXT 0x88F9 |
| 353 #define GL_ONE_MINUS_SRC1_COLOR_EXT 0x88FA | 353 #define GL_ONE_MINUS_SRC1_COLOR_EXT 0x88FA |
| 354 #define GL_ONE_MINUS_SRC1_ALPHA_EXT 0x88FB | 354 #define GL_ONE_MINUS_SRC1_ALPHA_EXT 0x88FB |
| 355 #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXT 0x88FC | 355 #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXT 0x88FC |
| 356 #endif /* GL_EXT_blend_func_extended */ | 356 #endif /* GL_EXT_blend_func_extended */ |
| 357 | 357 |
| 358 #ifndef GL_DEFAULT_POWER_CHROMIUM |
| 359 #define GL_DEFAULT_POWER_CHROMIUM 0x924B |
| 360 #endif |
| 361 #ifndef GL_LOW_POWER_CHROMIUM |
| 362 #define GL_LOW_POWER_CHROMIUM 0x924C |
| 363 #endif |
| 364 #ifndef GL_HIGH_PERFORMANCE_CHROMIUM |
| 365 #define GL_HIGH_PERFORMANCE_CHROMIUM 0x924D |
| 366 #endif |
| 367 |
| 358 #define GL_GLEXT_PROTOTYPES 1 | 368 #define GL_GLEXT_PROTOTYPES 1 |
| 359 | 369 |
| 360 #if defined(OS_WIN) | 370 #if defined(OS_WIN) |
| 361 #define GL_BINDING_CALL WINAPI | 371 #define GL_BINDING_CALL WINAPI |
| 362 #else | 372 #else |
| 363 #define GL_BINDING_CALL | 373 #define GL_BINDING_CALL |
| 364 #endif | 374 #endif |
| 365 | 375 |
| 366 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; | 376 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; |
| 367 #if defined(NDEBUG) | 377 #if defined(NDEBUG) |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 #endif | 506 #endif |
| 497 | 507 |
| 498 #if defined(USE_GLX) | 508 #if defined(USE_GLX) |
| 499 GL_EXPORT extern GLXApi* g_current_glx_context; | 509 GL_EXPORT extern GLXApi* g_current_glx_context; |
| 500 GL_EXPORT extern DriverGLX g_driver_glx; | 510 GL_EXPORT extern DriverGLX g_driver_glx; |
| 501 #endif | 511 #endif |
| 502 | 512 |
| 503 } // namespace gl | 513 } // namespace gl |
| 504 | 514 |
| 505 #endif // UI_GL_GL_BINDINGS_H_ | 515 #endif // UI_GL_GL_BINDINGS_H_ |
| OLD | NEW |