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

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

Issue 1157193002: RESOURCE_UTILIZATION in VideoFrameMetadata, a consumer feedback signal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@video_frame_done_callback
Patch Set: Addressed hubbe's round 2 comments, and REBASE. Created 5 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 // 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // IPC message: Stop capture on device referenced by |device_id|. 124 // IPC message: Stop capture on device referenced by |device_id|.
125 void OnStopCapture(int device_id); 125 void OnStopCapture(int device_id);
126 126
127 // IPC message: Pause capture on device referenced by |device_id|. 127 // IPC message: Pause capture on device referenced by |device_id|.
128 void OnPauseCapture(int device_id); 128 void OnPauseCapture(int device_id);
129 129
130 void OnResumeCapture(int device_id, 130 void OnResumeCapture(int device_id,
131 media::VideoCaptureSessionId session_id, 131 media::VideoCaptureSessionId session_id,
132 const media::VideoCaptureParams& params); 132 const media::VideoCaptureParams& params);
133 133
134 // IPC message: Receive an empty buffer from renderer. Send it to device 134 // IPC message: Called when a renderer is finished using a buffer. Notifies
135 // referenced by |device_id|. 135 // the controller.
136 void OnReceiveEmptyBuffer(int device_id, int buffer_id, uint32 sync_point); 136 void OnRendererFinishedWithBuffer(int device_id,
137 int buffer_id,
138 uint32 sync_point,
139 double consumer_resource_utilization);
137 140
138 // IPC message: Get supported formats referenced by |capture_session_id|. 141 // IPC message: Get supported formats referenced by |capture_session_id|.
139 // |device_id| is needed for message back-routing purposes. 142 // |device_id| is needed for message back-routing purposes.
140 void OnGetDeviceSupportedFormats( 143 void OnGetDeviceSupportedFormats(
141 int device_id, 144 int device_id,
142 media::VideoCaptureSessionId capture_session_id); 145 media::VideoCaptureSessionId capture_session_id);
143 146
144 // IPC message: Get a device's currently in use format(s), referenced by 147 // IPC message: Get a device's currently in use format(s), referenced by
145 // |capture_session_id|. |device_id| is needed for message back-routing 148 // |capture_session_id|. |device_id| is needed for message back-routing
146 // purposes. 149 // purposes.
(...skipping 14 matching lines...) Expand all
161 // is connected. An entry in this map holds a null controller while it is in 164 // is connected. An entry in this map holds a null controller while it is in
162 // the process of starting. 165 // the process of starting.
163 EntryMap entries_; 166 EntryMap entries_;
164 167
165 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); 168 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost);
166 }; 169 };
167 170
168 } // namespace content 171 } // namespace content
169 172
170 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 173 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698