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

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

Issue 83793004: Implement IPCs and VideoCapture::Client interfaces for texture capture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 5744a8bbb Nits. Created 6 years, 11 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: content/renderer/media/video_capture_impl.h
diff --git a/content/renderer/media/video_capture_impl.h b/content/renderer/media/video_capture_impl.h
index 0e8fea73fac0dc16618891451fbdae61efb4f23c..1eb2a615dc9d18be7c6290fad37e534401fd720d 100644
--- a/content/renderer/media/video_capture_impl.h
+++ b/content/renderer/media/video_capture_impl.h
@@ -39,8 +39,16 @@
#include "media/video/capture/video_capture_types.h"
namespace base {
+
class MessageLoopProxy;
-}
+
+} // namespace base
+
+namespace gpu {
+
+class MailboxHolder;
+
+} // namespace gpu
namespace content {
@@ -91,18 +99,22 @@ class CONTENT_EXPORT VideoCaptureImpl
int length,
int buffer_id) OVERRIDE;
virtual void OnBufferDestroyed(int buffer_id) OVERRIDE;
- virtual void OnBufferReceived(
- int buffer_id,
- base::TimeTicks timestamp,
- const media::VideoCaptureFormat& format) OVERRIDE;
+ virtual void OnBufferReceived(int buffer_id,
+ const media::VideoCaptureFormat& format,
+ base::TimeTicks) OVERRIDE;
+ virtual void OnMailboxBufferReceived(int buffer_id,
+ const gpu::MailboxHolder& mailbox_holder,
+ const media::VideoCaptureFormat& format,
+ base::TimeTicks timestamp) OVERRIDE;
+ OVERRIDE;
virtual void OnStateChanged(VideoCaptureState state) OVERRIDE;
virtual void OnDelegateAdded(int32 device_id) OVERRIDE;
// Sends an IPC message to browser process when all clients are done with the
// buffer.
- void OnClientBufferFinished(
- int buffer_id,
- const scoped_refptr<ClientBuffer>& buffer);
+ void OnClientBufferFinished(int buffer_id,
+ const scoped_refptr<ClientBuffer>& buffer,
+ const gpu::MailboxHolder* mailbox_holder);
void StopDevice();
void RestartCapture();

Powered by Google App Engine
This is Rietveld 408576698