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

Side by Side Diff: content/common/media/video_capture_messages.h

Issue 2409893003: VideoCapture: more migration IPC-->mojo, part 5 (Closed)
Patch Set: rebase content/common/BUILD.gn Created 4 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 unified diff | Download patch
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/video_capture.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/memory/shared_memory.h" 5 #include "base/memory/shared_memory.h"
6 #include "content/common/content_export.h" 6 #include "content/common/content_export.h"
7 #include "content/common/media/video_capture.h"
8 #include "content/public/common/common_param_traits.h" 7 #include "content/public/common/common_param_traits.h"
9 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
10 #include "media/base/video_capture_types.h"
11 #include "media/base/video_frame.h"
12 9
13 #undef IPC_MESSAGE_EXPORT 10 #undef IPC_MESSAGE_EXPORT
14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 11 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
15 #define IPC_MESSAGE_START VideoCaptureMsgStart 12 #define IPC_MESSAGE_START VideoCaptureMsgStart
16 13
17 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoFrame::StorageType,
18 media::VideoFrame::STORAGE_LAST)
19
20 IPC_STRUCT_BEGIN(VideoCaptureMsg_BufferReady_Params)
21 IPC_STRUCT_MEMBER(int, device_id)
22 IPC_STRUCT_MEMBER(int, buffer_id)
23 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp)
24 IPC_STRUCT_MEMBER(base::DictionaryValue, metadata)
25 IPC_STRUCT_MEMBER(media::VideoPixelFormat, pixel_format)
26 IPC_STRUCT_MEMBER(media::VideoFrame::StorageType, storage_type)
27 IPC_STRUCT_MEMBER(gfx::Size, coded_size)
28 IPC_STRUCT_MEMBER(gfx::Rect, visible_rect)
29 IPC_STRUCT_END()
30
31 // TODO(nick): device_id in these messages is basically just a route_id. We 14 // TODO(nick): device_id in these messages is basically just a route_id. We
32 // should shift to IPC_MESSAGE_ROUTED and use MessageRouter in the filter impls. 15 // should shift to IPC_MESSAGE_ROUTED and use MessageRouter in the filter impls.
33 16
34 // Tell the renderer process that a new buffer is allocated for video capture. 17 // Tell the renderer process that a new buffer is allocated for video capture.
35 IPC_MESSAGE_CONTROL4(VideoCaptureMsg_NewBuffer, 18 IPC_MESSAGE_CONTROL4(VideoCaptureMsg_NewBuffer,
36 int /* device id */, 19 int /* device id */,
37 base::SharedMemoryHandle /* handle */, 20 base::SharedMemoryHandle /* handle */,
38 int /* length */, 21 int /* length */,
39 int /* buffer_id */) 22 int /* buffer_id */)
40
41 // Tell the renderer process that it should release a buffer previously
42 // allocated by VideoCaptureMsg_NewBuffer.
43 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_FreeBuffer,
44 int /* device id */,
45 int /* buffer_id */)
46
47 // Tell the renderer process that a Buffer is available from video capture, and
48 // send the associated VideoFrame constituent parts as IPC parameters.
49 IPC_MESSAGE_CONTROL1(VideoCaptureMsg_BufferReady,
50 VideoCaptureMsg_BufferReady_Params)
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/video_capture.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698