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

Unified Diff: mojo/public/c/include/MGL/mgl.h

Issue 2236083002: Move mojo/public/c/gpu/* to mojo/public/c/include. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: foo 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 | « mojo/public/c/include/KHR/khrplatform.h ('k') | mojo/public/c/include/MGL/mgl_echo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/include/MGL/mgl.h
diff --git a/mojo/public/c/gpu/MGL/mgl.h b/mojo/public/c/include/MGL/mgl.h
similarity index 90%
rename from mojo/public/c/gpu/MGL/mgl.h
rename to mojo/public/c/include/MGL/mgl.h
index da7d275d9e8b755fc80524f4a73742027d601dc7..5c6959890facafe1e5daf317f2bc5b191f41b886 100644
--- a/mojo/public/c/gpu/MGL/mgl.h
+++ b/mojo/public/c/include/MGL/mgl.h
@@ -4,17 +4,15 @@
// Note: This header should be compilable as C.
-#ifndef MOJO_PUBLIC_C_GPU_MGL_MGL_H_
-#define MOJO_PUBLIC_C_GPU_MGL_MGL_H_
+#ifndef MOJO_PUBLIC_C_INCLUDE_MGL_MGL_H_
+#define MOJO_PUBLIC_C_INCLUDE_MGL_MGL_H_
+#include <MGL/mgl_types.h>
+#include <mojo/macros.h>
#include <mojo/system/handle.h>
#include <stdint.h>
-#include "mojo/public/c/gpu/MGL/mgl_types.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
+MOJO_BEGIN_EXTERN_C
typedef uint32_t MGLOpenGLAPIVersion;
@@ -62,8 +60,6 @@ MGLContext MGLGetCurrentContext(void);
// |name| is the name of the GL function.
MGLMustCastToProperFunctionPointerType MGLGetProcAddress(const char* name);
-#ifdef __cplusplus
-} // extern "C"
-#endif
+MOJO_END_EXTERN_C
-#endif // MOJO_PUBLIC_C_GPU_MGL_MGL_H_
+#endif // MOJO_PUBLIC_C_INCLUDE_MGL_MGL_H_
« no previous file with comments | « mojo/public/c/include/KHR/khrplatform.h ('k') | mojo/public/c/include/MGL/mgl_echo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698