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

Unified Diff: third_party/WebKit/Source/core/mojo/MojoMapBufferResult.idl

Issue 2720873002: Implements JS bindings for mojo shared buffer. (Closed)
Patch Set: rebaseline2 Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/mojo/MojoHandle.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/mojo/MojoMapBufferResult.idl
diff --git a/third_party/WebKit/Source/core/mojo/MojoMapBufferResult.idl b/third_party/WebKit/Source/core/mojo/MojoMapBufferResult.idl
new file mode 100644
index 0000000000000000000000000000000000000000..83f475717a24701d2f35d0306096c67df7787909
--- /dev/null
+++ b/third_party/WebKit/Source/core/mojo/MojoMapBufferResult.idl
@@ -0,0 +1,13 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+dictionary MojoMapBufferResult {
+ required MojoResult result;
+
+ // TODO(alokp): Consider wrapping the buffer into a MojoSharedBufferMapping
+ // that would expose an unmap method to free the shared buffer eagerly
+ // rather than waiting for GC. This would be similar to ImageBitmap.close
+ // that disposes of graphical resources.
+ ArrayBuffer buffer;
+};
« no previous file with comments | « third_party/WebKit/Source/core/mojo/MojoHandle.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698