diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-17 02:29:07 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-17 02:29:07 +0000 |
commit | abe67aea176f8755ad50b335d0dc462ba356dc74 (patch) | |
tree | ca4f523dacd7b04602f14e690839c3a9938d88a1 /cc/scheduler | |
parent | ff903e17d6cb6e6629fd8cd004fe09023145abb1 (diff) | |
download | chromium_src-abe67aea176f8755ad50b335d0dc462ba356dc74.zip chromium_src-abe67aea176f8755ad50b335d0dc462ba356dc74.tar.gz chromium_src-abe67aea176f8755ad50b335d0dc462ba356dc74.tar.bz2 |
cc: Don't leak the texture returned in CopyOutputRequest ever.
Currently we use a WeakPtr on the GLRenderer to prevent crashing
if the GLRenderer goes away before the embedder is done with the
texture returned in the CopyOutputRequest.
But if the GLRenderer goes away, we just leak the texture. :(
So, now that we have ContextProvider available, we hold a ref
on the provider inside the Callback, and this way we can always
destroy the texture when it is released. :)
Also, we can remove the WeakPtrFactory from GLRenderer.
R=piman
BUG=255634
Review URL: https://chromiumcodereview.appspot.com/22852006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/scheduler')
0 files changed, 0 insertions, 0 deletions