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

Unified Diff: media/video/capture/video_capture_device.cc

Issue 24133002: Make VideoCaptureController single-threaded and not ref counted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More longwinded hobbledy-nobble Created 7 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: media/video/capture/video_capture_device.cc
diff --git a/media/video/capture/video_capture_device.cc b/media/video/capture/video_capture_device.cc
index 5c1245613dd081e9e6bea051a44b8fc56bae02b5..6ada3efa22c9ff24f9fae75ee31cf3a441161b6f 100644
--- a/media/video/capture/video_capture_device.cc
+++ b/media/video/capture/video_capture_device.cc
@@ -25,4 +25,25 @@ VideoCaptureDevice::Names::FindById(const std::string& id) {
return NULL;
}
+VideoCaptureDevice::~VideoCaptureDevice() {}
+
+VideoCaptureDevice1::VideoCaptureDevice1() {}
+
+VideoCaptureDevice1::~VideoCaptureDevice1() {}
+
+void VideoCaptureDevice1::AllocateAndStart(
+ const VideoCaptureCapability& capture_format,
+ scoped_ptr<EventHandler> client) {
+ client_ = client.Pass();
+ Allocate(capture_format, client_.get());
+ Start();
+}
+
+void VideoCaptureDevice1::StopAndDeAllocate() {
+ Stop();
+ DeAllocate();
+ client_.reset();
+};
+
+
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698