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" | |
9 | 8 |
10 namespace content { | 9 namespace content { |
11 | 10 |
12 RtcVideoCaptureDelegate::RtcVideoCaptureDelegate( | 11 RtcVideoCaptureDelegate::RtcVideoCaptureDelegate( |
13 const media::VideoCaptureSessionId id, | 12 const media::VideoCaptureSessionId id, |
14 VideoCaptureImplManager* vc_manager) | 13 VideoCaptureImplManager* vc_manager) |
15 : session_id_(id), | 14 : session_id_(id), |
16 vc_manager_(vc_manager), | 15 vc_manager_(vc_manager), |
17 capture_engine_(NULL), | 16 capture_engine_(NULL), |
18 got_first_frame_(false), | 17 got_first_frame_(false), |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 } | 114 } |
116 | 115 |
117 | 116 |
118 void RtcVideoCaptureDelegate::OnRemovedOnCaptureThread( | 117 void RtcVideoCaptureDelegate::OnRemovedOnCaptureThread( |
119 media::VideoCapture* capture) { | 118 media::VideoCapture* capture) { |
120 if (!error_occured_ && !state_callback_.is_null()) | 119 if (!error_occured_ && !state_callback_.is_null()) |
121 state_callback_.Run(CAPTURE_STOPPED); | 120 state_callback_.Run(CAPTURE_STOPPED); |
122 } | 121 } |
123 | 122 |
124 } // namespace content | 123 } // namespace content |
OLD | NEW |