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

Unified Diff: content/common/gpu/gpu_messages.h

Issue 1128213005: Passing Native Texture backed Video Frame from Renderer to GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Passing a Texture+SharedMemory video frame. Created 5 years, 6 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/gpu/gpu_messages.h
diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h
index c60cfad78b09d57a4ec22ff5501bac55f2c66011..0ad079466c77359fb30ef5b846c2d7c78bbcafc9 100644
--- a/content/common/gpu/gpu_messages.h
+++ b/content/common/gpu/gpu_messages.h
@@ -121,6 +121,16 @@ IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params)
IPC_STRUCT_MEMBER(uint32, output_buffer_size)
IPC_STRUCT_END()
+IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params)
+ IPC_STRUCT_MEMBER(int, frame_id)
+ IPC_STRUCT_MEMBER(bool, force_keyframe)
+ IPC_STRUCT_MEMBER(media::VideoFrame::StorageType, storage_type)
+ IPC_STRUCT_MEMBER(media::VideoFrame::Format, pixel_format)
+ IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle)
+ IPC_STRUCT_MEMBER(uint32, buffer_offset)
+ IPC_STRUCT_MEMBER(uint32, buffer_size)
+IPC_STRUCT_END()
+
IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage)
IPC_STRUCT_MEMBER(int32, id)
IPC_STRUCT_MEMBER(std::string, message)
@@ -725,14 +735,10 @@ IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
// Accelerated Video Encoder Messages
// These messages are sent from the Renderer process to GPU process.
-// Queue a input buffer to the encoder to encode. |frame_id| will be returned by
-// AcceleratedVideoEncoderHostMsg_NotifyInputDone.
-IPC_MESSAGE_ROUTED5(AcceleratedVideoEncoderMsg_Encode,
- int32 /* frame_id */,
- base::SharedMemoryHandle /* buffer_handle */,
- uint32 /* buffer_offset */,
- uint32 /* buffer_size */,
- bool /* force_keyframe */)
+// Queue a video frame to the encoder to encode. |frame_id| will be returned
+// by AcceleratedVideoEncoderHostMsg_NotifyInputDone.
+IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderMsg_Encode,
+ AcceleratedVideoEncoderMsg_Encode_Params)
// Queue a buffer to the encoder for use in returning output. |buffer_id| will
// be returned by AcceleratedVideoEncoderHostMsg_BitstreamBufferReady.

Powered by Google App Engine
This is Rietveld 408576698