Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 // WARNING this file was generated by generate_nacl_bindings.py | 5 // WARNING this file was generated by generate_nacl_bindings.py |
| 6 // Do not edit by hand. | 6 // Do not edit by hand. |
| 7 | 7 |
| 8 #ifndef MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ | 8 #ifndef MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ |
| 9 #define MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ | 9 #define MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ |
| 10 | 10 |
| 11 #include "mojo/public/c/gpu/MGL/mgl.h" | |
| 12 #include "mojo/public/c/gpu/MGL/mgl_onscreen.h" | |
| 11 #include "mojo/public/c/system/buffer.h" | 13 #include "mojo/public/c/system/buffer.h" |
| 12 #include "mojo/public/c/system/data_pipe.h" | 14 #include "mojo/public/c/system/data_pipe.h" |
| 13 #include "mojo/public/c/system/message_pipe.h" | 15 #include "mojo/public/c/system/message_pipe.h" |
| 14 #include "mojo/public/c/system/types.h" | 16 #include "mojo/public/c/system/types.h" |
| 15 | 17 |
| 16 #define NACL_IRT_MOJO_v0_1 "nacl-irt-mojo-0.1" | 18 #define NACL_IRT_MOJO_v0_1 "nacl-irt-mojo-0.1" |
| 17 | 19 |
| 18 struct nacl_irt_mojo { | 20 struct nacl_irt_mojo { |
| 19 MojoResult (*MojoCreateSharedBuffer)( | 21 MojoResult (*MojoCreateSharedBuffer)( |
| 20 const struct MojoCreateSharedBufferOptions* options, | 22 const struct MojoCreateSharedBufferOptions* options, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 MojoWriteMessageFlags flags); | 80 MojoWriteMessageFlags flags); |
| 79 MojoResult (*MojoReadMessage)(MojoHandle message_pipe_handle, | 81 MojoResult (*MojoReadMessage)(MojoHandle message_pipe_handle, |
| 80 void* bytes, | 82 void* bytes, |
| 81 uint32_t* num_bytes, | 83 uint32_t* num_bytes, |
| 82 MojoHandle* handles, | 84 MojoHandle* handles, |
| 83 uint32_t* num_handles, | 85 uint32_t* num_handles, |
| 84 MojoReadMessageFlags flags); | 86 MojoReadMessageFlags flags); |
| 85 MojoResult (*_MojoGetInitialHandle)(MojoHandle* handle); | 87 MojoResult (*_MojoGetInitialHandle)(MojoHandle* handle); |
| 86 }; | 88 }; |
| 87 | 89 |
| 90 #define NACL_IRT_MGL_v0_1 "nacl-irt-mgl-0.1" | |
| 91 | |
| 92 struct nacl_irt_mgl { | |
| 93 MGLContext (*MGLCreateContext)(MGLOpenGLAPIVersion version, | |
|
Mark Seaborn
2015/10/17 01:08:08
Can you add comments to document what these functi
Petr Hosek
2015/10/17 01:51:13
Done.
Mark Seaborn
2015/10/20 01:24:32
I suppose I should have put the emphasis on "point
| |
| 94 MojoHandle command_buffer_handle, | |
| 95 MGLContext share_group, | |
| 96 MGLContextLostCallback lost_callback, | |
| 97 void* lost_callback_closure, | |
| 98 const struct MojoAsyncWaiter* async_waiter); | |
| 99 void (*MGLDestroyContext)(MGLContext context); | |
| 100 void (*MGLMakeCurrent)(MGLContext context); | |
| 101 MGLContext (*MGLGetCurrentContext)(void); | |
| 102 MGLMustCastToProperFunctionPointerType (*MGLGetProcAddress)(const char* name); | |
| 103 }; | |
| 104 | |
| 105 #define NACL_IRT_MGL_ONSCREEN_v0_1 "nacl-irt-mgl-onscreen-0.1" | |
| 106 | |
| 107 struct nacl_irt_mgl_onscreen { | |
| 108 void (*MGLResizeSurface)(uint32_t width, uint32_t height); | |
|
Mark Seaborn
2015/10/17 01:08:08
Same comment about docs...
What surface does this
Petr Hosek
2015/10/17 01:51:13
Done.
| |
| 109 void (*MGLSwapBuffers)(void); | |
| 110 }; | |
| 111 | |
| 88 #ifdef __cplusplus | 112 #ifdef __cplusplus |
| 89 extern "C" { | 113 extern "C" { |
| 90 #endif | 114 #endif |
| 91 | 115 |
| 92 size_t mojo_irt_query(const char* interface_ident, | 116 size_t mojo_irt_query(const char* interface_ident, |
| 93 void* table, | 117 void* table, |
| 94 size_t tablesize); | 118 size_t tablesize); |
| 95 | 119 |
| 96 #ifdef __cplusplus | 120 #ifdef __cplusplus |
| 97 } | 121 } |
| 98 #endif | 122 #endif |
| 99 | 123 |
| 100 #endif // MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ | 124 #endif // MOJO_PUBLIC_PLATFORM_NACL_MOJO_IRT_H_ |
| OLD | NEW |