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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #define GL_SERVICE_LOG_CODE_BLOCK(code) code | 46 #define GL_SERVICE_LOG_CODE_BLOCK(code) code |
47 #endif | 47 #endif |
48 | 48 |
49 // Forward declare OSMesa types. | 49 // Forward declare OSMesa types. |
50 typedef struct osmesa_context *OSMesaContext; | 50 typedef struct osmesa_context *OSMesaContext; |
51 typedef void (*OSMESAproc)(); | 51 typedef void (*OSMESAproc)(); |
52 | 52 |
53 #if !defined(OS_MACOSX) | 53 #if !defined(OS_MACOSX) |
54 | 54 |
55 // Forward declare EGL types. | 55 // Forward declare EGL types. |
| 56 typedef uint64 EGLTimeKHR; |
56 typedef unsigned int EGLBoolean; | 57 typedef unsigned int EGLBoolean; |
57 typedef unsigned int EGLenum; | 58 typedef unsigned int EGLenum; |
58 typedef int EGLint; | 59 typedef int EGLint; |
59 typedef void *EGLConfig; | 60 typedef void *EGLConfig; |
60 typedef void *EGLContext; | 61 typedef void *EGLContext; |
61 typedef void *EGLDisplay; | 62 typedef void *EGLDisplay; |
62 typedef void *EGLImageKHR; | 63 typedef void *EGLImageKHR; |
63 typedef void *EGLSurface; | 64 typedef void *EGLSurface; |
64 typedef void *EGLClientBuffer; | 65 typedef void *EGLClientBuffer; |
| 66 typedef void *EGLSyncKHR; |
65 typedef void (*__eglMustCastToProperFunctionPointerType)(void); | 67 typedef void (*__eglMustCastToProperFunctionPointerType)(void); |
66 typedef void* GLeglImageOES; | 68 typedef void* GLeglImageOES; |
67 | 69 |
68 #if defined(OS_WIN) | 70 #if defined(OS_WIN) |
69 typedef HDC EGLNativeDisplayType; | 71 typedef HDC EGLNativeDisplayType; |
70 typedef HBITMAP EGLNativePixmapType; | 72 typedef HBITMAP EGLNativePixmapType; |
71 typedef HWND EGLNativeWindowType; | 73 typedef HWND EGLNativeWindowType; |
72 #elif defined(OS_ANDROID) | 74 #elif defined(OS_ANDROID) |
73 typedef void *EGLNativeDisplayType; | 75 typedef void *EGLNativeDisplayType; |
74 typedef struct egl_native_pixmap_t *EGLNativePixmapType; | 76 typedef struct egl_native_pixmap_t *EGLNativePixmapType; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 GL_EXPORT extern DriverEGL g_driver_egl; | 123 GL_EXPORT extern DriverEGL g_driver_egl; |
122 | 124 |
123 #endif | 125 #endif |
124 | 126 |
125 // Find an entry point to the mock GL implementation. | 127 // Find an entry point to the mock GL implementation. |
126 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); | 128 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); |
127 | 129 |
128 } // namespace gfx | 130 } // namespace gfx |
129 | 131 |
130 #endif // UI_GL_GL_BINDINGS_H_ | 132 #endif // UI_GL_GL_BINDINGS_H_ |
OLD | NEW |