Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: ui/gfx/gl/gl_bindings.h

Issue 10050005: Mac: define GLeglImageOES type. Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Includes the platform independent and platform dependent GL headers. 5 // Includes the platform independent and platform dependent GL headers.
6 // Only include this in cc files. It pulls in system headers, including 6 // Only include this in cc files. It pulls in system headers, including
7 // the X11 headers on linux, which define all kinds of macros that are 7 // the X11 headers on linux, which define all kinds of macros that are
8 // liable to cause conflicts. 8 // liable to cause conflicts.
9 9
10 #ifndef UI_GFX_GL_GL_BINDINGS_H_ 10 #ifndef UI_GFX_GL_GL_BINDINGS_H_
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #if !defined(NDEBUG) 44 #if !defined(NDEBUG)
45 #define GL_SERVICE_LOG_CODE_BLOCK(code) 45 #define GL_SERVICE_LOG_CODE_BLOCK(code)
46 #else 46 #else
47 #define GL_SERVICE_LOG_CODE_BLOCK(code) code 47 #define GL_SERVICE_LOG_CODE_BLOCK(code) code
48 #endif 48 #endif
49 49
50 // Forward declare OSMesa types. 50 // Forward declare OSMesa types.
51 typedef struct osmesa_context *OSMesaContext; 51 typedef struct osmesa_context *OSMesaContext;
52 typedef void (*OSMESAproc)(); 52 typedef void (*OSMESAproc)();
53 53
54 typedef void* GLeglImageOES;
55
54 #if !defined(OS_MACOSX) 56 #if !defined(OS_MACOSX)
55 57
56 // Forward declare EGL types. 58 // Forward declare EGL types.
57 typedef unsigned int EGLBoolean; 59 typedef unsigned int EGLBoolean;
58 typedef unsigned int EGLenum; 60 typedef unsigned int EGLenum;
59 typedef int EGLint; 61 typedef int EGLint;
60 typedef void *EGLConfig; 62 typedef void *EGLConfig;
61 typedef void *EGLContext; 63 typedef void *EGLContext;
62 typedef void *EGLDisplay; 64 typedef void *EGLDisplay;
63 typedef void *EGLImageKHR; 65 typedef void *EGLImageKHR;
64 typedef void *EGLSurface; 66 typedef void *EGLSurface;
65 typedef void *EGLClientBuffer; 67 typedef void *EGLClientBuffer;
66 typedef void (*__eglMustCastToProperFunctionPointerType)(void); 68 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
67 typedef void* GLeglImageOES;
68 69
69 #if defined(OS_WIN) 70 #if defined(OS_WIN)
70 typedef HDC EGLNativeDisplayType; 71 typedef HDC EGLNativeDisplayType;
71 typedef HBITMAP EGLNativePixmapType; 72 typedef HBITMAP EGLNativePixmapType;
72 typedef HWND EGLNativeWindowType; 73 typedef HWND EGLNativeWindowType;
73 #elif defined(OS_ANDROID) 74 #elif defined(OS_ANDROID)
74 typedef void *EGLNativeDisplayType; 75 typedef void *EGLNativeDisplayType;
75 typedef struct egl_native_pixmap_t *EGLNativePixmapType; 76 typedef struct egl_native_pixmap_t *EGLNativePixmapType;
76 typedef struct ANativeWindow *EGLNativeWindowType; 77 typedef struct ANativeWindow *EGLNativeWindowType;
77 #elif defined(USE_WAYLAND) 78 #elif defined(USE_WAYLAND)
(...skipping 22 matching lines...) Expand all
100 #endif 101 #endif
101 102
102 namespace gfx { 103 namespace gfx {
103 104
104 // Find an entry point to the mock GL implementation. 105 // Find an entry point to the mock GL implementation.
105 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); 106 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name);
106 107
107 } // namespace gfx 108 } // namespace gfx
108 109
109 #endif // UI_GFX_GL_GL_BINDINGS_H_ 110 #endif // UI_GFX_GL_GL_BINDINGS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698