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

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

Issue 101843005: Convert video capture pipline to base::TimeTicks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 9890509b Rebase, Windows compile fixes Created 6 years, 11 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 | Annotate | Revision Log
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/video/capture/video_capture_types.h" 10 #include "media/video/capture/video_capture_types.h"
(...skipping 28 matching lines...) Expand all
39 // Tell the renderer process that it should release a buffer previously 39 // Tell the renderer process that it should release a buffer previously
40 // allocated by VideoCaptureMsg_NewBuffer. 40 // allocated by VideoCaptureMsg_NewBuffer.
41 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_FreeBuffer, 41 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_FreeBuffer,
42 int /* device id */, 42 int /* device id */,
43 int /* buffer_id */) 43 int /* buffer_id */)
44 44
45 // Tell the renderer process that a buffer is available from video capture. 45 // Tell the renderer process that a buffer is available from video capture.
46 IPC_MESSAGE_CONTROL4(VideoCaptureMsg_BufferReady, 46 IPC_MESSAGE_CONTROL4(VideoCaptureMsg_BufferReady,
47 int /* device id */, 47 int /* device id */,
48 int /* buffer_id */, 48 int /* buffer_id */,
49 base::Time /* timestamp */, 49 base::TimeTicks /* timestamp */,
50 media::VideoCaptureFormat /* resolution */) 50 media::VideoCaptureFormat /* resolution */)
51 51
52 // Start a video capture as |device_id|, a new id picked by the renderer 52 // Start a video capture as |device_id|, a new id picked by the renderer
53 // process. The session to be started is determined by |params.session_id|. 53 // process. The session to be started is determined by |params.session_id|.
54 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Start, 54 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Start,
55 int /* device_id */, 55 int /* device_id */,
56 media::VideoCaptureSessionId, /* session_id */ 56 media::VideoCaptureSessionId, /* session_id */
57 media::VideoCaptureParams /* params */) 57 media::VideoCaptureParams /* params */)
58 58
59 // Pause the video capture specified by |device_id|. 59 // Pause the video capture specified by |device_id|.
60 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause, 60 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause,
61 int /* device_id */) 61 int /* device_id */)
62 62
63 // Close the video capture specified by |device_id|. 63 // Close the video capture specified by |device_id|.
64 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop, 64 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop,
65 int /* device_id */) 65 int /* device_id */)
66 66
67 // Tell the browser process that the renderer has finished reading from 67 // Tell the browser process that the renderer has finished reading from
68 // a buffer previously delivered by VideoCaptureMsg_BufferReady. 68 // a buffer previously delivered by VideoCaptureMsg_BufferReady.
69 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_BufferReady, 69 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_BufferReady,
70 int /* device_id */, 70 int /* device_id */,
71 int /* buffer_id */) 71 int /* buffer_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698