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

Side by Side Diff: media/base/video_frame.h

Issue 1429213002: Converted video frame and image callbacks to use new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed typo 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
« no previous file with comments | « gpu/command_buffer/service/sync_point_manager.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef MEDIA_BASE_VIDEO_FRAME_H_ 5 #ifndef MEDIA_BASE_VIDEO_FRAME_H_
6 #define MEDIA_BASE_VIDEO_FRAME_H_ 6 #define MEDIA_BASE_VIDEO_FRAME_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // CB to be called on the mailbox backing this frame when the frame is 74 // CB to be called on the mailbox backing this frame when the frame is
75 // destroyed. 75 // destroyed.
76 typedef base::Callback<void(const gpu::SyncToken&)> ReleaseMailboxCB; 76 typedef base::Callback<void(const gpu::SyncToken&)> ReleaseMailboxCB;
77 77
78 // Interface representing client operations on a SyncToken, i.e. insert one in 78 // Interface representing client operations on a SyncToken, i.e. insert one in
79 // the GPU Command Buffer and wait for it. 79 // the GPU Command Buffer and wait for it.
80 class SyncTokenClient { 80 class SyncTokenClient {
81 public: 81 public:
82 SyncTokenClient() {} 82 SyncTokenClient() {}
83 virtual uint32 InsertSyncPoint() = 0; 83 virtual void GenerateSyncToken(gpu::SyncToken* sync_token) = 0;
84 virtual void WaitSyncToken(const gpu::SyncToken& sync_token) = 0; 84 virtual void WaitSyncToken(const gpu::SyncToken& sync_token) = 0;
85 85
86 protected: 86 protected:
87 virtual ~SyncTokenClient() {} 87 virtual ~SyncTokenClient() {}
88 88
89 DISALLOW_COPY_AND_ASSIGN(SyncTokenClient); 89 DISALLOW_COPY_AND_ASSIGN(SyncTokenClient);
90 }; 90 };
91 91
92 // Call prior to CreateFrame to ensure validity of frame configuration. Called 92 // Call prior to CreateFrame to ensure validity of frame configuration. Called
93 // automatically by VideoDecoderConfig::IsValidConfig(). 93 // automatically by VideoDecoderConfig::IsValidConfig().
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 gpu::SyncToken release_sync_token_; 516 gpu::SyncToken release_sync_token_;
517 517
518 VideoFrameMetadata metadata_; 518 VideoFrameMetadata metadata_;
519 519
520 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); 520 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
521 }; 521 };
522 522
523 } // namespace media 523 } // namespace media
524 524
525 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 525 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/sync_point_manager.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698