diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-06 03:23:04 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-06 03:23:04 +0000 |
commit | 7f9f9cde120ef8431fdc6271cd17a4be0916203f (patch) | |
tree | dc7a8f11a76f9beeb8f77e2476818d72ce3cb3de /views/animation | |
parent | 2c0879ab5383fdbb854f74e9890e33d1deefdc6a (diff) | |
download | chromium_src-7f9f9cde120ef8431fdc6271cd17a4be0916203f.zip chromium_src-7f9f9cde120ef8431fdc6271cd17a4be0916203f.tar.gz chromium_src-7f9f9cde120ef8431fdc6271cd17a4be0916203f.tar.bz2 |
Adds some debugging info in hopes of tracking leak in
bounds_animator/tab_strip.
BUG=40475
TEST=none
TBR=jcivelli@chromium.org
Review URL: http://codereview.chromium.org/1609008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43692 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/animation')
-rw-r--r-- | views/animation/bounds_animator.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/views/animation/bounds_animator.cc b/views/animation/bounds_animator.cc index 65ba415..fc23e38 100644 --- a/views/animation/bounds_animator.cc +++ b/views/animation/bounds_animator.cc @@ -87,6 +87,13 @@ const SlideAnimation* BoundsAnimator::GetAnimationForView(View* view) { void BoundsAnimator::SetAnimationDelegate(View* view, AnimationDelegate* delegate, bool delete_when_done) { +#if defined(OS_LINUX) + if (!IsAnimating(view)) + LOG(ERROR) << "SetAnimationDelegate: not animating view"; + if (data_[view].delegate) + LOG(ERROR) << "SetAnimationDelegate: delegate already set: leaking"; +#endif + DCHECK(IsAnimating(view)); data_[view].delegate = delegate; data_[view].delete_delegate_when_done = delete_when_done; @@ -111,6 +118,10 @@ void BoundsAnimator::Cancel() { if (data_.empty()) return; +#if defined(OS_LINUX) + LOG(ERROR) << "Cancelling animations"; +#endif + while (!data_.empty()) data_.begin()->second.animation->Stop(); |