| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/video/capture/video_capture_proxy.h" | 5 #include "media/video/capture/video_capture_proxy.h" |
| 6 | 6 |
| 7 #include "base/location.h" |
| 7 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
| 8 | 9 |
| 9 namespace { | 10 namespace { |
| 10 | 11 |
| 11 // Called on VC thread: extracts the state out of the VideoCapture, and | 12 // Called on VC thread: extracts the state out of the VideoCapture, and |
| 12 // serialize it into a VideoCaptureState. | 13 // serialize it into a VideoCaptureState. |
| 13 media::VideoCaptureHandlerProxy::VideoCaptureState GetState( | 14 media::VideoCaptureHandlerProxy::VideoCaptureState GetState( |
| 14 media::VideoCapture* capture) { | 15 media::VideoCapture* capture) { |
| 15 media::VideoCaptureHandlerProxy::VideoCaptureState state; | 16 media::VideoCaptureHandlerProxy::VideoCaptureState state; |
| 16 state.started = capture->CaptureStarted(); | 17 state.started = capture->CaptureStarted(); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 129 |
| 129 void VideoCaptureHandlerProxy::OnDeviceInfoReceivedOnMainThread( | 130 void VideoCaptureHandlerProxy::OnDeviceInfoReceivedOnMainThread( |
| 130 VideoCapture* capture, | 131 VideoCapture* capture, |
| 131 const VideoCaptureState& state, | 132 const VideoCaptureState& state, |
| 132 const VideoCaptureParams& device_info) { | 133 const VideoCaptureParams& device_info) { |
| 133 state_ = state; | 134 state_ = state; |
| 134 proxied_->OnDeviceInfoReceived(capture, device_info); | 135 proxied_->OnDeviceInfoReceived(capture, device_info); |
| 135 } | 136 } |
| 136 | 137 |
| 137 } // namespace media | 138 } // namespace media |
| OLD | NEW |