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

Unified Diff: mojo/public/gles2/adaptor.h

Issue 101413002: [Mojo] Remove dependency between mojo/public and gpu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/gles2/adaptor.h
diff --git a/mojo/public/gles2/adaptor.h b/mojo/public/gles2/adaptor.h
new file mode 100644
index 0000000000000000000000000000000000000000..0bfaab601778a3352ee8ac48585a791ff703c3aa
--- /dev/null
+++ b/mojo/public/gles2/adaptor.h
@@ -0,0 +1,47 @@
+// Copyright 2013 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_GLES2_ADAPTOR_H_
darin (slow to review) 2013/12/03 21:39:07 perhaps this file should be named gles2.h? i'm not
+#define MOJO_PUBLIC_GLES2_ADAPTOR_H_
+
+// Note: This header should be compilable as C.
+
+#include <stdint.h>
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(MOJO_GLES2_IMPLEMENTATION)
+#define MOJO_GLES2_EXPORT __declspec(dllexport)
+#else
+#define MOJO_GLES2_EXPORT __declspec(dllimport)
+#endif // defined(GFX_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#if defined(MOJO_GLES2_IMPLEMENTATION)
+#define MOJO_GLES2_EXPORT __attribute__((visibility("default")))
+#else
+#define MOJO_GLES2_EXPORT
+#endif
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define MOJO_GLES2_EXPORT
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+MOJO_GLES2_EXPORT void MojoGLES2Initialize();
+MOJO_GLES2_EXPORT void MojoGLES2Terminate();
+// TODO(abarth): MojoGLES2SetContext should take a MojoHandle.
abarth-chromium 2013/12/03 21:30:45 MojoGLES2SetContext -> MojoGLES2MakeCurrent
darin (slow to review) 2013/12/03 21:39:07 Makes sense.
+MOJO_GLES2_EXPORT void MojoGLES2MakeCurrent(uint64_t encoded);
+MOJO_GLES2_EXPORT void MojoGLES2SwapBuffers();
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // MOJO_PUBLIC_GLES2_ADAPTOR_H_
« mojo/public/README.md ('K') | « mojo/public/bindings/gles2_client/gles2_client_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698