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

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

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mock gpu video accelerator factory Created 5 years, 1 month 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 124
125 void OnResumeCapture(int device_id, 125 void OnResumeCapture(int device_id,
126 media::VideoCaptureSessionId session_id, 126 media::VideoCaptureSessionId session_id,
127 const media::VideoCaptureParams& params); 127 const media::VideoCaptureParams& params);
128 128
129 // IPC message: Called when a renderer is finished using a buffer. Notifies 129 // IPC message: Called when a renderer is finished using a buffer. Notifies
130 // the controller. 130 // the controller.
131 void OnRendererFinishedWithBuffer(int device_id, 131 void OnRendererFinishedWithBuffer(int device_id,
132 int buffer_id, 132 int buffer_id,
133 uint32 sync_point, 133 uint32 sync_point,
134 const gpu::SyncToken& sync_token,
134 double consumer_resource_utilization); 135 double consumer_resource_utilization);
135 136
136 // IPC message: Get supported formats referenced by |capture_session_id|. 137 // IPC message: Get supported formats referenced by |capture_session_id|.
137 // |device_id| is needed for message back-routing purposes. 138 // |device_id| is needed for message back-routing purposes.
138 void OnGetDeviceSupportedFormats( 139 void OnGetDeviceSupportedFormats(
139 int device_id, 140 int device_id,
140 media::VideoCaptureSessionId capture_session_id); 141 media::VideoCaptureSessionId capture_session_id);
141 142
142 // IPC message: Get a device's currently in use format(s), referenced by 143 // IPC message: Get a device's currently in use format(s), referenced by
143 // |capture_session_id|. |device_id| is needed for message back-routing 144 // |capture_session_id|. |device_id| is needed for message back-routing
(...skipping 15 matching lines...) Expand all
159 // is connected. An entry in this map holds a null controller while it is in 160 // is connected. An entry in this map holds a null controller while it is in
160 // the process of starting. 161 // the process of starting.
161 EntryMap entries_; 162 EntryMap entries_;
162 163
163 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); 164 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost);
164 }; 165 };
165 166
166 } // namespace content 167 } // namespace content
167 168
168 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 169 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698