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

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

Issue 425193002: Revert of mojo: Convert gles2 to the new thunking system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/gles2/BUILD.gn ('k') | mojo/public/gles2/gles2_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/gles2/gles2_private.h
diff --git a/mojo/public/gles2/gles2_private.h b/mojo/public/gles2/gles2_private.h
new file mode 100644
index 0000000000000000000000000000000000000000..0854f6fc55c70a9726f0b0040daaf0b70f0a9f95
--- /dev/null
+++ b/mojo/public/gles2/gles2_private.h
@@ -0,0 +1,43 @@
+// Copyright 2014 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_GLES2_PRIVATE_H_
+#define MOJO_PUBLIC_GLES2_GLES2_PRIVATE_H_
+
+#include <stdint.h>
+
+#include "mojo/public/c/environment/async_waiter.h"
+#include "mojo/public/c/gles2/gles2_export.h"
+#include "mojo/public/c/gles2/gles2_types.h"
+#include "mojo/public/cpp/system/core.h"
+
+namespace mojo {
+class GLES2Interface;
+
+// Implementors of the GLES2 APIs can use this interface to install their
+// implementation into the mojo_gles2 dynamic library. Mojo clients should not
+// call these functions directly.
+class MOJO_GLES2_EXPORT GLES2Support {
+ public:
+ virtual ~GLES2Support();
+
+ static void Init(GLES2Support* gles2_support);
+
+ virtual void Initialize(const MojoAsyncWaiter* async_waiter) = 0;
+ virtual void Terminate() = 0;
+ virtual MojoGLES2Context CreateContext(
+ MessagePipeHandle handle,
+ MojoGLES2ContextLost lost_callback,
+ void* closure) = 0;
+ virtual void DestroyContext(MojoGLES2Context context) = 0;
+ virtual void MakeCurrent(MojoGLES2Context context) = 0;
+ virtual void SwapBuffers() = 0;
+ virtual void* GetGLES2Interface(MojoGLES2Context context) = 0;
+ virtual void* GetContextSupport(MojoGLES2Context context) = 0;
+ virtual GLES2Interface* GetGLES2InterfaceForCurrentContext() = 0;
+};
+
+} // namespace mojo
+
+#endif // MOJO_PUBLIC_GLES2_GLES2_PRIVATE_H_
« no previous file with comments | « mojo/public/gles2/BUILD.gn ('k') | mojo/public/gles2/gles2_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698