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

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

Issue 1106563002: FakeVideoCaptureDevice: add support for capturing into Dma-Bufs using VGEM in CrOs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: media/video/capture/fake_video_capture_device.h
diff --git a/media/video/capture/fake_video_capture_device.h b/media/video/capture/fake_video_capture_device.h
index f4a19f9edb9c2c6611aa8d66cc15094f905ead7f..6bad68faeaece47b8de7bab09ae739853fde570b 100644
--- a/media/video/capture/fake_video_capture_device.h
+++ b/media/video/capture/fake_video_capture_device.h
@@ -17,6 +17,10 @@
#include "base/threading/thread_checker.h"
#include "media/video/capture/video_capture_device.h"
+#if defined(OS_POSIX)
+#include "base/files/scoped_file.h"
+#endif
+
namespace media {
class MEDIA_EXPORT FakeVideoCaptureDevice : public VideoCaptureDevice {
@@ -57,6 +61,11 @@ class MEDIA_EXPORT FakeVideoCaptureDevice : public VideoCaptureDevice {
int frame_count_;
VideoCaptureFormat capture_format_;
+#if defined(OS_POSIX)
+ class DrmDumbBuffer;
+ scoped_ptr<DrmDumbBuffer> drm_buffer_;
+#endif
+
// FakeVideoCaptureDevice post tasks to itself for frame construction and
// needs to deal with asynchronous StopAndDeallocate().
base::WeakPtrFactory<FakeVideoCaptureDevice> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698