OLD | NEW |
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" |
(...skipping 11 matching lines...) Expand all Loading... |
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; | 27 virtual void Initialize(const MojoAsyncWaiter* async_waiter) = 0; |
28 virtual void Terminate() = 0; | 28 virtual void Terminate() = 0; |
29 virtual MojoGLES2Context CreateContext( | 29 virtual MojoGLES2Context CreateContext( |
30 MessagePipeHandle handle, | 30 MessagePipeHandle handle, |
31 MojoGLES2ContextLost lost_callback, | 31 MojoGLES2ContextLost lost_callback, |
32 MojoGLES2DrawAnimationFrame animation_callback, | |
33 void* closure) = 0; | 32 void* closure) = 0; |
34 virtual void DestroyContext(MojoGLES2Context context) = 0; | 33 virtual void DestroyContext(MojoGLES2Context context) = 0; |
35 virtual void MakeCurrent(MojoGLES2Context context) = 0; | 34 virtual void MakeCurrent(MojoGLES2Context context) = 0; |
36 virtual void SwapBuffers() = 0; | 35 virtual void SwapBuffers() = 0; |
37 virtual void RequestAnimationFrames(MojoGLES2Context context) = 0; | |
38 virtual void CancelAnimationFrames(MojoGLES2Context context) = 0; | |
39 virtual void* GetGLES2Interface(MojoGLES2Context context) = 0; | 36 virtual void* GetGLES2Interface(MojoGLES2Context context) = 0; |
40 virtual void* GetContextSupport(MojoGLES2Context context) = 0; | 37 virtual void* GetContextSupport(MojoGLES2Context context) = 0; |
41 virtual GLES2Interface* GetGLES2InterfaceForCurrentContext() = 0; | 38 virtual GLES2Interface* GetGLES2InterfaceForCurrentContext() = 0; |
42 }; | 39 }; |
43 | 40 |
44 } // namespace mojo | 41 } // namespace mojo |
45 | 42 |
46 #endif // MOJO_PUBLIC_GLES2_GLES2_PRIVATE_H_ | 43 #endif // MOJO_PUBLIC_GLES2_GLES2_PRIVATE_H_ |
OLD | NEW |