diff options
author | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-20 16:36:30 +0000 |
---|---|---|
committer | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-20 16:36:30 +0000 |
commit | 921244e425ef882b93c121e18c44a265ae9f8bc2 (patch) | |
tree | 27dcd3f30b8004602c6687c6df6f9c7416654abe | |
parent | d153c80959407a591a08a9deb1878295176fcb04 (diff) | |
download | chromium_src-921244e425ef882b93c121e18c44a265ae9f8bc2.zip chromium_src-921244e425ef882b93c121e18c44a265ae9f8bc2.tar.gz chromium_src-921244e425ef882b93c121e18c44a265ae9f8bc2.tar.bz2 |
Add some trace events so that all causes of DoDeferredUpdate are shown in the trace.
Review URL: http://codereview.chromium.org/7379008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93209 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | content/renderer/render_widget.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc index 4e2cae1..782681e 100644 --- a/content/renderer/render_widget.cc +++ b/content/renderer/render_widget.cc @@ -597,9 +597,12 @@ void RenderWidget::PaintDebugBorder(const gfx::Rect& rect, } void RenderWidget::AnimationCallback() { + TRACE_EVENT0("renderer", "RenderWidget::AnimationCallback"); animation_task_posted_ = false; - if (!animation_update_pending_) + if (!animation_update_pending_) { + TRACE_EVENT0("renderer", "EarlyOut_NoAnimationUpdatePending"); return; + } if (!animation_floor_time_.is_null() && IsRenderingVSynced()) { // Record when we fired (according to base::Time::Now()) relative to when // we posted the task to quantify how much the base::Time/base::TimeTicks @@ -624,6 +627,7 @@ void RenderWidget::AnimateIfNeeded() { base::Time now = base::Time::Now(); if (now >= animation_floor_time_) { + TRACE_EVENT0("renderer", "RenderWidget::AnimateIfNeeded") animation_floor_time_ = now + base::TimeDelta::FromMilliseconds(animationInterval); // Set a timer to call us back after animationInterval before @@ -940,6 +944,7 @@ void RenderWidget::scheduleComposite() { } void RenderWidget::scheduleAnimation() { + TRACE_EVENT0("gpu", "RenderWidget::scheduleAnimation"); if (!animation_update_pending_) { animation_update_pending_ = true; if (!animation_task_posted_) { |