OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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/cast_decoder_buffer_impl.h" | 5 #include "chromecast/media/cma/base/cast_decoder_buffer_impl.h" |
6 | 6 |
7 namespace chromecast { | 7 namespace chromecast { |
8 namespace media { | 8 namespace media { |
9 | 9 |
10 CastDecoderBufferImpl::CastDecoderBufferImpl( | 10 CastDecoderBufferImpl::CastDecoderBufferImpl( |
(...skipping 23 matching lines...) Expand all Loading... |
34 } | 34 } |
35 | 35 |
36 bool CastDecoderBufferImpl::end_of_stream() const { | 36 bool CastDecoderBufferImpl::end_of_stream() const { |
37 return buffer_->end_of_stream(); | 37 return buffer_->end_of_stream(); |
38 } | 38 } |
39 | 39 |
40 const scoped_refptr<DecoderBufferBase>& CastDecoderBufferImpl::buffer() const { | 40 const scoped_refptr<DecoderBufferBase>& CastDecoderBufferImpl::buffer() const { |
41 return buffer_; | 41 return buffer_; |
42 } | 42 } |
43 | 43 |
| 44 void CastDecoderBufferImpl::set_buffer( |
| 45 const scoped_refptr<DecoderBufferBase>& buffer) { |
| 46 buffer_ = buffer; |
| 47 } |
| 48 |
44 } // namespace media | 49 } // namespace media |
45 } // namespace chromecast | 50 } // namespace chromecast |
OLD | NEW |