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

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: Removed MediaCodec.CodecException that was added only at level 21 (Android L) 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 a6fa99eaf22f5c91f23036aa46baec0c7f652837..7843f2bdf5d557e16c643ee7383e36068c6b9fda 100644
--- a/content/common/gpu/gpu_messages.h
+++ b/content/common/gpu/gpu_messages.h
@@ -28,6 +28,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"
@@ -148,6 +149,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)
@@ -276,6 +287,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.
@@ -667,11 +683,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