Fix TextureLayer cleanup
In ~TextureLayer, we should have been removed from the tree, so it's too late to
do cleanup. It actually means we were never calling StopRateLimiter when removed
from the tree, which had the potential to leak RateLimiters, or even have them
call into a deleted context.
Instead, move the cleanup to when we're removed from the tree, and when we clear
the client.
BUG=None
R=danakj@chromium.org
Review URL: https://codereview.chromium.org/
19039002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211292 0039d316-1c4b-4281-b951-d872f2087c98