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

Unified Diff: mojo/public/c/gpu/MGL/mgl_types.h

Issue 1288583002: Add MGL entry points and port spinning_cube to use them (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix android build Created 5 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
Index: mojo/public/c/gpu/MGL/mgl_types.h
diff --git a/mojo/public/c/gpu/MGL/mgl_types.h b/mojo/public/c/gpu/MGL/mgl_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..b04bd8470a800563144ea8e72a72ff2dbbca3865
--- /dev/null
+++ b/mojo/public/c/gpu/MGL/mgl_types.h
@@ -0,0 +1,24 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_PUBLIC_C_GPU_MGL_TYPES_H_
+#define MOJO_PUBLIC_C_GPU_MGL_TYPES_H_
+
+// Note: This header should be compilable as C.
viettrungluu 2015/08/12 02:48:10 nit: I think I prefer this comment to be above the
+
+#include <stdint.h>
viettrungluu 2015/08/12 02:48:10 I don't think you actually need this include (but
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct MGLContextPrivate* MGLContext;
+typedef void (*MGLContextLostCallback)(void* closure);
+typedef void (*MGLSignalSyncPointCallback)(void* closure);
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // MOJO_PUBLIC_C_GPU_MGL_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698