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

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

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/packet.h ('k') | services/media/framework/parts/decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/framework/packet.cc
diff --git a/services/media/framework/packet.cc b/services/media/framework/packet.cc
index 9b0249382e304bdd21db5122dbb68bb47d23d3fe..32204bc6c3f56332dfd109eab350d1a749b0c7a7 100644
--- a/services/media/framework/packet.cc
+++ b/services/media/framework/packet.cc
@@ -3,8 +3,8 @@
// found in the LICENSE file.
#include "base/logging.h"
-#include "services/media/framework/allocator.h"
#include "services/media/framework/packet.h"
+#include "services/media/framework/payload_allocator.h"
namespace mojo {
namespace media {
@@ -15,9 +15,9 @@ class PacketImpl : public Packet {
int64_t presentation_time,
uint64_t duration,
bool end_of_stream,
- uint64_t size,
+ size_t size,
void* payload,
- Allocator* allocator) :
+ PayloadAllocator* allocator) :
presentation_time_(presentation_time),
duration_(duration),
end_of_stream_(end_of_stream),
@@ -35,7 +35,7 @@ class PacketImpl : public Packet {
bool end_of_stream() const override { return end_of_stream_; }
- uint64_t size() const override { return size_; }
+ size_t size() const override { return size_; }
void* payload() const override { return payload_; }
@@ -52,9 +52,9 @@ class PacketImpl : public Packet {
int64_t presentation_time_;
uint64_t duration_;
bool end_of_stream_;
- uint64_t size_;
+ size_t size_;
void* payload_;
- Allocator* allocator_;
+ PayloadAllocator* allocator_;
};
// static
@@ -62,9 +62,9 @@ PacketPtr Packet::Create(
int64_t presentation_time,
uint64_t duration,
bool end_of_stream,
- uint64_t size,
+ size_t size,
void* payload,
- Allocator* allocator) {
+ PayloadAllocator* allocator) {
DCHECK(payload == nullptr || allocator != nullptr);
return PacketPtr(new PacketImpl(
presentation_time,
@@ -80,7 +80,7 @@ PacketPtr Packet::CreateNoAllocator(
int64_t presentation_time,
uint64_t duration,
bool end_of_stream,
- uint64_t size,
+ size_t size,
void* payload) {
return PacketPtr(new PacketImpl(
presentation_time,
« no previous file with comments | « services/media/framework/packet.h ('k') | services/media/framework/parts/decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698