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

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

Issue 2573223002: [Mojo Video Capture] Simplify media::VideoCaptureDevice::Client:Buffer to a struct (Closed)
Patch Set: Backport naming improvements and Ownership interface from future CLs 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_buffer_handle.h
diff --git a/media/capture/video/video_capture_buffer_handle.h b/media/capture/video/video_capture_buffer_handle.h
index 770dc2b25c1bb34450d1d2666184ed084d9cce5b..5dd15ebd26650666057a7f3e758549a31c7defea 100644
--- a/media/capture/video/video_capture_buffer_handle.h
+++ b/media/capture/video/video_capture_buffer_handle.h
@@ -17,14 +17,9 @@ namespace media {
class CAPTURE_EXPORT VideoCaptureBufferHandle {
public:
virtual ~VideoCaptureBufferHandle() {}
- virtual gfx::Size dimensions() const = 0;
virtual size_t mapped_size() const = 0;
- virtual void* data(int plane) = 0;
-#if defined(OS_POSIX) && !defined(OS_MACOSX)
- virtual base::FileDescriptor AsPlatformFile() = 0;
-#endif
- virtual bool IsBackedByVideoFrame() const = 0;
- virtual scoped_refptr<VideoFrame> GetVideoFrame() = 0;
+ virtual uint8_t* data() = 0;
+ virtual const uint8_t* data() const = 0;
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698