| Index: cc/trees/layer_tree_host_unittest_context.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
|
| index 5aa37fe67db19ec2f2ecaef2138e96d9411a0fd9..2d203c2e7348ec471f6e4d6c4fd01bcc4a162a97 100644
|
| --- a/cc/trees/layer_tree_host_unittest_context.cc
|
| +++ b/cc/trees/layer_tree_host_unittest_context.cc
|
| @@ -1003,7 +1003,7 @@ class LayerTreeHostContextTestDontUseLostResources
|
| texture->SetAnchorPoint(gfx::PointF());
|
| texture->SetIsDrawable(true);
|
| texture->SetTextureMailbox(
|
| - TextureMailbox(mailbox, sync_point),
|
| + TextureMailbox(mailbox, GL_TEXTURE_2D, sync_point),
|
| SingleReleaseCallback::Create(
|
| base::Bind(&LayerTreeHostContextTestDontUseLostResources::
|
| EmptyReleaseCallback)));
|
| @@ -1044,30 +1044,24 @@ class LayerTreeHostContextTestDontUseLostResources
|
|
|
| color_video_frame_ = VideoFrame::CreateColorFrame(
|
| gfx::Size(4, 4), 0x80, 0x80, 0x80, base::TimeDelta());
|
| - hw_video_frame_ = VideoFrame::WrapNativeTexture(
|
| - make_scoped_ptr(new VideoFrame::MailboxHolder(
|
| - mailbox,
|
| - sync_point,
|
| - VideoFrame::MailboxHolder::TextureNoLongerNeededCallback())),
|
| - GL_TEXTURE_2D,
|
| - gfx::Size(4, 4),
|
| - gfx::Rect(0, 0, 4, 4),
|
| - gfx::Size(4, 4),
|
| - base::TimeDelta(),
|
| - VideoFrame::ReadPixelsCB(),
|
| - base::Closure());
|
| - scaled_hw_video_frame_ = VideoFrame::WrapNativeTexture(
|
| - make_scoped_ptr(new VideoFrame::MailboxHolder(
|
| - mailbox,
|
| - sync_point,
|
| - VideoFrame::MailboxHolder::TextureNoLongerNeededCallback())),
|
| - GL_TEXTURE_2D,
|
| - gfx::Size(4, 4),
|
| - gfx::Rect(0, 0, 3, 2),
|
| - gfx::Size(4, 4),
|
| - base::TimeDelta(),
|
| - VideoFrame::ReadPixelsCB(),
|
| - base::Closure());
|
| + hw_video_frame_ =
|
| + VideoFrame::WrapNativeTexture(make_scoped_ptr(new gpu::MailboxHolder(
|
| + mailbox, GL_TEXTURE_2D, sync_point)),
|
| + media::VideoFrame::ReleaseMailboxCB(),
|
| + gfx::Size(4, 4),
|
| + gfx::Rect(0, 0, 4, 4),
|
| + gfx::Size(4, 4),
|
| + base::TimeDelta(),
|
| + VideoFrame::ReadPixelsCB());
|
| + scaled_hw_video_frame_ =
|
| + VideoFrame::WrapNativeTexture(make_scoped_ptr(new gpu::MailboxHolder(
|
| + mailbox, GL_TEXTURE_2D, sync_point)),
|
| + media::VideoFrame::ReleaseMailboxCB(),
|
| + gfx::Size(4, 4),
|
| + gfx::Rect(0, 0, 3, 2),
|
| + gfx::Size(4, 4),
|
| + base::TimeDelta(),
|
| + VideoFrame::ReadPixelsCB());
|
|
|
| color_frame_provider_.set_frame(color_video_frame_);
|
| hw_frame_provider_.set_frame(hw_video_frame_);
|
|
|