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

Side by Side Diff: chromecast/media/cma/base/decoder_buffer_impl.cc

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test + android fixes Created 5 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
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 "chromecast/media/cma/base/decoder_buffer_impl.h"
6
7 namespace chromecast {
8 namespace media {
9
10 DecoderBufferImpl::DecoderBufferImpl(
11 const scoped_refptr<DecoderBufferBase>& buffer)
12 : buffer_(buffer) {}
13
14 DecoderBufferImpl::~DecoderBufferImpl() {}
15
16 StreamId DecoderBufferImpl::stream_id() const {
17 return buffer_->stream_id();
18 }
19
20 TimeDelta DecoderBufferImpl::timestamp() const {
21 return buffer_->timestamp();
22 }
23
24 void DecoderBufferImpl::set_timestamp(TimeDelta timestamp) {
25 buffer_->set_timestamp(timestamp);
26 }
27
28 const uint8* DecoderBufferImpl::data() const {
29 return buffer_->data();
30 }
31
32 uint8* DecoderBufferImpl::writable_data() const {
33 return buffer_->writable_data();
34 }
35
36 size_t DecoderBufferImpl::data_size() const {
37 return buffer_->data_size();
38 }
39
40 const DecryptConfig* DecoderBufferImpl::decrypt_config() const {
41 return buffer_->decrypt_config();
42 }
43
44 bool DecoderBufferImpl::end_of_stream() const {
45 return buffer_->end_of_stream();
46 }
47
48 const scoped_refptr<DecoderBufferBase>& DecoderBufferImpl::buffer() const {
49 return buffer_;
50 }
51
52 } // namespace media
53 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698