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

Unified Diff: mojo/public/c/include/MGL/mgl_types.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/MGL/mgl_signal_sync_point.h ('k') | mojo/public/mojo_application.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/include/MGL/mgl_types.h
diff --git a/mojo/public/c/gpu/MGL/mgl_types.h b/mojo/public/c/include/MGL/mgl_types.h
similarity index 73%
rename from mojo/public/c/gpu/MGL/mgl_types.h
rename to mojo/public/c/include/MGL/mgl_types.h
index b28aee610b9a4b061bb5e2e7887765523ec92f03..a38e25475349828b331aa0d9f9c41e1db3101de6 100644
--- a/mojo/public/c/gpu/MGL/mgl_types.h
+++ b/mojo/public/c/include/MGL/mgl_types.h
@@ -4,12 +4,12 @@
// Note: This header should be compilable as C.
-#ifndef MOJO_PUBLIC_C_GPU_MGL_TYPES_H_
-#define MOJO_PUBLIC_C_GPU_MGL_TYPES_H_
+#ifndef MOJO_PUBLIC_C_INCLUDE_MGL_TYPES_H_
+#define MOJO_PUBLIC_C_INCLUDE_MGL_TYPES_H_
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <mojo/macros.h>
+
+MOJO_BEGIN_EXTERN_C
typedef struct MGLContextPrivate* MGLContext;
typedef void (*MGLContextLostCallback)(void* closure);
@@ -19,8 +19,6 @@ typedef void (*MGLSignalSyncPointCallback)(void* closure);
// type and calling convention before use.
typedef void (*MGLMustCastToProperFunctionPointerType)(void);
-#ifdef __cplusplus
-} // extern "C"
-#endif
+MOJO_END_EXTERN_C
-#endif // MOJO_PUBLIC_C_GPU_MGL_TYPES_H_
+#endif // MOJO_PUBLIC_C_INCLUDE_MGL_TYPES_H_
« no previous file with comments | « mojo/public/c/include/MGL/mgl_signal_sync_point.h ('k') | mojo/public/mojo_application.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698