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 "chrome/renderer/media/cast_receiver_session_delegate.h" | 5 #include "chrome/renderer/media/cast_receiver_session_delegate.h" |
6 | 6 |
7 #include "base/synchronization/waitable_event.h" | 7 #include "base/synchronization/waitable_event.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 | 9 |
10 CastReceiverSessionDelegate::CastReceiverSessionDelegate() | 10 CastReceiverSessionDelegate::CastReceiverSessionDelegate() |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void CastReceiverSessionDelegate::StopVideo() { | 89 void CastReceiverSessionDelegate::StopVideo() { |
90 frame_callback_ = content::VideoCaptureDeliverFrameCB(); | 90 frame_callback_ = content::VideoCaptureDeliverFrameCB(); |
91 } | 91 } |
92 | 92 |
93 void CastReceiverSessionDelegate::OnDecodedVideoFrame( | 93 void CastReceiverSessionDelegate::OnDecodedVideoFrame( |
94 const scoped_refptr<media::VideoFrame>& video_frame, | 94 const scoped_refptr<media::VideoFrame>& video_frame, |
95 const base::TimeTicks& playout_time, | 95 const base::TimeTicks& playout_time, |
96 bool is_continous) { | 96 bool is_continous) { |
97 if (frame_callback_.is_null()) | 97 if (frame_callback_.is_null()) |
98 return; | 98 return; |
99 frame_callback_.Run(video_frame, format_, playout_time); | 99 frame_callback_.Run(video_frame, playout_time); |
100 cast_receiver_->RequestDecodedVideoFrame(on_video_decoded_cb_); | 100 cast_receiver_->RequestDecodedVideoFrame(on_video_decoded_cb_); |
101 } | 101 } |
OLD | NEW |