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

Unified Diff: media/base/video_frame_unittest.cc

Issue 175223003: HW Video: Make media::VideoFrame handle the sync point of the compositor as well as webgl (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: build fix cast_unittests Created 6 years, 10 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_unittest.cc
diff --git a/media/base/video_frame_unittest.cc b/media/base/video_frame_unittest.cc
index 05465d9b09dc1ec28751511bf97d205a71635378..328593a102ea5f5030b6976459b4dafb824a862e 100644
--- a/media/base/video_frame_unittest.cc
+++ b/media/base/video_frame_unittest.cc
@@ -266,7 +266,9 @@ TEST(VideoFrame, TextureNoLongerNeededCallbackAfterTakingAndReleasingMailbox) {
// Finish using the mailbox_holder and drop our reference.
sync_point = 10;
- mailbox_holder->sync_point = sync_point;
+ frame->SetReleaseSyncPoint(1);
+ // The last sync point will be used.
+ frame->SetReleaseSyncPoint(sync_point);
}
EXPECT_EQ(sync_point, called_sync_point);
}

Powered by Google App Engine
This is Rietveld 408576698