summaryrefslogtreecommitdiffstats
path: root/content/renderer/media/video_capture_impl_unittest.cc
diff options
context:
space:
mode:
authordyen <dyen@chromium.org>2015-11-03 12:03:04 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-03 20:04:03 +0000
commitcc16ed4d1e600f3d478bd00d8d315894a74d68bb (patch)
treebd2ca9893e7ce38921b7a664486d55931db35aeb /content/renderer/media/video_capture_impl_unittest.cc
parent55df5b2e04bc9ab96196b38a05a8dfb5f9701ca4 (diff)
downloadchromium_src-cc16ed4d1e600f3d478bd00d8d315894a74d68bb.zip
chromium_src-cc16ed4d1e600f3d478bd00d8d315894a74d68bb.tar.gz
chromium_src-cc16ed4d1e600f3d478bd00d8d315894a74d68bb.tar.bz2
Modified old wait sync point functions to also accept new sync tokens.
In order to help with refactoring old sync points into new sync points, glWaitSyncPointCHROMIUM() has been changed to accept both the old and new sync points. This CL only refactors all the ways we pass around sync points so in theory shouldn't change any behavior. Once this lands we can then incrementally change the sync point insertions to the new sync points. R=piman@chromium.org BUG=514815 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1427543002 Cr-Commit-Position: refs/heads/master@{#357595}
Diffstat (limited to 'content/renderer/media/video_capture_impl_unittest.cc')
-rw-r--r--content/renderer/media/video_capture_impl_unittest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/content/renderer/media/video_capture_impl_unittest.cc b/content/renderer/media/video_capture_impl_unittest.cc
index 795b1e6e6..261aa5b 100644
--- a/content/renderer/media/video_capture_impl_unittest.cc
+++ b/content/renderer/media/video_capture_impl_unittest.cc
@@ -47,8 +47,9 @@ struct BufferReceivedTestArg {
static const BufferReceivedTestArg kBufferFormats[] = {
BufferReceivedTestArg(media::PIXEL_FORMAT_I420),
- BufferReceivedTestArg(media::PIXEL_FORMAT_ARGB,
- gpu::MailboxHolder(gpu::Mailbox::Generate(), 0, 0))};
+ BufferReceivedTestArg(
+ media::PIXEL_FORMAT_ARGB,
+ gpu::MailboxHolder(gpu::Mailbox::Generate(), gpu::SyncToken(), 0))};
class VideoCaptureImplTest
: public ::testing::TestWithParam<BufferReceivedTestArg> {
@@ -98,7 +99,7 @@ class VideoCaptureImplTest
void DeviceReceiveEmptyBuffer(int device_id,
int buffer_id,
- uint32 sync_point,
+ const gpu::SyncToken& release_sync_token,
double consumer_resource_utilization) {
received_buffer_count_++;
}