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 abde0a85a4b874d7d2b6ff4a876efb3d2ae9e5ef..6441582d9422aad0e0b527f7f787c3dba1fdda95 100644 |
--- a/cc/trees/layer_tree_host_unittest_context.cc |
+++ b/cc/trees/layer_tree_host_unittest_context.cc |
@@ -1020,17 +1020,20 @@ class LayerTreeHostContextTestDontUseLostResources |
delegated_impl->SetFrameDataForRenderPasses(&pass_list); |
EXPECT_TRUE(pass_list.empty()); |
+ gpu::Mailbox mailbox; |
+ resource_provider->GraphicsContext3D()->genMailboxCHROMIUM(mailbox.name); |
+ |
color_video_frame_ = VideoFrame::CreateColorFrame( |
gfx::Size(4, 4), 0x80, 0x80, 0x80, base::TimeDelta()); |
hw_video_frame_ = VideoFrame::WrapNativeTexture( |
- resource_provider->GraphicsContext3D()->createTexture(), |
+ mailbox, |
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( |
- resource_provider->GraphicsContext3D()->createTexture(), |
+ mailbox, |
GL_TEXTURE_2D, |
gfx::Size(4, 4), gfx::Rect(0, 0, 3, 2), gfx::Size(4, 4), |
base::TimeDelta(), |