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 "media/cast/receiver/cast_receiver_impl.h" | 5 #include "media/cast/receiver/cast_receiver_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/debug/trace_event.h" | |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "base/trace_event/trace_event.h" |
13 #include "media/cast/receiver/audio_decoder.h" | 13 #include "media/cast/receiver/audio_decoder.h" |
14 #include "media/cast/receiver/video_decoder.h" | 14 #include "media/cast/receiver/video_decoder.h" |
15 | 15 |
16 namespace media { | 16 namespace media { |
17 namespace cast { | 17 namespace cast { |
18 | 18 |
19 scoped_ptr<CastReceiver> CastReceiver::Create( | 19 scoped_ptr<CastReceiver> CastReceiver::Create( |
20 scoped_refptr<CastEnvironment> cast_environment, | 20 scoped_refptr<CastEnvironment> cast_environment, |
21 const FrameReceiverConfig& audio_config, | 21 const FrameReceiverConfig& audio_config, |
22 const FrameReceiverConfig& video_config, | 22 const FrameReceiverConfig& video_config, |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 TRACE_EVENT_INSTANT1( | 211 TRACE_EVENT_INSTANT1( |
212 "cast_perf_test", "FrameDecoded", | 212 "cast_perf_test", "FrameDecoded", |
213 TRACE_EVENT_SCOPE_THREAD, | 213 TRACE_EVENT_SCOPE_THREAD, |
214 "rtp_timestamp", rtp_timestamp); | 214 "rtp_timestamp", rtp_timestamp); |
215 } | 215 } |
216 callback.Run(video_frame, playout_time, is_continuous); | 216 callback.Run(video_frame, playout_time, is_continuous); |
217 } | 217 } |
218 | 218 |
219 } // namespace cast | 219 } // namespace cast |
220 } // namespace media | 220 } // namespace media |
OLD | NEW |