summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormymax@amazon.com <mymax@amazon.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-19 20:13:16 +0000
committermymax@amazon.com <mymax@amazon.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-19 20:13:16 +0000
commit9511fddfee83830f3c0479b5dde791e87cecd9bd (patch)
treeadb9aac4e4270f9ade1951673bcec79353674724
parent3f53ae5cba1ea56b8c4ff93770503d3fcdaecacd (diff)
downloadsrc-9511fddfee83830f3c0479b5dde791e87cecd9bd.tar.gz
Adding typedefs for EGLNative*Type in eglplatform.h
BUG=238755 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/17452002 git-svn-id: svn://svn.chromium.org/chrome/trunk/deps/third_party/mesa@207256 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--include/EGL/eglplatform.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
index 17fdc61..28455fb 100644
--- a/include/EGL/eglplatform.h
+++ b/include/EGL/eglplatform.h
@@ -124,6 +124,19 @@ typedef Window EGLNativeWindowType;
#endif /* MESA_EGL_NO_X11_HEADERS */
+#elif defined(__APPLE__)
+
+// TODO(gman): these are place holders.
+typedef void *EGLNativeDisplayType;
+typedef int EGLNativePixmapType;
+#ifdef __OBJC__
+@class NSView;
+typedef NSView *EGLNativeWindowType;
+#else
+struct NSView;
+typedef struct NSView *EGLNativeWindowType;
+#endif // __OBJC__
+
#else
#error "Platform not recognized"
#endif