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

Unified Diff: media/base/video_frame_unittest.cc

Issue 1489573003: Added an extra sync token field for extra command buffer identification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: media/base/video_frame_unittest.cc
diff --git a/media/base/video_frame_unittest.cc b/media/base/video_frame_unittest.cc
index ee2a454dca249052b581acc3406c5de2c8277b75..ab388194f3d0ec8e80e3090a7ee89e9bd2fd021e 100644
--- a/media/base/video_frame_unittest.cc
+++ b/media/base/video_frame_unittest.cc
@@ -269,7 +269,8 @@ static void TextureCallback(gpu::SyncToken* called_sync_token,
// Verify the gpu::MailboxHolder::ReleaseCallback is called when VideoFrame is
// destroyed with the default release sync point.
TEST(VideoFrame, TextureNoLongerNeededCallbackIsCalled) {
- gpu::SyncToken called_sync_token(gpu::CommandBufferNamespace::GPU_IO, 1, 1);
+ gpu::SyncToken called_sync_token(gpu::CommandBufferNamespace::GPU_IO,
+ 0, 1, 1);
{
scoped_refptr<VideoFrame> frame = VideoFrame::WrapNativeTexture(
@@ -321,10 +322,10 @@ TEST(VideoFrame,
mailbox[i].name[0] = 50 + 1;
}
- gpu::SyncToken sync_token(kNamespace, kCommandBufferId, 7);
+ gpu::SyncToken sync_token(kNamespace, 0, kCommandBufferId, 7);
sync_token.SetVerifyFlush();
uint32 target = 9;
- gpu::SyncToken release_sync_token(kNamespace, kCommandBufferId, 111);
+ gpu::SyncToken release_sync_token(kNamespace, 0, kCommandBufferId, 111);
release_sync_token.SetVerifyFlush();
gpu::SyncToken called_sync_token;

Powered by Google App Engine
This is Rietveld 408576698