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

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: rebase to ToT Created 6 years, 7 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 virtual void OnDeviceSupportedFormatsEnumerated( 122 virtual void OnDeviceSupportedFormatsEnumerated(
123 const media::VideoCaptureFormats& supported_formats) OVERRIDE; 123 const media::VideoCaptureFormats& supported_formats) OVERRIDE;
124 virtual void OnDeviceFormatsInUseReceived( 124 virtual void OnDeviceFormatsInUseReceived(
125 const media::VideoCaptureFormats& formats_in_use) OVERRIDE; 125 const media::VideoCaptureFormats& formats_in_use) OVERRIDE;
126 virtual void OnDelegateAdded(int32 device_id) OVERRIDE; 126 virtual void OnDelegateAdded(int32 device_id) OVERRIDE;
127 127
128 // Sends an IPC message to browser process when all clients are done with the 128 // Sends an IPC message to browser process when all clients are done with the
129 // buffer. 129 // buffer.
130 void OnClientBufferFinished(int buffer_id, 130 void OnClientBufferFinished(int buffer_id,
131 const scoped_refptr<ClientBuffer>& buffer, 131 const scoped_refptr<ClientBuffer>& buffer,
132 scoped_ptr<gpu::MailboxHolder> mailbox_holder); 132 const std::vector<uint32>& release_sync_points);
133 133
134 void StopDevice(); 134 void StopDevice();
135 void RestartCapture(); 135 void RestartCapture();
136 void StartCaptureInternal(); 136 void StartCaptureInternal();
137 137
138 virtual void Send(IPC::Message* message); 138 virtual void Send(IPC::Message* message);
139 139
140 // Helpers. 140 // Helpers.
141 bool RemoveClient(int client_id, ClientInfoMap* clients); 141 bool RemoveClient(int client_id, ClientInfoMap* clients);
142 142
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // in |client_buffers_|. 180 // in |client_buffers_|.
181 // NOTE: Weak pointers must be invalidated before all other member variables. 181 // NOTE: Weak pointers must be invalidated before all other member variables.
182 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; 182 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_;
183 183
184 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); 184 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl);
185 }; 185 };
186 186
187 } // namespace content 187 } // namespace content
188 188
189 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 189 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698