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

Unified Diff: mojo/gles2/gles2_support_impl.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/gles2/gles2_impl.cc ('k') | mojo/gles2/gles2_support_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gles2/gles2_support_impl.h
diff --git a/mojo/gles2/gles2_support_impl.h b/mojo/gles2/gles2_support_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..5598a09a15f76d1eda5e4515e5cbff0fc191a3a1
--- /dev/null
+++ b/mojo/gles2/gles2_support_impl.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_GLES2_GLES2_SUPPORT_IMPL_H_
+#define MOJO_GLES2_GLES2_SUPPORT_IMPL_H_
+
+#include "base/compiler_specific.h"
+#include "mojo/gles2/gles2_impl_export.h"
+#include "mojo/public/gles2/gles2_private.h"
+
+namespace mojo {
+namespace gles2 {
+
+class MOJO_GLES2_IMPL_EXPORT GLES2SupportImpl : public GLES2Support {
+ public:
+ virtual ~GLES2SupportImpl();
+
+ static void Init();
+
+ virtual void Initialize(const MojoAsyncWaiter* async_waiter) OVERRIDE;
+ virtual void Terminate() OVERRIDE;
+ virtual MojoGLES2Context CreateContext(
+ MessagePipeHandle handle,
+ MojoGLES2ContextLost lost_callback,
+ void* closure) OVERRIDE;
+ virtual void DestroyContext(MojoGLES2Context context) OVERRIDE;
+ virtual void MakeCurrent(MojoGLES2Context context) OVERRIDE;
+ virtual void SwapBuffers() OVERRIDE;
+ virtual void* GetGLES2Interface(MojoGLES2Context context) OVERRIDE;
+ virtual void* GetContextSupport(MojoGLES2Context context) OVERRIDE;
+ virtual GLES2Interface* GetGLES2InterfaceForCurrentContext() OVERRIDE;
+
+ private:
+ GLES2SupportImpl();
+
+ const MojoAsyncWaiter* async_waiter_;
+};
+
+} // namespace gles2
+} // namespace mojo
+
+#endif // MOJO_GLES2_GLES2_SUPPORT_IMPL_H_
« no previous file with comments | « mojo/gles2/gles2_impl.cc ('k') | mojo/gles2/gles2_support_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698