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

Side by Side Diff: content/renderer/media/video_capture_impl.h

Issue 175223003: HW Video: Make media::VideoFrame handle the sync point of the compositor as well as webgl (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: previous patchset has unrelated code by mistake. Created 6 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // VideoCaptureImpl represents a capture device in renderer process. It provides 5 // VideoCaptureImpl represents a capture device in renderer process. It provides
6 // interfaces for clients to Start/Stop capture. It also communicates to clients 6 // interfaces for clients to Start/Stop capture. It also communicates to clients
7 // when buffer is ready, state of capture device is changed. 7 // when buffer is ready, state of capture device is changed.
8 8
9 // VideoCaptureImpl is also a delegate of VideoCaptureMessageFilter which relays 9 // VideoCaptureImpl is also a delegate of VideoCaptureMessageFilter which relays
10 // operation of a capture device to the browser process and receives responses 10 // operation of a capture device to the browser process and receives responses
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 virtual void OnDeviceSupportedFormatsEnumerated( 114 virtual void OnDeviceSupportedFormatsEnumerated(
115 const media::VideoCaptureFormats& supported_formats) OVERRIDE; 115 const media::VideoCaptureFormats& supported_formats) OVERRIDE;
116 virtual void OnDeviceFormatsInUseReceived( 116 virtual void OnDeviceFormatsInUseReceived(
117 const media::VideoCaptureFormats& formats_in_use) OVERRIDE; 117 const media::VideoCaptureFormats& formats_in_use) OVERRIDE;
118 virtual void OnDelegateAdded(int32 device_id) OVERRIDE; 118 virtual void OnDelegateAdded(int32 device_id) OVERRIDE;
119 119
120 // Sends an IPC message to browser process when all clients are done with the 120 // Sends an IPC message to browser process when all clients are done with the
121 // buffer. 121 // buffer.
122 void OnClientBufferFinished(int buffer_id, 122 void OnClientBufferFinished(int buffer_id,
123 const scoped_refptr<ClientBuffer>& buffer, 123 const scoped_refptr<ClientBuffer>& buffer,
124 scoped_ptr<gpu::MailboxHolder> mailbox_holder); 124 scoped_ptr<gpu::MailboxHolder> mailbox_holder,
125 const std::vector<uint32>& release_sync_points);
125 126
126 void StopDevice(); 127 void StopDevice();
127 void RestartCapture(); 128 void RestartCapture();
128 void StartCaptureInternal(); 129 void StartCaptureInternal();
129 130
130 virtual void Send(IPC::Message* message); 131 virtual void Send(IPC::Message* message);
131 132
132 // Helpers. 133 // Helpers.
133 bool RemoveClient(media::VideoCapture::EventHandler* handler, 134 bool RemoveClient(media::VideoCapture::EventHandler* handler,
134 ClientInfo* clients); 135 ClientInfo* clients);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // media::VideoFrames constructed in OnBufferReceived() from buffers cached 171 // media::VideoFrames constructed in OnBufferReceived() from buffers cached
171 // in |client_buffers_|. 172 // in |client_buffers_|.
172 base::WeakPtrFactory<VideoCaptureImpl> weak_this_factory_; 173 base::WeakPtrFactory<VideoCaptureImpl> weak_this_factory_;
173 174
174 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); 175 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl);
175 }; 176 };
176 177
177 } // namespace content 178 } // namespace content
178 179
179 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 180 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698