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

Unified Diff: third_party/khronos/EGL/eglplatform.h

Issue 9160012: Change PluginWindowHandle to AcceleratedWidget in ui/gfx/gl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops mac Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/demos/framework/window_win.cc ('k') | third_party/khronos/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/khronos/EGL/eglplatform.h
diff --git a/third_party/khronos/EGL/eglplatform.h b/third_party/khronos/EGL/eglplatform.h
index b97ffe5f579fbf77fe662069faccdfb3a2cb7a0b..8e9ed43884866b5fff7c09f8a7ea303934465a8d 100644
--- a/third_party/khronos/EGL/eglplatform.h
+++ b/third_party/khronos/EGL/eglplatform.h
@@ -94,11 +94,16 @@ typedef Pixmap EGLNativePixmapType;
typedef Window EGLNativeWindowType;
#elif defined(__APPLE__)
+#ifdef __OBJC__
+@class NSView;
+#else
+struct NSView;
+#endif // __OBJC__
// TODO(gman): these are place holders.
-typedef void *EGLNativeDisplayType;
-typedef int EGLNativePixmapType;
-typedef int EGLNativeWindowType;
+typedef void *EGLNativeDisplayType;
+typedef int EGLNativePixmapType;
+typedef struct NSView *EGLNativeWindowType;
#else
#error "Platform not recognized"
« no previous file with comments | « gpu/demos/framework/window_win.cc ('k') | third_party/khronos/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698