Index: media/gpu/ipc/common/media_messages.h |
diff --git a/media/gpu/ipc/common/media_messages.h b/media/gpu/ipc/common/media_messages.h |
index b48b3bdadd07981cddd2ca19cd770a83080b898d..ca715130984924b5ad23fd6c7f18ead72ee25d04 100644 |
--- a/media/gpu/ipc/common/media_messages.h |
+++ b/media/gpu/ipc/common/media_messages.h |
@@ -5,6 +5,9 @@ |
// Multiply-included message file, hence no include guard here, but see below |
// for a much smaller-than-usual include guard section. |
+#include <stdint.h> |
tguilbert
2016/09/19 22:32:22
No longer needed.
sandersd (OOO until July 31)
2016/09/19 22:40:33
It was needed before, just missing.
|
+ |
+#include "base/unguessable_token.h" |
#include "gpu/config/gpu_info.h" |
#include "gpu/ipc/common/gpu_param_traits_macros.h" |
#include "ipc/ipc_message_macros.h" |
@@ -43,6 +46,16 @@ IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params2) |
IPC_STRUCT_END() |
//------------------------------------------------------------------------------ |
+// Utility Messages |
+ |
+// Sent from Renderer to GPU process to request a token identifying the channel. |
+// These tokens can be used to prove ownership of the channel. The intended use |
+// case is to share the command buffer with MojoMediaApplication. |
+// TODO(sandersd): Switch to base::NonceToken once that exists. |
tguilbert
2016/09/19 22:32:22
Remove the TODO.
sandersd (OOO until July 31)
2016/09/19 22:40:33
Done.
|
+IPC_SYNC_MESSAGE_CONTROL0_1(GpuCommandBufferMsg_GetChannelToken, |
+ base::UnguessableToken /* channel_token */) |
+ |
+//------------------------------------------------------------------------------ |
// Accelerated Video Decoder Messages |
// These messages are sent from Renderer process to GPU process. |