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

Side by Side Diff: mojo/edk/embedder/entrypoints.cc

Issue 1785843002: [mojo] Implement pipe fusion API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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
« no previous file with comments | « no previous file | mojo/edk/system/core.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <stdint.h> 5 #include <stdint.h>
6 6
7 #include "mojo/edk/embedder/embedder_internal.h" 7 #include "mojo/edk/embedder/embedder_internal.h"
8 #include "mojo/edk/system/core.h" 8 #include "mojo/edk/system/core.h"
9 #include "mojo/public/c/system/buffer.h" 9 #include "mojo/public/c/system/buffer.h"
10 #include "mojo/public/c/system/data_pipe.h" 10 #include "mojo/public/c/system/data_pipe.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 MojoResult MojoReadMessage(MojoHandle message_pipe_handle, 96 MojoResult MojoReadMessage(MojoHandle message_pipe_handle,
97 void* bytes, 97 void* bytes,
98 uint32_t* num_bytes, 98 uint32_t* num_bytes,
99 MojoHandle* handles, 99 MojoHandle* handles,
100 uint32_t* num_handles, 100 uint32_t* num_handles,
101 MojoReadMessageFlags flags) { 101 MojoReadMessageFlags flags) {
102 return g_core->ReadMessage( 102 return g_core->ReadMessage(
103 message_pipe_handle, bytes, num_bytes, handles, num_handles, flags); 103 message_pipe_handle, bytes, num_bytes, handles, num_handles, flags);
104 } 104 }
105 105
106 MojoResult MojoFuseMessagePipes(MojoHandle handle0, MojoHandle handle1) {
107 return g_core->FuseMessagePipes(handle0, handle1);
108 }
109
106 MojoResult MojoCreateDataPipe(const MojoCreateDataPipeOptions* options, 110 MojoResult MojoCreateDataPipe(const MojoCreateDataPipeOptions* options,
107 MojoHandle* data_pipe_producer_handle, 111 MojoHandle* data_pipe_producer_handle,
108 MojoHandle* data_pipe_consumer_handle) { 112 MojoHandle* data_pipe_consumer_handle) {
109 return g_core->CreateDataPipe(options, data_pipe_producer_handle, 113 return g_core->CreateDataPipe(options, data_pipe_producer_handle,
110 data_pipe_consumer_handle); 114 data_pipe_consumer_handle);
111 } 115 }
112 116
113 MojoResult MojoWriteData(MojoHandle data_pipe_producer_handle, 117 MojoResult MojoWriteData(MojoHandle data_pipe_producer_handle,
114 const void* elements, 118 const void* elements,
115 uint32_t* num_elements, 119 uint32_t* num_elements,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void** buffer, 177 void** buffer,
174 MojoMapBufferFlags flags) { 178 MojoMapBufferFlags flags) {
175 return g_core->MapBuffer(buffer_handle, offset, num_bytes, buffer, flags); 179 return g_core->MapBuffer(buffer_handle, offset, num_bytes, buffer, flags);
176 } 180 }
177 181
178 MojoResult MojoUnmapBuffer(void* buffer) { 182 MojoResult MojoUnmapBuffer(void* buffer) {
179 return g_core->UnmapBuffer(buffer); 183 return g_core->UnmapBuffer(buffer);
180 } 184 }
181 185
182 } // extern "C" 186 } // extern "C"
OLDNEW
« no previous file with comments | « no previous file | mojo/edk/system/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698