| Index: cc/resources/video_resource_updater.cc
|
| diff --git a/cc/resources/video_resource_updater.cc b/cc/resources/video_resource_updater.cc
|
| index bd914179fade171507746dde9fa64be321e94d0f..b170be6784b2a443978d6d2fcc94782fb7a4fe2d 100644
|
| --- a/cc/resources/video_resource_updater.cc
|
| +++ b/cc/resources/video_resource_updater.cc
|
| @@ -213,16 +213,11 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForSoftwarePlanes(
|
| gpu::gles2::GLES2Interface* gl = context_provider_->ContextGL();
|
|
|
| GLC(gl, gl->GenMailboxCHROMIUM(mailbox.name));
|
| - if (mailbox.IsZero()) {
|
| - resource_provider_->DeleteResource(resource_id);
|
| - resource_id = 0;
|
| - } else {
|
| - ResourceProvider::ScopedWriteLockGL lock(
|
| - resource_provider_, resource_id);
|
| - GLC(gl, gl->BindTexture(GL_TEXTURE_2D, lock.texture_id()));
|
| - GLC(gl, gl->ProduceTextureCHROMIUM(GL_TEXTURE_2D, mailbox.name));
|
| - GLC(gl, gl->BindTexture(GL_TEXTURE_2D, 0));
|
| - }
|
| + ResourceProvider::ScopedWriteLockGL lock(resource_provider_,
|
| + resource_id);
|
| + GLC(gl, gl->BindTexture(GL_TEXTURE_2D, lock.texture_id()));
|
| + GLC(gl, gl->ProduceTextureCHROMIUM(GL_TEXTURE_2D, mailbox.name));
|
| + GLC(gl, gl->BindTexture(GL_TEXTURE_2D, 0));
|
| }
|
|
|
| if (resource_id)
|
|
|