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

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

Issue 7981034: Compile gl/ and surface/ on Android. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 3 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 | « ui/gfx/gl/gl.gyp ('k') | ui/gfx/surface/surface.gyp » ('j') | 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 typedef void *EGLImageKHR; 58 typedef void *EGLImageKHR;
59 typedef void *EGLSurface; 59 typedef void *EGLSurface;
60 typedef void *EGLClientBuffer; 60 typedef void *EGLClientBuffer;
61 typedef void (*__eglMustCastToProperFunctionPointerType)(void); 61 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
62 typedef void* GLeglImageOES; 62 typedef void* GLeglImageOES;
63 63
64 #if defined(OS_WIN) 64 #if defined(OS_WIN)
65 typedef HDC EGLNativeDisplayType; 65 typedef HDC EGLNativeDisplayType;
66 typedef HBITMAP EGLNativePixmapType; 66 typedef HBITMAP EGLNativePixmapType;
67 typedef HWND EGLNativeWindowType; 67 typedef HWND EGLNativeWindowType;
68 #elif defined(OS_ANDROID)
69 typedef void *EGLNativeDisplayType;
70 typedef struct egl_native_pixmap_t *EGLNativePixmapType;
71 typedef struct ANativeWindow *EGLNativeWindowType;
68 #elif defined(USE_WAYLAND) 72 #elif defined(USE_WAYLAND)
69 typedef struct wl_display *EGLNativeDisplayType; 73 typedef struct wl_display *EGLNativeDisplayType;
70 typedef struct wl_egl_pixmap *EGLNativePixmapType; 74 typedef struct wl_egl_pixmap *EGLNativePixmapType;
71 typedef struct wl_egl_window *EGLNativeWindowType; 75 typedef struct wl_egl_window *EGLNativeWindowType;
72 #else 76 #else
73 typedef Display *EGLNativeDisplayType; 77 typedef Display *EGLNativeDisplayType;
74 typedef Pixmap EGLNativePixmapType; 78 typedef Pixmap EGLNativePixmapType;
75 typedef Window EGLNativeWindowType; 79 typedef Window EGLNativeWindowType;
76 #endif 80 #endif
77 81
(...skipping 11 matching lines...) Expand all
89 #endif 93 #endif
90 94
91 namespace gfx { 95 namespace gfx {
92 96
93 // Find an entry point to the mock GL implementation. 97 // Find an entry point to the mock GL implementation.
94 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name); 98 void* GL_BINDING_CALL GetMockGLProcAddress(const char* name);
95 99
96 } // namespace gfx 100 } // namespace gfx
97 101
98 #endif // UI_GFX_GL_GL_BINDINGS_H_ 102 #endif // UI_GFX_GL_GL_BINDINGS_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl.gyp ('k') | ui/gfx/surface/surface.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698