summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_host_unittest_context.cc
diff options
context:
space:
mode:
authoremircan <emircan@chromium.org>2016-01-15 00:59:27 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-15 09:00:38 +0000
commit8428d41278c107c107736454dc4fdddbd14969bd (patch)
treeed8c911e772aecc90b7f610f65abf8f33e357d12 /cc/trees/layer_tree_host_unittest_context.cc
parent4977dd61169929d41ac1ff5d50c3b194bce71e60 (diff)
downloadchromium_src-8428d41278c107c107736454dc4fdddbd14969bd.zip
chromium_src-8428d41278c107c107736454dc4fdddbd14969bd.tar.gz
chromium_src-8428d41278c107c107736454dc4fdddbd14969bd.tar.bz2
Verify returned frames from media::VideoFrame::Wrap*() methods
BUG=552112 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1476523005 Cr-Commit-Position: refs/heads/master@{#369705}
Diffstat (limited to 'cc/trees/layer_tree_host_unittest_context.cc')
-rw-r--r--cc/trees/layer_tree_host_unittest_context.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
index 314e484..c84cc80 100644
--- a/cc/trees/layer_tree_host_unittest_context.cc
+++ b/cc/trees/layer_tree_host_unittest_context.cc
@@ -1022,16 +1022,19 @@ class LayerTreeHostContextTestDontUseLostResources
color_video_frame_ = VideoFrame::CreateColorFrame(
gfx::Size(4, 4), 0x80, 0x80, 0x80, base::TimeDelta());
+ ASSERT_TRUE(color_video_frame_);
hw_video_frame_ = VideoFrame::WrapNativeTexture(
media::PIXEL_FORMAT_ARGB,
gpu::MailboxHolder(mailbox, sync_token, GL_TEXTURE_2D),
media::VideoFrame::ReleaseMailboxCB(), gfx::Size(4, 4),
gfx::Rect(0, 0, 4, 4), gfx::Size(4, 4), base::TimeDelta());
+ ASSERT_TRUE(hw_video_frame_);
scaled_hw_video_frame_ = VideoFrame::WrapNativeTexture(
media::PIXEL_FORMAT_ARGB,
gpu::MailboxHolder(mailbox, sync_token, GL_TEXTURE_2D),
media::VideoFrame::ReleaseMailboxCB(), gfx::Size(4, 4),
gfx::Rect(0, 0, 3, 2), gfx::Size(4, 4), base::TimeDelta());
+ ASSERT_TRUE(scaled_hw_video_frame_);
color_frame_provider_.set_frame(color_video_frame_);
hw_frame_provider_.set_frame(hw_video_frame_);