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

Unified Diff: content/common/media/video_capture_messages.h

Issue 1267883002: Pass GpuMemoryBuffer backed VideoFrame from browser to renderer processes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmbtracker-multiple
Patch Set: Rebase Created 5 years, 4 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/common/media/video_capture_messages.h
diff --git a/content/common/media/video_capture_messages.h b/content/common/media/video_capture_messages.h
index 2534dae05d45121206f622b4a5fe620dd2b2e88a..bd78d06b542bead50928c0181c0789b6569e05e8 100644
--- a/content/common/media/video_capture_messages.h
+++ b/content/common/media/video_capture_messages.h
@@ -10,6 +10,7 @@
#include "ipc/ipc_message_macros.h"
#include "media/base/video_capture_types.h"
#include "media/base/video_frame.h"
+#include "ui/gfx/gpu_memory_buffer.h"
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
@@ -62,6 +63,14 @@ IPC_MESSAGE_CONTROL4(VideoCaptureMsg_NewBuffer,
int /* length */,
int /* buffer_id */)
+// Tell the renderer process that a new GpuMemoryBuffer backed buffer is
+// allocated for video capture.
+IPC_MESSAGE_CONTROL4(VideoCaptureMsg_NewBuffer2,
+ int /* device id */,
+ std::vector<gfx::GpuMemoryBufferHandle> /* handles */,
+ gfx::Size /* dimensions */,
+ int /* buffer_id */)
+
// Tell the renderer process that it should release a buffer previously
// allocated by VideoCaptureMsg_NewBuffer.
IPC_MESSAGE_CONTROL2(VideoCaptureMsg_FreeBuffer,
« no previous file with comments | « content/browser/renderer_host/media/video_capture_manager_unittest.cc ('k') | content/renderer/media/video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698