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

Unified Diff: content/renderer/media/video_capture_impl.h

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
« no previous file with comments | « content/renderer/media/media_stream_impl.cc ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_capture_impl.h
===================================================================
--- content/renderer/media/video_capture_impl.h (revision 107671)
+++ content/renderer/media/video_capture_impl.h (working copy)
@@ -42,25 +42,13 @@
const media::VideoCaptureParams& device_info);
virtual void OnDelegateAdded(int32 device_id);
- bool pending_start() {
- return (new_params_.width > 0 && new_params_.height > 0);
- }
-
private:
friend class VideoCaptureImplManager;
friend class VideoCaptureImplTest;
friend class MockVideoCaptureImpl;
- struct DIBBuffer {
- public:
- DIBBuffer(base::SharedMemory* d,
- media::VideoCapture::VideoFrameBuffer* ptr);
- ~DIBBuffer();
+ struct DIBBuffer;
- base::SharedMemory* dib;
- scoped_refptr<media::VideoCapture::VideoFrameBuffer> mapped_memory;
- };
-
VideoCaptureImpl(media::VideoCaptureSessionId id,
scoped_refptr<base::MessageLoopProxy> ml_proxy,
VideoCaptureMessageFilter* filter);
@@ -88,8 +76,7 @@
virtual void Send(IPC::Message* message);
// Helpers.
- bool CapabilityMatchesParameters(const VideoCaptureCapability& capability,
- const media::VideoCaptureParams& params);
+ bool ClientHasDIB();
scoped_refptr<VideoCaptureMessageFilter> message_filter_;
scoped_refptr<base::MessageLoopProxy> ml_proxy_;
@@ -107,9 +94,9 @@
typedef std::map<media::VideoCapture::EventHandler*, VideoCaptureCapability>
ClientInfo;
ClientInfo clients_;
- std::list<media::VideoCapture::EventHandler*> master_clients_;
- ClientInfo pending_clients_;
+ ClientInfo clients_pending_on_filter_;
+ ClientInfo clients_pending_on_restart_;
media::VideoFrame::Format video_type_;
@@ -121,8 +108,6 @@
media::VideoCaptureParams device_info_;
bool device_info_available_;
- // The parameter will be used in next capture session.
- media::VideoCaptureParams new_params_;
State state_;
DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl);
« no previous file with comments | « content/renderer/media/media_stream_impl.cc ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698