summaryrefslogtreecommitdiffstats
path: root/app/surface/accelerated_surface_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/surface/accelerated_surface_mac.h')
-rw-r--r--app/surface/accelerated_surface_mac.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/surface/accelerated_surface_mac.h b/app/surface/accelerated_surface_mac.h
index f01bbc7..d1fe311 100644
--- a/app/surface/accelerated_surface_mac.h
+++ b/app/surface/accelerated_surface_mac.h
@@ -6,7 +6,6 @@
#define APP_SURFACE_ACCELERATED_SURFACE_MAC_H_
#include <CoreFoundation/CoreFoundation.h>
-#include <OpenGL/OpenGL.h>
#include "app/surface/transport_dib.h"
#include "base/callback.h"
@@ -15,6 +14,13 @@
#include "gfx/rect.h"
#include "gfx/size.h"
+// Should not include GL headers in a header file. Forward declare these types
+// instead.
+typedef struct _CGLContextObject* CGLContextObj;
+typedef struct _CGLPBufferObject* CGLPBufferObj;
+typedef unsigned int GLenum;
+typedef unsigned int GLuint;
+
namespace gfx {
class Rect;
}