| Index: components/exo/buffer.cc
|
| diff --git a/components/exo/buffer.cc b/components/exo/buffer.cc
|
| index 9b1778d989d6c0250efff832d6372f401e15e129..9d4cddca808b20c7ac0623bd164ed0fa6dcf1591 100644
|
| --- a/components/exo/buffer.cc
|
| +++ b/components/exo/buffer.cc
|
| @@ -432,6 +432,7 @@ std::unique_ptr<cc::SingleReleaseCallback> Buffer::ProduceTextureMailbox(
|
| context_factory->SharedMainThreadContextProvider();
|
| if (!context_provider) {
|
| DLOG(WARNING) << "Failed to acquire a context provider";
|
| +
|
| Release(); // Decrements the use count
|
| return nullptr;
|
| }
|
| @@ -542,7 +543,6 @@ void Buffer::ReleaseTexture(std::unique_ptr<Texture> texture) {
|
|
|
| void Buffer::ReleaseContentsTexture(std::unique_ptr<Texture> texture) {
|
| TRACE_EVENT0("exo", "Buffer::ReleaseContentsTexture");
|
| -
|
| contents_texture_ = std::move(texture);
|
| Release();
|
| }
|
|
|