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

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: address review comments and rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/bitstream_buffer.h ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/bitstream_buffer.cc
diff --git a/media/base/bitstream_buffer.cc b/media/base/bitstream_buffer.cc
index 3378170c2172fd9937d557a061a4fa7ec121caaa..5a1907db25d531b46ec5ab50a1603dbc29476d2b 100644
--- a/media/base/bitstream_buffer.cc
+++ b/media/base/bitstream_buffer.cc
@@ -7,23 +7,17 @@
namespace media {
BitstreamBuffer::BitstreamBuffer()
- : id_(-1), size_(0), presentation_timestamp_(kNoTimestamp()) {}
-
-BitstreamBuffer::BitstreamBuffer(int32_t id,
- base::SharedMemoryHandle handle,
- size_t size)
- : id_(id),
- handle_(handle),
- size_(size),
- presentation_timestamp_(kNoTimestamp()) {}
+ : BitstreamBuffer(-1, base::SharedMemoryHandle(), 0) {}
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(const BitstreamBuffer& other) = default;
« no previous file with comments | « media/base/bitstream_buffer.h ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698