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_ |