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

Side by Side Diff: third_party/khronos/EGL/eglplatform.h

Issue 23438002: Adding functionality to paint and signal buffer swap for ozone surface factory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing call to SchedulePageFlip in gl_surface_egl Created 7 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
OLDNEW
1 #ifndef __eglplatform_h_ 1 #ifndef __eglplatform_h_
2 #define __eglplatform_h_ 2 #define __eglplatform_h_
3 3
4 /* 4 /*
5 ** Copyright (c) 2007-2009 The Khronos Group Inc. 5 ** Copyright (c) 2007-2009 The Khronos Group Inc.
6 ** 6 **
7 ** Permission is hereby granted, free of charge, to any person obtaining a 7 ** Permission is hereby granted, free of charge, to any person obtaining a
8 ** copy of this software and/or associated documentation files (the 8 ** copy of this software and/or associated documentation files (the
9 ** "Materials"), to deal in the Materials without restriction, including 9 ** "Materials"), to deal in the Materials without restriction, including
10 ** without limitation the rights to use, copy, modify, merge, publish, 10 ** without limitation the rights to use, copy, modify, merge, publish,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 #include <android/native_window.h> 89 #include <android/native_window.h>
90 90
91 struct egl_native_pixmap_t; 91 struct egl_native_pixmap_t;
92 92
93 typedef struct ANativeWindow* EGLNativeWindowType; 93 typedef struct ANativeWindow* EGLNativeWindowType;
94 typedef struct egl_native_pixmap_t* EGLNativePixmapType; 94 typedef struct egl_native_pixmap_t* EGLNativePixmapType;
95 typedef void* EGLNativeDisplayType; 95 typedef void* EGLNativeDisplayType;
96 96
97 #elif defined(USE_OZONE) 97 #elif defined(USE_OZONE)
98 98
99 typedef int EGLNativeDisplayType; 99 typedef intptr_t EGLNativeDisplayType;
Nico 2016/10/10 16:58:03 why is this intptr_t instead of void*? The typedef
100 typedef intptr_t EGLNativeWindowType; 100 typedef intptr_t EGLNativeWindowType;
101 typedef intptr_t EGLNativePixmapType; 101 typedef intptr_t EGLNativePixmapType;
102 102
103 #elif defined(__unix__) 103 #elif defined(__unix__)
104 104
105 /* X11 (tentative) */ 105 /* X11 (tentative) */
106 #include <X11/Xlib.h> 106 #include <X11/Xlib.h>
107 #include <X11/Xutil.h> 107 #include <X11/Xutil.h>
108 108
109 typedef Display *EGLNativeDisplayType; 109 typedef Display *EGLNativeDisplayType;
(...skipping 26 matching lines...) Expand all
136 /* Define EGLint. This must be a signed integral type large enough to contain 136 /* Define EGLint. This must be a signed integral type large enough to contain
137 * all legal attribute names and values passed into and out of EGL, whether 137 * all legal attribute names and values passed into and out of EGL, whether
138 * their type is boolean, bitmask, enumerant (symbolic constant), integer, 138 * their type is boolean, bitmask, enumerant (symbolic constant), integer,
139 * handle, or other. While in general a 32-bit integer will suffice, if 139 * handle, or other. While in general a 32-bit integer will suffice, if
140 * handles are 64 bit types, then EGLint should be defined as a signed 64-bit 140 * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
141 * integer type. 141 * integer type.
142 */ 142 */
143 typedef khronos_int32_t EGLint; 143 typedef khronos_int32_t EGLint;
144 144
145 #endif /* __eglplatform_h */ 145 #endif /* __eglplatform_h */
OLDNEW
« no previous file with comments | « no previous file | ui/base/ozone/event_factory_ozone.cc » ('j') | ui/base/ozone/surface_factory_ozone.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698