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

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

Issue 11428140: gpu: Add async pixel transfer interface, stub and tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Fix lint. Created 8 years 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
« ui/gl/async_pixel_transfer_delegate_stub.cc ('K') | « ui/gl/gl.gyp ('k') | 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) 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
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
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_
OLDNEW
« ui/gl/async_pixel_transfer_delegate_stub.cc ('K') | « ui/gl/gl.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698