| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |