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

Unified Diff: cc/layers/video_layer_impl_unittest.cc

Issue 1960563002: Add media::VideoFrame::WrapNativeTextures() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | cc/resources/video_resource_updater_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/video_layer_impl_unittest.cc
diff --git a/cc/layers/video_layer_impl_unittest.cc b/cc/layers/video_layer_impl_unittest.cc
index 43df376d2aa8e934c399a1f09eb964d85d733045..38ea21d01b3f94eef1ddd0f87530c76cc9ef1961 100644
--- a/cc/layers/video_layer_impl_unittest.cc
+++ b/cc/layers/video_layer_impl_unittest.cc
@@ -336,14 +336,16 @@ TEST(VideoLayerImplTest, NativeYUVFrameGeneratesYUVQuad) {
LayerTestCommon::LayerImplTest impl;
DebugSetImplThreadAndMainThreadBlocked(impl.task_runner_provider());
- gpu::MailboxHolder mailbox_holder;
- mailbox_holder.mailbox.name[0] = 1;
+ gpu::MailboxHolder mailbox_holders[media::VideoFrame::kMaxPlanes];
+ mailbox_holders[0].mailbox.name[0] = 1;
+ mailbox_holders[1].mailbox.name[0] = 1;
+ mailbox_holders[2].mailbox.name[0] = 1;
scoped_refptr<media::VideoFrame> video_frame =
- media::VideoFrame::WrapYUV420NativeTextures(
- mailbox_holder, mailbox_holder, mailbox_holder,
- base::Bind(EmptyCallback), gfx::Size(10, 10), gfx::Rect(10, 10),
- gfx::Size(10, 10), base::TimeDelta());
+ media::VideoFrame::WrapNativeTextures(
+ media::PIXEL_FORMAT_I420, mailbox_holders, base::Bind(EmptyCallback),
+ gfx::Size(10, 10), gfx::Rect(10, 10), gfx::Size(10, 10),
+ base::TimeDelta());
ASSERT_TRUE(video_frame);
video_frame->metadata()->SetBoolean(media::VideoFrameMetadata::ALLOW_OVERLAY,
true);
« no previous file with comments | « no previous file | cc/resources/video_resource_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698