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
3 // found in the LICENSE file.
4
5 #include "bitstream_buffer.h"
6
7 namespace media {
8
BitstreamBuffer()9 BitstreamBuffer::BitstreamBuffer()
10 : BitstreamBuffer(-1, base::SharedMemoryHandle(), 0) {}
11
BitstreamBuffer(int32_t id,base::SharedMemoryHandle handle,size_t size,off_t offset,base::TimeDelta presentation_timestamp)12 BitstreamBuffer::BitstreamBuffer(int32_t id,
13 base::SharedMemoryHandle handle,
14 size_t size,
15 off_t offset,
16 base::TimeDelta presentation_timestamp)
17 : id_(id),
18 handle_(handle),
19 size_(size),
20 offset_(offset),
21 presentation_timestamp_(presentation_timestamp) {}
22
23 BitstreamBuffer::BitstreamBuffer(const BitstreamBuffer& other) = default;
24
~BitstreamBuffer()25 BitstreamBuffer::~BitstreamBuffer() {}
26
27 } // namespace media
28