OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MOJO_PUBLIC_PLATFORM_NACL_MGL_IRT_H_ | |
6 #define MOJO_PUBLIC_PLATFORM_NACL_MGL_IRT_H_ | |
7 | |
8 #include "mojo/public/c/gpu/MGL/mgl.h" | |
9 #include "mojo/public/c/gpu/MGL/mgl_onscreen.h" | |
10 #include "mojo/public/c/gpu/MGL/mgl_signal_sync_point.h" | |
11 | |
12 | |
Mark Seaborn
2015/10/21 04:55:49
Nit: Chromium style is only 1 empty line between t
Petr Hosek
2015/10/21 16:33:21
Done.
| |
13 #define NACL_IRT_MGL_v0_1 "nacl-irt-mgl-0.1" | |
14 | |
15 // See mojo/public/c/gpu/MGL/mgl.h for documentation. | |
16 struct nacl_irt_mgl { | |
17 MGLContext (*MGLCreateContext)(MGLOpenGLAPIVersion version, | |
18 MojoHandle command_buffer_handle, | |
19 MGLContext share_group, | |
20 MGLContextLostCallback lost_callback, | |
21 void* lost_callback_closure, | |
22 const struct MojoAsyncWaiter* async_waiter); | |
23 void (*MGLDestroyContext)(MGLContext context); | |
24 void (*MGLMakeCurrent)(MGLContext context); | |
25 MGLContext (*MGLGetCurrentContext)(void); | |
26 MGLMustCastToProperFunctionPointerType (*MGLGetProcAddress)(const char* name); | |
27 }; | |
28 | |
29 | |
30 | |
31 #define NACL_IRT_MGL_ONSCREEN_v0_1 "nacl-irt-mgl-onscreen-0.1" | |
32 | |
33 // See mojo/public/c/gpu/MGL/mgl_onscreen.h for documentation. | |
34 struct nacl_irt_mgl_onscreen { | |
35 void (*MGLResizeSurface)(uint32_t width, uint32_t height); | |
36 void (*MGLSwapBuffers)(void); | |
37 }; | |
38 | |
39 #define NACL_IRT_MGL_SIGNAL_SYNC_POINT_v0_1 "nacl-irt-mgl-signal-sync-point-0.1" | |
40 | |
41 // See mojo/public/c/gpu/MGL/mgl_signal_sync_point.h for documentation. | |
42 struct nacl_irt_mgl_signal_sync_point { | |
43 void (*MGLSignalSyncPoint)(uint32_t sync_point, | |
44 MGLSignalSyncPointCallback callback, | |
45 void* closure); | |
46 }; | |
47 | |
48 #endif // MOJO_PUBLIC_PLATFORM_NACL_MGL_IRT_H_ | |
OLD | NEW |