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

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: git pull 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 e0efe3aa7af803485b3977e2871aa6cf4ed6abe6..4175412138f00470ea8628775e2acbdcbef3f0fc 100644
--- a/media/video/capture/video_capture_device.cc
+++ b/media/video/capture/video_capture_device.cc
@@ -26,4 +26,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