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

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: Created 5 years, 7 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 2f30dacd41ced89f019bcc70118e666041990247..bcc08c0b92761920652ace8db3c17a9c15b514fc 100644
--- a/content/common/gpu/gpu_messages.h
+++ b/content/common/gpu/gpu_messages.h
@@ -21,6 +21,7 @@
#include "gpu/command_buffer/common/constants.h"
#include "gpu/command_buffer/common/gpu_memory_allocation.h"
#include "gpu/command_buffer/common/mailbox.h"
+#include "gpu/command_buffer/common/mailbox_holder.h"
#include "gpu/command_buffer/common/value_state.h"
#include "gpu/config/gpu_info.h"
#include "gpu/ipc/gpu_command_buffer_traits.h"
@@ -706,13 +707,20 @@ IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
// Queue a input buffer to the encoder to encode. |frame_id| will be returned by
// AcceleratedVideoEncoderHostMsg_NotifyInputDone.
-IPC_MESSAGE_ROUTED5(AcceleratedVideoEncoderMsg_Encode,
+IPC_MESSAGE_ROUTED5(AcceleratedVideoEncoderMsg_EncodeSharedMemory,
int32 /* frame_id */,
base::SharedMemoryHandle /* buffer_handle */,
uint32 /* buffer_offset */,
uint32 /* buffer_size */,
bool /* force_keyframe */)
+// Queue a native texture to the encoder to encode. |frame_id| will be returned
+// by AcceleratedVideoEncoderHostMsg_NotifyInputDone.
+IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderMsg_EncodeNativeTexture,
+ int32 /* frame_id */,
+ gpu::MailboxHolder /* mailbox_holder */,
+ bool /* force_keyframe */)
+
// Queue a buffer to the encoder for use in returning output. |buffer_id| will
// be returned by AcceleratedVideoEncoderHostMsg_BitstreamBufferReady.
IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderMsg_UseOutputBitstreamBuffer,

Powered by Google App Engine
This is Rietveld 408576698