| Index: cc/output/gl_renderer.cc
|
| diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
|
| index bbe52ecec9a24f3bafd2e80f5357a1e2c5703e24..b4b88057b8aa2167b0f8774d9c9e4aabf36f770e 100644
|
| --- a/cc/output/gl_renderer.cc
|
| +++ b/cc/output/gl_renderer.cc
|
| @@ -2232,13 +2232,13 @@ void GLRenderer::GetFramebufferPixelsAsync(
|
| GL_TEXTURE_2D, mailbox.name));
|
| GLC(context_, context_->bindTexture(GL_TEXTURE_2D, 0));
|
| sync_point = context_->insertSyncPoint();
|
| - scoped_ptr<TextureMailbox> texture_mailbox = make_scoped_ptr(
|
| - new TextureMailbox(mailbox,
|
| - texture_mailbox_deleter_->GetReleaseCallback(
|
| - output_surface_->context_provider(), texture_id),
|
| - GL_TEXTURE_2D,
|
| - sync_point));
|
| - request->SendTextureResult(window_rect.size(), texture_mailbox.Pass());
|
| + TextureMailbox texture_mailbox(mailbox, GL_TEXTURE_2D, sync_point);
|
| + scoped_ptr<ScopedReleaseCallback> release_callback =
|
| + texture_mailbox_deleter_->GetReleaseCallback(
|
| + output_surface_->context_provider(), texture_id);
|
| + request->SendTextureResult(window_rect.size(),
|
| + texture_mailbox,
|
| + release_callback.Pass());
|
| return;
|
| }
|
|
|
|
|