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

Side by Side Diff: mojo/services/media/common/interfaces/media_transport.mojom

Issue 1823833003: Take advantage of MojoGetBufferInformation (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 unified diff | Download patch
OLDNEW
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 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo.media; 6 module mojo.media;
7 7
8 import "mojo/services/media/common/interfaces/media_common.mojom"; 8 import "mojo/services/media/common/interfaces/media_common.mojom";
9 import "mojo/services/media/common/interfaces/media_types.mojom"; 9 import "mojo/services/media/common/interfaces/media_types.mojom";
10 10
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const uint64 kMaxBufferLen = 0x3FFFFFFFFFFFFFFF; 115 const uint64 kMaxBufferLen = 0x3FFFFFFFFFFFFFFF;
116 116
117 // An enumeration used to indicate the ultimate fate of packets sent across 117 // An enumeration used to indicate the ultimate fate of packets sent across
118 // the pipe using the SendPacket method. 118 // the pipe using the SendPacket method.
119 enum SendResult { 119 enum SendResult {
120 CONSUMED, // Media was completely consumed. 120 CONSUMED, // Media was completely consumed.
121 FLUSHED, // Some or all of the media was flushed before being consumed. 121 FLUSHED, // Some or all of the media was flushed before being consumed.
122 }; 122 };
123 123
124 // Sets the shared buffer in which packet payload will be located. 124 // Sets the shared buffer in which packet payload will be located.
125 SetBuffer(handle<shared_buffer> buffer, uint64 size) => (); 125 SetBuffer(handle<shared_buffer> buffer) => ();
126 126
127 // Sends a packet to the consumer. The callback signals that the consumer 127 // Sends a packet to the consumer. The callback signals that the consumer
128 // is done with the packet buffer region. 128 // is done with the packet buffer region.
129 SendPacket(MediaPacket packet) => (SendResult result); 129 SendPacket(MediaPacket packet) => (SendResult result);
130 130
131 // Primes the stream. The callback signals that the prime operation is 131 // Primes the stream. The callback signals that the prime operation is
132 // complete. 132 // complete.
133 Prime() => (); 133 Prime() => ();
134 134
135 // Flushes the stream. The callback signals that the flush operation is 135 // Flushes the stream. The callback signals that the flush operation is
136 // complete. 136 // complete.
137 Flush() => (); 137 Flush() => ();
138 }; 138 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698