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

Side by Side Diff: content/browser/renderer_host/media/video_capture_host.h

Issue 312803002: Android media: VideoFrame should not store so many sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ios build Created 6 years, 5 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 // VideoCaptureHost serves video capture related messages from 5 // VideoCaptureHost serves video capture related messages from
6 // VideoCaptureMessageFilter which lives inside the render process. 6 // VideoCaptureMessageFilter which lives inside the render process.
7 // 7 //
8 // This class is owned by RenderProcessHostImpl, and instantiated on UI 8 // This class is owned by RenderProcessHostImpl, and instantiated on UI
9 // thread, but all other operations and method calls happen on IO thread. 9 // thread, but all other operations and method calls happen on IO thread.
10 // 10 //
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const base::WeakPtr<VideoCaptureController>& controller); 117 const base::WeakPtr<VideoCaptureController>& controller);
118 118
119 // IPC message: Stop capture on device referenced by |device_id|. 119 // IPC message: Stop capture on device referenced by |device_id|.
120 void OnStopCapture(int device_id); 120 void OnStopCapture(int device_id);
121 121
122 // IPC message: Pause capture on device referenced by |device_id|. 122 // IPC message: Pause capture on device referenced by |device_id|.
123 void OnPauseCapture(int device_id); 123 void OnPauseCapture(int device_id);
124 124
125 // IPC message: Receive an empty buffer from renderer. Send it to device 125 // IPC message: Receive an empty buffer from renderer. Send it to device
126 // referenced by |device_id|. 126 // referenced by |device_id|.
127 void OnReceiveEmptyBuffer(int device_id, 127 void OnReceiveEmptyBuffer(int device_id, int buffer_id, uint32 sync_point);
128 int buffer_id,
129 const std::vector<uint32>& sync_points);
130 128
131 // IPC message: Get supported formats referenced by |capture_session_id|. 129 // IPC message: Get supported formats referenced by |capture_session_id|.
132 // |device_id| is needed for message back-routing purposes. 130 // |device_id| is needed for message back-routing purposes.
133 void OnGetDeviceSupportedFormats( 131 void OnGetDeviceSupportedFormats(
134 int device_id, 132 int device_id,
135 media::VideoCaptureSessionId capture_session_id); 133 media::VideoCaptureSessionId capture_session_id);
136 134
137 // IPC message: Get a device's currently in use format(s), referenced by 135 // IPC message: Get a device's currently in use format(s), referenced by
138 // |capture_session_id|. |device_id| is needed for message back-routing 136 // |capture_session_id|. |device_id| is needed for message back-routing
139 // purposes. 137 // purposes.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // is connected. An entry in this map holds a null controller while it is in 184 // is connected. An entry in this map holds a null controller while it is in
187 // the process of starting. 185 // the process of starting.
188 EntryMap entries_; 186 EntryMap entries_;
189 187
190 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); 188 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost);
191 }; 189 };
192 190
193 } // namespace content 191 } // namespace content
194 192
195 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 193 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698