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

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

Issue 1849003002: Add video frame refresh to MediaStream and VideoCapture stacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nick's PS3 comments (moving non-observer impl out of MSVideoSink interface). Created 4 years, 8 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause, 101 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause,
102 int /* device_id */) 102 int /* device_id */)
103 103
104 // Resume the video capture specified by |device_id|, |session_id| and 104 // Resume the video capture specified by |device_id|, |session_id| and
105 // |params|. 105 // |params|.
106 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Resume, 106 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Resume,
107 int, /* device_id */ 107 int, /* device_id */
108 media::VideoCaptureSessionId, /* session_id */ 108 media::VideoCaptureSessionId, /* session_id */
109 media::VideoCaptureParams /* params */) 109 media::VideoCaptureParams /* params */)
110 110
111 // Requests that the video capturer send a frame "soon" (e.g., to resolve
112 // picture loss or quality issues).
113 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_RequestRefreshFrame,
114 int /* device_id */);
115
111 // Close the video capture specified by |device_id|. 116 // Close the video capture specified by |device_id|.
112 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop, 117 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop,
113 int /* device_id */) 118 int /* device_id */)
114 119
115 // Tell the browser process that the renderer has finished reading from 120 // Tell the browser process that the renderer has finished reading from
116 // a buffer previously delivered by VideoCaptureMsg_BufferReady. 121 // a buffer previously delivered by VideoCaptureMsg_BufferReady.
117 IPC_MESSAGE_CONTROL4(VideoCaptureHostMsg_BufferReady, 122 IPC_MESSAGE_CONTROL4(VideoCaptureHostMsg_BufferReady,
118 int /* device_id */, 123 int /* device_id */,
119 int /* buffer_id */, 124 int /* buffer_id */,
120 gpu::SyncToken /* sync_token */, 125 gpu::SyncToken /* sync_token */,
121 double /* consumer_resource_utilization */) 126 double /* consumer_resource_utilization */)
122 127
123 // Get the formats supported by a device referenced by |capture_session_id|. 128 // Get the formats supported by a device referenced by |capture_session_id|.
124 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats, 129 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats,
125 int /* device_id */, 130 int /* device_id */,
126 media::VideoCaptureSessionId /* session_id */) 131 media::VideoCaptureSessionId /* session_id */)
127 132
128 // Get the format(s) in use by a device referenced by |capture_session_id|. 133 // Get the format(s) in use by a device referenced by |capture_session_id|.
129 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse, 134 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse,
130 int /* device_id */, 135 int /* device_id */,
131 media::VideoCaptureSessionId /* session_id */) 136 media::VideoCaptureSessionId /* session_id */)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_manager.cc ('k') | content/public/renderer/media_stream_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698