| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromecast/media/cma/base/decoder_buffer_adapter.h" | 5 #include "chromecast/media/cma/base/decoder_buffer_adapter.h" |
| 6 | 6 |
| 7 #include "media/base/decoder_buffer.h" | 7 #include "media/base/decoder_buffer.h" |
| 8 | 8 |
| 9 namespace chromecast { | 9 namespace chromecast { |
| 10 namespace media { | 10 namespace media { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 StreamId DecoderBufferAdapter::stream_id() const { | 26 StreamId DecoderBufferAdapter::stream_id() const { |
| 27 return stream_id_; | 27 return stream_id_; |
| 28 } | 28 } |
| 29 | 29 |
| 30 base::TimeDelta DecoderBufferAdapter::timestamp() const { | 30 base::TimeDelta DecoderBufferAdapter::timestamp() const { |
| 31 return buffer_->timestamp(); | 31 return buffer_->timestamp(); |
| 32 } | 32 } |
| 33 | 33 |
| 34 void DecoderBufferAdapter::set_timestamp(const base::TimeDelta& timestamp) { |
| 35 buffer_->set_timestamp(timestamp); |
| 36 } |
| 37 |
| 34 const uint8* DecoderBufferAdapter::data() const { | 38 const uint8* DecoderBufferAdapter::data() const { |
| 35 return buffer_->data(); | 39 return buffer_->data(); |
| 36 } | 40 } |
| 37 | 41 |
| 38 uint8* DecoderBufferAdapter::writable_data() const { | 42 uint8* DecoderBufferAdapter::writable_data() const { |
| 39 return buffer_->writable_data(); | 43 return buffer_->writable_data(); |
| 40 } | 44 } |
| 41 | 45 |
| 42 size_t DecoderBufferAdapter::data_size() const { | 46 size_t DecoderBufferAdapter::data_size() const { |
| 43 return buffer_->data_size(); | 47 return buffer_->data_size(); |
| 44 } | 48 } |
| 45 | 49 |
| 46 const ::media::DecryptConfig* DecoderBufferAdapter::decrypt_config() const { | 50 const ::media::DecryptConfig* DecoderBufferAdapter::decrypt_config() const { |
| 47 return buffer_->decrypt_config(); | 51 return buffer_->decrypt_config(); |
| 48 } | 52 } |
| 49 | 53 |
| 50 bool DecoderBufferAdapter::end_of_stream() const { | 54 bool DecoderBufferAdapter::end_of_stream() const { |
| 51 return buffer_->end_of_stream(); | 55 return buffer_->end_of_stream(); |
| 52 } | 56 } |
| 53 | 57 |
| 54 } // namespace media | 58 } // namespace media |
| 55 } // namespace chromecast | 59 } // namespace chromecast |
| OLD | NEW |