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/test/utility/in_process_receiver.h" | 5 #include "media/cast/test/utility/in_process_receiver.h" |
6 | 6 |
7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
8 #include "base/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
11 #include "media/cast/cast_config.h" | 11 #include "media/cast/cast_config.h" |
12 #include "media/cast/cast_environment.h" | 12 #include "media/cast/cast_environment.h" |
13 #include "media/cast/cast_receiver.h" | 13 #include "media/cast/cast_receiver.h" |
14 #include "media/cast/transport/cast_transport_config.h" | 14 #include "media/cast/transport/cast_transport_config.h" |
15 #include "media/cast/transport/transport/udp_transport.h" | 15 #include "media/cast/transport/udp_transport.h" |
16 | 16 |
17 using media::cast::transport::CastTransportStatus; | 17 using media::cast::transport::CastTransportStatus; |
18 using media::cast::transport::UdpTransport; | 18 using media::cast::transport::UdpTransport; |
19 | 19 |
20 namespace media { | 20 namespace media { |
21 namespace cast { | 21 namespace cast { |
22 | 22 |
23 InProcessReceiver::InProcessReceiver( | 23 InProcessReceiver::InProcessReceiver( |
24 const scoped_refptr<CastEnvironment>& cast_environment, | 24 const scoped_refptr<CastEnvironment>& cast_environment, |
25 const net::IPEndPoint& local_end_point, | 25 const net::IPEndPoint& local_end_point, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 } | 120 } |
121 | 121 |
122 void InProcessReceiver::PullNextVideoFrame() { | 122 void InProcessReceiver::PullNextVideoFrame() { |
123 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN)); | 123 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN)); |
124 cast_receiver_->RequestDecodedVideoFrame(base::Bind( | 124 cast_receiver_->RequestDecodedVideoFrame(base::Bind( |
125 &InProcessReceiver::GotVideoFrame, weak_factory_.GetWeakPtr())); | 125 &InProcessReceiver::GotVideoFrame, weak_factory_.GetWeakPtr())); |
126 } | 126 } |
127 | 127 |
128 } // namespace cast | 128 } // namespace cast |
129 } // namespace media | 129 } // namespace media |
OLD | NEW |