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

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

Issue 2045813003: Decouple capture timestamp and reference time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 years, 6 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
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" 7 #include "content/common/media/video_capture.h"
8 #include "content/public/common/common_param_traits.h" 8 #include "content/public/common/common_param_traits.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "media/base/video_capture_types.h" 10 #include "media/base/video_capture_types.h"
(...skipping 15 matching lines...) Expand all
26 26
27 IPC_STRUCT_TRAITS_BEGIN(media::VideoCaptureParams) 27 IPC_STRUCT_TRAITS_BEGIN(media::VideoCaptureParams)
28 IPC_STRUCT_TRAITS_MEMBER(requested_format) 28 IPC_STRUCT_TRAITS_MEMBER(requested_format)
29 IPC_STRUCT_TRAITS_MEMBER(resolution_change_policy) 29 IPC_STRUCT_TRAITS_MEMBER(resolution_change_policy)
30 IPC_STRUCT_TRAITS_MEMBER(power_line_frequency) 30 IPC_STRUCT_TRAITS_MEMBER(power_line_frequency)
31 IPC_STRUCT_TRAITS_END() 31 IPC_STRUCT_TRAITS_END()
32 32
33 IPC_STRUCT_BEGIN(VideoCaptureMsg_BufferReady_Params) 33 IPC_STRUCT_BEGIN(VideoCaptureMsg_BufferReady_Params)
34 IPC_STRUCT_MEMBER(int, device_id) 34 IPC_STRUCT_MEMBER(int, device_id)
35 IPC_STRUCT_MEMBER(int, buffer_id) 35 IPC_STRUCT_MEMBER(int, buffer_id)
36 IPC_STRUCT_MEMBER(base::TimeTicks, timestamp) 36 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp)
37 IPC_STRUCT_MEMBER(base::DictionaryValue, metadata) 37 IPC_STRUCT_MEMBER(base::DictionaryValue, metadata)
38 IPC_STRUCT_MEMBER(media::VideoPixelFormat, pixel_format) 38 IPC_STRUCT_MEMBER(media::VideoPixelFormat, pixel_format)
39 IPC_STRUCT_MEMBER(media::VideoFrame::StorageType, storage_type) 39 IPC_STRUCT_MEMBER(media::VideoFrame::StorageType, storage_type)
40 IPC_STRUCT_MEMBER(gfx::Size, coded_size) 40 IPC_STRUCT_MEMBER(gfx::Size, coded_size)
41 IPC_STRUCT_MEMBER(gfx::Rect, visible_rect) 41 IPC_STRUCT_MEMBER(gfx::Rect, visible_rect)
42 IPC_STRUCT_END() 42 IPC_STRUCT_END()
43 43
44 // TODO(nick): device_id in these messages is basically just a route_id. We 44 // TODO(nick): device_id in these messages is basically just a route_id. We
45 // should shift to IPC_MESSAGE_ROUTED and use MessageRouter in the filter impls. 45 // should shift to IPC_MESSAGE_ROUTED and use MessageRouter in the filter impls.
46 46
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Get the formats supported by a device referenced by |capture_session_id|. 126 // Get the formats supported by a device referenced by |capture_session_id|.
127 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats, 127 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats,
128 int /* device_id */, 128 int /* device_id */,
129 media::VideoCaptureSessionId /* session_id */) 129 media::VideoCaptureSessionId /* session_id */)
130 130
131 // Get the format(s) in use by a device referenced by |capture_session_id|. 131 // Get the format(s) in use by a device referenced by |capture_session_id|.
132 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse, 132 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse,
133 int /* device_id */, 133 int /* device_id */,
134 media::VideoCaptureSessionId /* session_id */) 134 media::VideoCaptureSessionId /* session_id */)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_manager_unittest.cc ('k') | content/renderer/media/video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698