OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/media/rtc_video_capture_delegate.h" | 5 #include "content/renderer/media/rtc_video_capture_delegate.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "media/base/video_frame.h" |
8 | 9 |
9 namespace content { | 10 namespace content { |
10 | 11 |
11 RtcVideoCaptureDelegate::RtcVideoCaptureDelegate( | 12 RtcVideoCaptureDelegate::RtcVideoCaptureDelegate( |
12 const media::VideoCaptureSessionId id, | 13 const media::VideoCaptureSessionId id, |
13 VideoCaptureImplManager* vc_manager) | 14 VideoCaptureImplManager* vc_manager) |
14 : session_id_(id), | 15 : session_id_(id), |
15 vc_manager_(vc_manager), | 16 vc_manager_(vc_manager), |
16 capture_engine_(NULL), | 17 capture_engine_(NULL), |
17 got_first_frame_(false), | 18 got_first_frame_(false), |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 115 } |
115 | 116 |
116 | 117 |
117 void RtcVideoCaptureDelegate::OnRemovedOnCaptureThread( | 118 void RtcVideoCaptureDelegate::OnRemovedOnCaptureThread( |
118 media::VideoCapture* capture) { | 119 media::VideoCapture* capture) { |
119 if (!error_occured_ && !state_callback_.is_null()) | 120 if (!error_occured_ && !state_callback_.is_null()) |
120 state_callback_.Run(CAPTURE_STOPPED); | 121 state_callback_.Run(CAPTURE_STOPPED); |
121 } | 122 } |
122 | 123 |
123 } // namespace content | 124 } // namespace content |
OLD | NEW |