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

Unified Diff: mojo/public/dart/src/buffer.dart

Issue 782693004: Update mojo sdk to rev f6c8ec07c01deebc13178d516225fd12695c3dc2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hack mojo_system_impl gypi for android :| Created 6 years 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/public/dart/src/buffer.dart
diff --git a/mojo/public/dart/src/buffer.dart b/mojo/public/dart/src/buffer.dart
index a00838e466dc4db5721855dc3785b2a9110cfe8b..0e6bc2c78a217f74ff896dbc33df32d1641c37ed 100644
--- a/mojo/public/dart/src/buffer.dart
+++ b/mojo/public/dart/src/buffer.dart
@@ -11,7 +11,11 @@ class _MojoSharedBufferNatives {
static List Duplicate(int buffer_handle, int flags)
native "MojoSharedBuffer_Duplicate";
- static List Map(int buffer_handle, int offset, int num_bytes, int flags)
+ static List Map(MojoSharedBuffer buffer,
+ int buffer_handle,
+ int offset,
+ int num_bytes,
+ int flags)
native "MojoSharedBuffer_Map";
static int Unmap(ByteData buffer)
@@ -66,7 +70,7 @@ class MojoSharedBuffer {
MojoSharedBuffer dupe = new MojoSharedBuffer._();
dupe.status = r;
dupe.handle = new RawMojoHandle(result[1]);
- dupe.mapping = msb.mapping;
+ dupe.mapping = null; // The buffer is not mapped in the duplicate.
return dupe;
}
@@ -87,7 +91,7 @@ class MojoSharedBuffer {
return status;
}
List result = _MojoSharedBufferNatives.Map(
- handle.h, offset, num_bytes, flags);
+ this, handle.h, offset, num_bytes, flags);
if (result == null) {
status = MojoResult.INVALID_ARGUMENT;
return status;

Powered by Google App Engine
This is Rietveld 408576698