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

Unified Diff: services/media/framework/packet.h

Issue 1678433002: Motown: Remove LPCM optimizations, fix prepare, add flush, add ActiveMultistreamSink model/stage (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Sync Created 4 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 | « services/media/framework/models/transform.h ('k') | services/media/framework/packet.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/framework/packet.h
diff --git a/services/media/framework/packet.h b/services/media/framework/packet.h
index bbc0125f0e5b6bba9d25345a2d294148cf5d7e41..21caa4c6a75d7deffe0bbbec330d441efe647e31 100644
--- a/services/media/framework/packet.h
+++ b/services/media/framework/packet.h
@@ -8,8 +8,7 @@
#include <memory>
#include "base/logging.h"
-#include "services/media/framework/allocator.h"
-#include "services/media/framework/ptr.h"
+#include "services/media/framework/payload_allocator.h"
namespace mojo {
namespace media {
@@ -22,7 +21,7 @@ struct PacketDeleter {
};
// Unique pointer for packets.
-typedef UniquePtr<Packet, PacketDeleter> PacketPtr;
+typedef std::unique_ptr<Packet, PacketDeleter> PacketPtr;
// Media packet abstract base class. Subclasses may be defined as needed.
// Packet::Create and Packet::CreateEndOfStream use an implementation with
@@ -38,9 +37,9 @@ class Packet {
int64_t presentation_time,
uint64_t duration,
bool end_of_stream,
- uint64_t size,
+ size_t size,
void* payload,
- Allocator* allocator);
+ PayloadAllocator* allocator);
// Creates a packet. If size is 0, payload must be nullptr and vice-versa.
// No allocator is provided, and the payload will not be released when the
@@ -49,7 +48,7 @@ class Packet {
int64_t presentation_time,
uint64_t duration,
bool end_of_stream,
- uint64_t size,
+ size_t size,
void* payload);
// Creates an end-of-stream packet with no payload.
@@ -61,7 +60,7 @@ class Packet {
virtual bool end_of_stream() const = 0;
- virtual uint64_t size() const = 0;
+ virtual size_t size() const = 0;
virtual void* payload() const = 0;
« no previous file with comments | « services/media/framework/models/transform.h ('k') | services/media/framework/packet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698