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

Unified Diff: mojo/edk/embedder/entrypoints.cc

Issue 1778753002: Implement MojoGetBufferInformation(), part 3. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: mojo/edk/embedder/entrypoints.cc
diff --git a/mojo/edk/embedder/entrypoints.cc b/mojo/edk/embedder/entrypoints.cc
index 9338cc7b534f7aba4ba2714a9b46235d7905ad56..b6205cebe9f183be96f698182455c57e22e0caeb 100644
--- a/mojo/edk/embedder/entrypoints.cc
+++ b/mojo/edk/embedder/entrypoints.cc
@@ -14,6 +14,7 @@ using mojo::system::MakeUserPointer;
// Definitions of the system functions.
extern "C" {
+
MojoTimeTicks MojoGetTimeTicksNow() {
return g_core->GetTimeTicksNow();
}
@@ -139,6 +140,13 @@ MojoResult MojoDuplicateBufferHandle(
MakeUserPointer(new_buffer_handle));
}
+MojoResult MojoGetBufferInformation(MojoHandle buffer_handle,
+ struct MojoBufferInformation* info,
+ uint32_t info_num_bytes) {
+ return g_core->GetBufferInformation(buffer_handle, MakeUserPointer(info),
+ info_num_bytes);
+}
+
MojoResult MojoMapBuffer(MojoHandle buffer_handle,
uint64_t offset,
uint64_t num_bytes,
« no previous file with comments | « no previous file | mojo/edk/embedder/system_impl_private_entrypoints.cc » ('j') | mojo/nacl/nonsfi/irt_mojo_nonsfi.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698