Home | History | Annotate | Download | only in vda
      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 // Note: ported from Chromium commit head: 2de6929
      5 
      6 #include "bitstream_buffer.h"
      7 
      8 namespace media {
      9 
     10 BitstreamBuffer::BitstreamBuffer()
     11     : BitstreamBuffer(-1, base::SharedMemoryHandle(), 0) {}
     12 
     13 BitstreamBuffer::BitstreamBuffer(int32_t id,
     14                                  base::SharedMemoryHandle handle,
     15                                  size_t size,
     16                                  off_t offset,
     17                                  base::TimeDelta presentation_timestamp)
     18     : id_(id),
     19       handle_(handle),
     20       size_(size),
     21       offset_(offset),
     22       presentation_timestamp_(presentation_timestamp) {}
     23 
     24 BitstreamBuffer::BitstreamBuffer(const BitstreamBuffer& other) = default;
     25 
     26 BitstreamBuffer::~BitstreamBuffer() = default;
     27 
     28 }  // namespace media
     29