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 #include <string> | 8 #include <string> |
9 | 9 |
10 // Includes the platform independent and platform dependent GL headers. | 10 // Includes the platform independent and platform dependent GL headers. |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 | 324 |
325 // This is from NV_path_rendering, but the Mesa GL header is not up-to-date with | 325 // This is from NV_path_rendering, but the Mesa GL header is not up-to-date with |
326 // the most recent | 326 // the most recent |
327 // version of the extension. This definition could be removed once glext.h | 327 // version of the extension. This definition could be removed once glext.h |
328 // r27498 or later is | 328 // r27498 or later is |
329 // imported. | 329 // imported. |
330 #ifndef GL_FRAGMENT_INPUT_NV | 330 #ifndef GL_FRAGMENT_INPUT_NV |
331 #define GL_FRAGMENT_INPUT_NV 0x936D | 331 #define GL_FRAGMENT_INPUT_NV 0x936D |
332 #endif | 332 #endif |
333 | 333 |
| 334 #ifndef GL_EXT_blend_func_extended |
| 335 #define GL_EXT_blend_func_extended 1 |
| 336 #define GL_SRC_ALPHA_SATURATE_EXT 0x0308 |
| 337 #define GL_SRC1_ALPHA_EXT 0x8589 // OpenGL 1.5 token value |
| 338 #define GL_SRC1_COLOR_EXT 0x88F9 |
| 339 #define GL_ONE_MINUS_SRC1_COLOR_EXT 0x88FA |
| 340 #define GL_ONE_MINUS_SRC1_ALPHA_EXT 0x88FB |
| 341 #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXT 0x88FC |
| 342 #endif /* GL_EXT_blend_func_extended */ |
| 343 |
334 #define GL_GLEXT_PROTOTYPES 1 | 344 #define GL_GLEXT_PROTOTYPES 1 |
335 | 345 |
336 #if defined(OS_WIN) | 346 #if defined(OS_WIN) |
337 #define GL_BINDING_CALL WINAPI | 347 #define GL_BINDING_CALL WINAPI |
338 #else | 348 #else |
339 #define GL_BINDING_CALL | 349 #define GL_BINDING_CALL |
340 #endif | 350 #endif |
341 | 351 |
342 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; | 352 #define GL_SERVICE_LOG(args) DLOG(INFO) << args; |
343 #if defined(NDEBUG) | 353 #if defined(NDEBUG) |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 #elif defined(OS_ANDROID) | 492 #elif defined(OS_ANDROID) |
483 | 493 |
484 GL_EXPORT extern EGLApi* g_current_egl_context; | 494 GL_EXPORT extern EGLApi* g_current_egl_context; |
485 GL_EXPORT extern DriverEGL g_driver_egl; | 495 GL_EXPORT extern DriverEGL g_driver_egl; |
486 | 496 |
487 #endif | 497 #endif |
488 | 498 |
489 } // namespace gfx | 499 } // namespace gfx |
490 | 500 |
491 #endif // UI_GL_GL_BINDINGS_H_ | 501 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |