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

Unified Diff: remoting/client/sys_opengl.h

Issue 2196493002: [Chromoting] Unit Tests for GlRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't draw when canvas is not set Created 4 years, 4 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 | « remoting/client/gl_renderer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/sys_opengl.h
diff --git a/remoting/client/sys_opengl.h b/remoting/client/sys_opengl.h
index 142f5d45291985be7a2476d1b329738ee07b9cbc..8a1c907df0e33b90767607e09e27c57e9b89c8e5 100644
--- a/remoting/client/sys_opengl.h
+++ b/remoting/client/sys_opengl.h
@@ -9,10 +9,16 @@
#if defined(OS_IOS)
#include <OpenGLES/ES3/gl.h>
-#elif defined(OS_ANDROID)
-#include <GLES3/gl3.h>
+#elif defined(OS_LINUX)
+#define GL_GLEXT_PROTOTYPES
+#include <GL/gl.h>
+#include <GL/glext.h>
+#elif defined(OS_MACOSX)
+#define GL_GLEXT_PROTOTYPES
+#include <OpenGL/gl.h>
+#include <OpenGL/glext.h>
#else
-#error OpenGL renderer not supported on this platform.
-#endif
+#include <GLES3/gl3.h>
+#endif // defined(OS_IOS)
#endif // REMOTING_CLIENT_SYS_OPENGL_H_
« no previous file with comments | « remoting/client/gl_renderer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698