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

Unified Diff: content/renderer/media/video_capture_impl.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: format 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_capture_impl.h
diff --git a/content/renderer/media/video_capture_impl.h b/content/renderer/media/video_capture_impl.h
index 8918b6f4f5670dc20b48d41ad9efefa17e30c557..79436a31e983f372463e4b836fdabb5b94e73f85 100644
--- a/content/renderer/media/video_capture_impl.h
+++ b/content/renderer/media/video_capture_impl.h
@@ -104,6 +104,10 @@ class CONTENT_EXPORT VideoCaptureImpl
};
typedef std::map<int, ClientInfo> ClientInfoMap;
+ typedef base::Callback<void(const gpu::SyncToken& sync_token,
+ double consumer_resource_utilization)>
+ BufferFinishedCallback;
+
// VideoCaptureMessageFilter::Delegate interface.
void OnBufferCreated(base::SharedMemoryHandle handle,
int length,
@@ -130,16 +134,14 @@ class CONTENT_EXPORT VideoCaptureImpl
// Sends an IPC message to browser process when all clients are done with the
// buffer.
- void OnClientBufferFinished(
- int buffer_id,
- const scoped_refptr<ClientBuffer>& buffer,
- uint32 release_sync_point,
- double consumer_resource_utilization);
- void OnClientBufferFinished2(
- int buffer_id,
- const scoped_refptr<ClientBuffer2>& buffer,
- uint32 release_sync_point,
- double consumer_resource_utilization);
+ void OnClientBufferFinished(int buffer_id,
+ const scoped_refptr<ClientBuffer>& buffer,
+ const gpu::SyncToken& release_sync_token,
+ double consumer_resource_utilization);
+ void OnClientBufferFinished2(int buffer_id,
+ const scoped_refptr<ClientBuffer2>& buffer,
+ const gpu::SyncToken& release_sync_token,
+ double consumer_resource_utilization);
void StopDevice();
void RestartCapture();
@@ -155,9 +157,9 @@ class CONTENT_EXPORT VideoCaptureImpl
// RESOURCE_UTILIZATION value from the |metadata| and then runs the given
// callback, to trampoline back to the IO thread with the values.
static void DidFinishConsumingFrame(
- const media::VideoFrameMetadata* metadata,
- uint32* release_sync_point_storage, // Takes ownership.
- const base::Callback<void(uint32, double)>& callback_to_io_thread);
+ const media::VideoFrameMetadata* metadata,
+ gpu::SyncToken* release_sync_token_storage, // Takes ownership
+ const BufferFinishedCallback& callback_to_io_thread);
const scoped_refptr<VideoCaptureMessageFilter> message_filter_;
int device_id_;
« no previous file with comments | « content/renderer/media/rtc_video_decoder.cc ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698