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

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

Issue 615043006: Release the camera when WebRTC is not visible in Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 6 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
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 "gpu/command_buffer/common/mailbox_holder.h" 9 #include "gpu/command_buffer/common/mailbox_holder.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // process. The session to be started is determined by |params.session_id|. 80 // process. The session to be started is determined by |params.session_id|.
81 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Start, 81 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Start,
82 int /* device_id */, 82 int /* device_id */,
83 media::VideoCaptureSessionId, /* session_id */ 83 media::VideoCaptureSessionId, /* session_id */
84 media::VideoCaptureParams /* params */) 84 media::VideoCaptureParams /* params */)
85 85
86 // Pause the video capture specified by |device_id|. 86 // Pause the video capture specified by |device_id|.
87 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause, 87 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Pause,
88 int /* device_id */) 88 int /* device_id */)
89 89
90 // Resume the video capture specified by |device_id|, |session_id| and
91 // |params|.
92 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_Resume,
93 int, /* device_id */
94 media::VideoCaptureSessionId, /* session_id */
95 media::VideoCaptureParams /* params */)
96
90 // Close the video capture specified by |device_id|. 97 // Close the video capture specified by |device_id|.
91 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop, 98 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop,
92 int /* device_id */) 99 int /* device_id */)
93 100
94 // Tell the browser process that the renderer has finished reading from 101 // Tell the browser process that the renderer has finished reading from
95 // a buffer previously delivered by VideoCaptureMsg_BufferReady. 102 // a buffer previously delivered by VideoCaptureMsg_BufferReady.
96 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_BufferReady, 103 IPC_MESSAGE_CONTROL3(VideoCaptureHostMsg_BufferReady,
97 int /* device_id */, 104 int /* device_id */,
98 int /* buffer_id */, 105 int /* buffer_id */,
99 uint32 /* syncpoint */) 106 uint32 /* syncpoint */)
100 107
101 // Get the formats supported by a device referenced by |capture_session_id|. 108 // Get the formats supported by a device referenced by |capture_session_id|.
102 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats, 109 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats,
103 int /* device_id */, 110 int /* device_id */,
104 media::VideoCaptureSessionId /* session_id */) 111 media::VideoCaptureSessionId /* session_id */)
105 112
106 // Get the format(s) in use by a device referenced by |capture_session_id|. 113 // Get the format(s) in use by a device referenced by |capture_session_id|.
107 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse, 114 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse,
108 int /* device_id */, 115 int /* device_id */,
109 media::VideoCaptureSessionId /* session_id */) 116 media::VideoCaptureSessionId /* session_id */)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_manager.cc ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698