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

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

Issue 2410383002: VideoCapture: more migration IPC-->mojo, part 6 (Closed)
Patch Set: Comment correction Created 4 years, 2 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/capture/video/video_capture_buffer_tracker.h
diff --git a/media/capture/video/video_capture_buffer_tracker.h b/media/capture/video/video_capture_buffer_tracker.h
index a19b187cf0d99a0d2c0df05f0b60fc457057c428..720b7824b1a7080dd86f0ae78ec9c441ceef5da6 100644
--- a/media/capture/video/video_capture_buffer_tracker.h
+++ b/media/capture/video/video_capture_buffer_tracker.h
@@ -10,6 +10,7 @@
#include "base/synchronization/lock.h"
#include "media/base/video_capture_types.h"
#include "media/capture/video/video_capture_buffer_handle.h"
+#include "mojo/public/cpp/system/buffer.h"
namespace media {
@@ -46,12 +47,10 @@ class CAPTURE_EXPORT VideoCaptureBufferTracker {
int consumer_hold_count() const { return consumer_hold_count_; }
void set_consumer_hold_count(int value) { consumer_hold_count_ = value; }
- // Returns a handle to the underlying storage, be that a block of Shared
- // Memory, or a GpuMemoryBuffer.
+ // Returns a scoped handle to the underlying storage.
virtual std::unique_ptr<VideoCaptureBufferHandle> GetBufferHandle() = 0;
- virtual bool ShareToProcess(base::ProcessHandle process_handle,
- base::SharedMemoryHandle* new_handle) = 0;
+ virtual mojo::ScopedSharedBufferHandle GetHandleForTransit() = 0;
private:
// |dimensions_| may change as a VideoCaptureBufferTracker is re-used, but

Powered by Google App Engine
This is Rietveld 408576698