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

Unified Diff: media/capture/video/video_capture_device.h

Issue 2551193002: [Mojo Video Capture] Decouple VCController from VCBufferPool and VCDeviceClient (Closed)
Patch Set: Created 4 years 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: media/capture/video/video_capture_device.h
diff --git a/media/capture/video/video_capture_device.h b/media/capture/video/video_capture_device.h
index dc0b77fb4f48e0817898e350515df779bfda6f42..d9b5ca9403474ea7a1dca1dad8161405ea0fc7e2 100644
--- a/media/capture/video/video_capture_device.h
+++ b/media/capture/video/video_capture_device.h
@@ -41,6 +41,15 @@ class Location;
namespace media {
+class CAPTURE_EXPORT FrameBufferHost {
mcasas 2016/12/06 20:02:24 In Chromium, Hosts are usually sitting at one end
chfremer 2016/12/06 21:07:41 Done.
+ public:
+ virtual ~FrameBufferHost() {}
+
+ virtual void SetBufferHold(int buffer_id) = 0;
+ virtual void ReleaseBufferHold(int buffer_id) = 0;
+ virtual mojo::ScopedSharedBufferHandle GetHandleForTransit(int buffer_id) = 0;
+};
mcasas 2016/12/06 20:02:24 Move it to a file on its own plz.
chfremer 2016/12/06 21:07:41 Please allow me to defer this as cleanup task by a
+
class CAPTURE_EXPORT VideoFrameConsumerFeedbackObserver {
mcasas 2016/12/06 20:02:24 We should move this fella to a file on its own too
chfremer 2016/12/06 21:07:41 Agreed. Please allow me to defer this as cleanup t
public:
virtual ~VideoFrameConsumerFeedbackObserver() {}
@@ -148,11 +157,10 @@ class CAPTURE_EXPORT VideoCaptureDevice
// |timestamp|.
// TODO(chfremer): Consider removing one of the two in order to simplify the
// interface.
- virtual void OnIncomingCapturedBuffer(
- std::unique_ptr<Buffer> buffer,
- const VideoCaptureFormat& frame_format,
- base::TimeTicks reference_time,
- base::TimeDelta timestamp) = 0;
+ virtual void OnIncomingCapturedBuffer(std::unique_ptr<Buffer> buffer,
+ const VideoCaptureFormat& format,
+ base::TimeTicks reference_time,
+ base::TimeDelta timestamp) = 0;
virtual void OnIncomingCapturedVideoFrame(
std::unique_ptr<Buffer> buffer,
scoped_refptr<VideoFrame> frame) = 0;

Powered by Google App Engine
This is Rietveld 408576698