Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Side by Side Diff: trunk/src/media/video/capture/video_capture_proxy.cc

Issue 84393002: Revert 236927 "Reorganize media::VideoCapture* types" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "media/base/video_frame.h"
11 10
12 namespace { 11 namespace {
13 12
14 // Called on VC thread: extracts the state out of the VideoCapture, and 13 // Called on VC thread: extracts the state out of the VideoCapture, and
15 // serialize it into a VideoCaptureState. 14 // serialize it into a VideoCaptureState.
16 media::VideoCaptureHandlerProxy::VideoCaptureState GetState( 15 media::VideoCaptureHandlerProxy::VideoCaptureState GetState(
17 media::VideoCapture* capture) { 16 media::VideoCapture* capture) {
18 media::VideoCaptureHandlerProxy::VideoCaptureState state; 17 media::VideoCaptureHandlerProxy::VideoCaptureState state;
19 state.started = capture->CaptureStarted(); 18 state.started = capture->CaptureStarted();
20 state.frame_rate = capture->CaptureFrameRate(); 19 state.frame_rate = capture->CaptureFrameRate();
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 125
127 void VideoCaptureHandlerProxy::OnFrameReadyOnMainThread( 126 void VideoCaptureHandlerProxy::OnFrameReadyOnMainThread(
128 VideoCapture* capture, 127 VideoCapture* capture,
129 const VideoCaptureState& state, 128 const VideoCaptureState& state,
130 const scoped_refptr<VideoFrame>& frame) { 129 const scoped_refptr<VideoFrame>& frame) {
131 state_ = state; 130 state_ = state;
132 proxied_->OnFrameReady(capture, frame); 131 proxied_->OnFrameReady(capture, frame);
133 } 132 }
134 133
135 } // namespace media 134 } // namespace media
OLDNEW
« no previous file with comments | « trunk/src/media/video/capture/video_capture_device_unittest.cc ('k') | trunk/src/media/video/capture/video_capture_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698