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

Unified Diff: media/base/bitstream_buffer.cc

Issue 1541353002: Add offset support to BitstreamBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compiling errors on android Created 4 years, 11 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
Index: media/base/bitstream_buffer.cc
diff --git a/media/base/bitstream_buffer.cc b/media/base/bitstream_buffer.cc
index 49caf5b8215cf03622a04e9a673bce76081d8355..6a9119ec624e9c6d89f3a914a642d23c84d999ec 100644
--- a/media/base/bitstream_buffer.cc
+++ b/media/base/bitstream_buffer.cc
@@ -8,19 +8,13 @@ namespace media {
BitstreamBuffer::BitstreamBuffer(int32_t id,
base::SharedMemoryHandle handle,
- size_t size)
- : id_(id),
- handle_(handle),
- size_(size),
- presentation_timestamp_(kNoTimestamp()) {}
-
-BitstreamBuffer::BitstreamBuffer(int32_t id,
- base::SharedMemoryHandle handle,
size_t size,
+ off_t offset,
base::TimeDelta presentation_timestamp)
: id_(id),
handle_(handle),
size_(size),
+ offset_(offset),
presentation_timestamp_(presentation_timestamp) {}
BitstreamBuffer::~BitstreamBuffer() {}

Powered by Google App Engine
This is Rietveld 408576698