| Index: components/exo/buffer.cc
|
| diff --git a/components/exo/buffer.cc b/components/exo/buffer.cc
|
| index 1bb5b26fff20d16bc46621bf29c42ebda89bf1f4..cf25844fb768eae638c9a6a70f7a689928f8f886 100644
|
| --- a/components/exo/buffer.cc
|
| +++ b/components/exo/buffer.cc
|
| @@ -349,10 +349,13 @@ scoped_ptr<cc::SingleReleaseCallback> Buffer::ProduceTextureMailbox(
|
| if (!texture_)
|
| texture_ = make_scoped_ptr(new Texture(context_provider.get()));
|
|
|
| + // Copy the contents of |contents_texture| to |texture| and produce a
|
| + // texture mailbox from the result in |texture|.
|
| + Texture* contents_texture = contents_texture_.get();
|
| Texture* texture = texture_.get();
|
|
|
| // The contents texture will be released when copy has completed.
|
| - gpu::SyncToken sync_token = contents_texture_->CopyTexImage(
|
| + gpu::SyncToken sync_token = contents_texture->CopyTexImage(
|
| texture, base::Bind(&Buffer::ReleaseContentsTexture, AsWeakPtr(),
|
| base::Passed(&contents_texture_)));
|
| *texture_mailbox = cc::TextureMailbox(
|
|
|