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); |