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/buffering_frame_provider.h" | 5 #include "chromecast/media/cma/base/buffering_frame_provider.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "chromecast/media/base/decoder_buffer_base.h" |
9 #include "chromecast/media/cma/base/buffering_state.h" | 10 #include "chromecast/media/cma/base/buffering_state.h" |
10 #include "chromecast/media/cma/base/decoder_buffer_base.h" | |
11 #include "media/base/bind_to_current_loop.h" | 11 #include "media/base/bind_to_current_loop.h" |
12 | 12 |
13 namespace chromecast { | 13 namespace chromecast { |
14 namespace media { | 14 namespace media { |
15 | 15 |
16 BufferingFrameProvider::BufferWithConfig::BufferWithConfig( | 16 BufferingFrameProvider::BufferWithConfig::BufferWithConfig( |
17 const scoped_refptr<DecoderBufferBase>& buffer, | 17 const scoped_refptr<DecoderBufferBase>& buffer, |
18 const ::media::AudioDecoderConfig& audio_config, | 18 const ::media::AudioDecoderConfig& audio_config, |
19 const ::media::VideoDecoderConfig& video_config) | 19 const ::media::VideoDecoderConfig& video_config) |
20 : buffer_(buffer), | 20 : buffer_(buffer), |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 total_buffer_size_ -= buffer_with_config.buffer()->data_size(); | 130 total_buffer_size_ -= buffer_with_config.buffer()->data_size(); |
131 | 131 |
132 base::ResetAndReturn(&read_cb_).Run( | 132 base::ResetAndReturn(&read_cb_).Run( |
133 buffer_with_config.buffer(), | 133 buffer_with_config.buffer(), |
134 buffer_with_config.audio_config(), | 134 buffer_with_config.audio_config(), |
135 buffer_with_config.video_config()); | 135 buffer_with_config.video_config()); |
136 } | 136 } |
137 | 137 |
138 } // namespace media | 138 } // namespace media |
139 } // namespace chromecast | 139 } // namespace chromecast |
OLD | NEW |