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

Unified Diff: media/video/capture/win/video_capture_device_win.cc

Issue 8304017: enable video capture to support sharing across multiple renderer processes (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/win/video_capture_device_win.cc
===================================================================
--- media/video/capture/win/video_capture_device_win.cc (revision 106642)
+++ media/video/capture/win/video_capture_device_win.cc (working copy)
@@ -333,6 +333,8 @@
return;
observer_ = observer;
+ observer_->OnDeviceState(true);
+
// Get the camera capability that best match the requested resolution.
const int capability_index = GetBestMatchedCapability(width, height,
frame_rate);
@@ -466,6 +468,7 @@
return;
}
+ observer_->OnDeviceState(false);
state_ = kIdle;
}

Powered by Google App Engine
This is Rietveld 408576698