| 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 #include "mojo/nacl/nonsfi/irt_mojo_nonsfi.h" | 5 #include "mojo/nacl/nonsfi/irt_mojo_nonsfi.h" |
| 6 | 6 |
| 7 #include "mojo/public/c/system/buffer.h" | 7 #include "mojo/public/c/system/buffer.h" |
| 8 #include "mojo/public/c/system/data_pipe.h" | 8 #include "mojo/public/c/system/data_pipe.h" |
| 9 #include "mojo/public/c/system/handle.h" | 9 #include "mojo/public/c/system/handle.h" |
| 10 #include "mojo/public/c/system/message_pipe.h" | 10 #include "mojo/public/c/system/message_pipe.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 MojoSetDataPipeConsumerOptions, | 42 MojoSetDataPipeConsumerOptions, |
| 43 MojoGetDataPipeConsumerOptions, | 43 MojoGetDataPipeConsumerOptions, |
| 44 MojoReadData, | 44 MojoReadData, |
| 45 MojoBeginReadData, | 45 MojoBeginReadData, |
| 46 MojoEndReadData, | 46 MojoEndReadData, |
| 47 MojoCreateSharedBuffer, | 47 MojoCreateSharedBuffer, |
| 48 MojoDuplicateBufferHandle, | 48 MojoDuplicateBufferHandle, |
| 49 MojoGetBufferInformation, | 49 MojoGetBufferInformation, |
| 50 MojoMapBuffer, | 50 MojoMapBuffer, |
| 51 MojoUnmapBuffer, | 51 MojoUnmapBuffer, |
| 52 MojoCreateWaitSet, |
| 53 MojoWaitSetAdd, |
| 54 MojoWaitSetRemove, |
| 55 MojoWaitSetWait, |
| 52 }; | 56 }; |
| 53 | 57 |
| 54 const struct nacl_irt_mgl kIrtMGL = { | 58 const struct nacl_irt_mgl kIrtMGL = { |
| 55 MGLCreateContext, | 59 MGLCreateContext, |
| 56 MGLDestroyContext, | 60 MGLDestroyContext, |
| 57 MGLMakeCurrent, | 61 MGLMakeCurrent, |
| 58 MGLGetCurrentContext, | 62 MGLGetCurrentContext, |
| 59 MGLGetProcAddress, | 63 MGLGetProcAddress, |
| 60 }; | 64 }; |
| 61 | 65 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 void* table, | 135 void* table, |
| 132 size_t tablesize) { | 136 size_t tablesize) { |
| 133 size_t result = nacl_irt_query_list(interface_ident, table, tablesize, | 137 size_t result = nacl_irt_query_list(interface_ident, table, tablesize, |
| 134 kIrtInterfaces, sizeof(kIrtInterfaces)); | 138 kIrtInterfaces, sizeof(kIrtInterfaces)); |
| 135 if (result != 0) | 139 if (result != 0) |
| 136 return result; | 140 return result; |
| 137 return nacl_irt_query_core(interface_ident, table, tablesize); | 141 return nacl_irt_query_core(interface_ident, table, tablesize); |
| 138 } | 142 } |
| 139 | 143 |
| 140 } // namespace nacl | 144 } // namespace nacl |
| OLD | NEW |