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

Side by Side Diff: mojo/gles2/gles2_support_impl.h

Issue 428413002: Make async waiter explicit MojoGLES2CreateContext param (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_GLES2_GLES2_SUPPORT_IMPL_H_ 5 #ifndef MOJO_GLES2_GLES2_SUPPORT_IMPL_H_
6 #define MOJO_GLES2_GLES2_SUPPORT_IMPL_H_ 6 #define MOJO_GLES2_GLES2_SUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "mojo/gles2/gles2_impl_export.h" 9 #include "mojo/gles2/gles2_impl_export.h"
10 #include "mojo/public/gles2/gles2_private.h" 10 #include "mojo/public/gles2/gles2_private.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 namespace gles2 { 13 namespace gles2 {
14 14
15 class MOJO_GLES2_IMPL_EXPORT GLES2SupportImpl : public GLES2Support { 15 class MOJO_GLES2_IMPL_EXPORT GLES2SupportImpl : public GLES2Support {
16 public: 16 public:
17 virtual ~GLES2SupportImpl(); 17 virtual ~GLES2SupportImpl();
18 18
19 static void Init(); 19 static void Init();
20 20
21 virtual void Initialize(const MojoAsyncWaiter* async_waiter) OVERRIDE;
22 virtual void Terminate() OVERRIDE;
23 virtual MojoGLES2Context CreateContext( 21 virtual MojoGLES2Context CreateContext(
24 MessagePipeHandle handle, 22 MessagePipeHandle handle,
25 MojoGLES2ContextLost lost_callback, 23 MojoGLES2ContextLost lost_callback,
26 void* closure) OVERRIDE; 24 void* closure,
25 const MojoAsyncWaiter* async_waiter) OVERRIDE;
27 virtual void DestroyContext(MojoGLES2Context context) OVERRIDE; 26 virtual void DestroyContext(MojoGLES2Context context) OVERRIDE;
28 virtual void MakeCurrent(MojoGLES2Context context) OVERRIDE; 27 virtual void MakeCurrent(MojoGLES2Context context) OVERRIDE;
29 virtual void SwapBuffers() OVERRIDE; 28 virtual void SwapBuffers() OVERRIDE;
30 virtual void* GetGLES2Interface(MojoGLES2Context context) OVERRIDE; 29 virtual void* GetGLES2Interface(MojoGLES2Context context) OVERRIDE;
31 virtual void* GetContextSupport(MojoGLES2Context context) OVERRIDE; 30 virtual void* GetContextSupport(MojoGLES2Context context) OVERRIDE;
32 virtual GLES2Interface* GetGLES2InterfaceForCurrentContext() OVERRIDE; 31 virtual GLES2Interface* GetGLES2InterfaceForCurrentContext() OVERRIDE;
33 32
34 private: 33 private:
35 GLES2SupportImpl(); 34 GLES2SupportImpl();
36
37 const MojoAsyncWaiter* async_waiter_;
38 }; 35 };
39 36
40 } // namespace gles2 37 } // namespace gles2
41 } // namespace mojo 38 } // namespace mojo
42 39
43 #endif // MOJO_GLES2_GLES2_SUPPORT_IMPL_H_ 40 #endif // MOJO_GLES2_GLES2_SUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698