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

Side by Side Diff: mojo/public/gles2/gles2_private.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_PUBLIC_GLES2_GLES2_PRIVATE_H_ 5 #ifndef MOJO_PUBLIC_GLES2_GLES2_PRIVATE_H_
6 #define MOJO_PUBLIC_GLES2_GLES2_PRIVATE_H_ 6 #define MOJO_PUBLIC_GLES2_GLES2_PRIVATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "mojo/public/c/environment/async_waiter.h" 10 #include "mojo/public/c/environment/async_waiter.h"
11 #include "mojo/public/c/gles2/gles2_export.h" 11 #include "mojo/public/c/gles2/gles2_export.h"
12 #include "mojo/public/c/gles2/gles2_types.h" 12 #include "mojo/public/c/gles2/gles2_types.h"
13 #include "mojo/public/cpp/system/core.h" 13 #include "mojo/public/cpp/system/core.h"
14 14
15 namespace mojo { 15 namespace mojo {
16 class GLES2Interface; 16 class GLES2Interface;
17 17
18 // Implementors of the GLES2 APIs can use this interface to install their 18 // Implementors of the GLES2 APIs can use this interface to install their
19 // implementation into the mojo_gles2 dynamic library. Mojo clients should not 19 // implementation into the mojo_gles2 dynamic library. Mojo clients should not
20 // call these functions directly. 20 // call these functions directly.
21 class MOJO_GLES2_EXPORT GLES2Support { 21 class MOJO_GLES2_EXPORT GLES2Support {
22 public: 22 public:
23 virtual ~GLES2Support(); 23 virtual ~GLES2Support();
24 24
25 static void Init(GLES2Support* gles2_support); 25 static void Init(GLES2Support* gles2_support);
26 26
27 virtual void Initialize(const MojoAsyncWaiter* async_waiter) = 0;
28 virtual void Terminate() = 0;
29 virtual MojoGLES2Context CreateContext( 27 virtual MojoGLES2Context CreateContext(
30 MessagePipeHandle handle, 28 MessagePipeHandle handle,
31 MojoGLES2ContextLost lost_callback, 29 MojoGLES2ContextLost lost_callback,
32 void* closure) = 0; 30 void* closure,
31 const MojoAsyncWaiter* async_waiter) = 0;
33 virtual void DestroyContext(MojoGLES2Context context) = 0; 32 virtual void DestroyContext(MojoGLES2Context context) = 0;
34 virtual void MakeCurrent(MojoGLES2Context context) = 0; 33 virtual void MakeCurrent(MojoGLES2Context context) = 0;
35 virtual void SwapBuffers() = 0; 34 virtual void SwapBuffers() = 0;
36 virtual void* GetGLES2Interface(MojoGLES2Context context) = 0; 35 virtual void* GetGLES2Interface(MojoGLES2Context context) = 0;
37 virtual void* GetContextSupport(MojoGLES2Context context) = 0; 36 virtual void* GetContextSupport(MojoGLES2Context context) = 0;
38 virtual GLES2Interface* GetGLES2InterfaceForCurrentContext() = 0; 37 virtual GLES2Interface* GetGLES2InterfaceForCurrentContext() = 0;
39 }; 38 };
40 39
41 } // namespace mojo 40 } // namespace mojo
42 41
43 #endif // MOJO_PUBLIC_GLES2_GLES2_PRIVATE_H_ 42 #endif // MOJO_PUBLIC_GLES2_GLES2_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698