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

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

Issue 1422643002: Pass DecryptConfig parameters over IPC and use it in AVDA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: content/common/gpu/gpu_messages.h
diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h
index db972086099c32961d60ada66d4ab8c1b004bc8a..d818048b9ca73f6b8da9a759e6355afb0ec74a74 100644
--- a/content/common/gpu/gpu_messages.h
+++ b/content/common/gpu/gpu_messages.h
@@ -27,6 +27,7 @@
#include "gpu/ipc/gpu_command_buffer_traits.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_message_macros.h"
+#include "media/base/decrypt_config.h"
#include "media/base/video_types.h"
#include "media/video/jpeg_decode_accelerator.h"
#include "media/video/video_decode_accelerator.h"
@@ -147,6 +148,16 @@ IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params)
IPC_STRUCT_MEMBER(uint32, output_buffer_size)
IPC_STRUCT_END()
+IPC_STRUCT_BEGIN(AcceleratedVideoDecoderMsg_Decode_Params)
+ IPC_STRUCT_MEMBER(int32, bitstream_buffer_id)
+ IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle)
+ IPC_STRUCT_MEMBER(uint32, size)
+ IPC_STRUCT_MEMBER(base::TimeDelta, presentation_timestamp)
+ IPC_STRUCT_MEMBER(std::string, key_id)
+ IPC_STRUCT_MEMBER(std::string, iv)
+ IPC_STRUCT_MEMBER(std::vector<media::SubsampleEntry>, subsamples)
+IPC_STRUCT_END()
+
IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params)
IPC_STRUCT_MEMBER(int32_t, frame_id)
IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle)
@@ -275,6 +286,11 @@ IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle)
IPC_STRUCT_TRAITS_MEMBER(transport_type)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry)
+ IPC_STRUCT_TRAITS_MEMBER(clear_bytes)
+ IPC_STRUCT_TRAITS_MEMBER(cypher_bytes)
+IPC_STRUCT_TRAITS_END()
+
//------------------------------------------------------------------------------
// GPU Messages
// These are messages from the browser to the GPU process.
@@ -662,11 +678,8 @@ IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture,
// These messages are sent from Renderer process to GPU process.
// Send input buffer for decoding.
-IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderMsg_Decode,
- base::SharedMemoryHandle, /* input_buffer_handle */
- int32, /* bitstream_buffer_id */
- uint32, /* size */
- base::TimeDelta) /* presentation_timestamp */
+IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_Decode,
+ AcceleratedVideoDecoderMsg_Decode_Params)
// Sent from Renderer process to the GPU process to give the texture IDs for
// the textures the decoder will use for output.

Powered by Google App Engine
This is Rietveld 408576698