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

Unified Diff: media/base/video_frame.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, 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 side-by-side diff with in-line comments
Download patch
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 2135ae8306e5617d97d74a56901d42ff8823104b..fe37bd39281d4746e3cca02311f9b62a4690cf01 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -77,7 +77,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
// CB to be called on the mailbox backing this frame when the frame is
// destroyed.
- typedef base::Callback<void(uint32)> ReleaseMailboxCB;
+ typedef base::Callback<void(uint32, const gpu::SyncToken&)> ReleaseMailboxCB;
// Interface representing client operations on a SyncPoint, i.e. insert one in
// the GPU Command Buffer and wait for it.
@@ -85,7 +85,8 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
public:
SyncPointClient() {}
virtual uint32 InsertSyncPoint() = 0;
- virtual void WaitSyncPoint(uint32 sync_point) = 0;
+ virtual void WaitSyncPoint(uint32 sync_point,
+ const gpu::SyncToken& sync_token) = 0;
protected:
virtual ~SyncPointClient() {}
@@ -493,6 +494,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
base::Lock release_sync_point_lock_;
uint32 release_sync_point_;
+ gpu::SyncToken release_sync_token_;
VideoFrameMetadata metadata_;

Powered by Google App Engine
This is Rietveld 408576698