diff options
author | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-26 04:29:31 +0000 |
---|---|---|
committer | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-26 04:29:31 +0000 |
commit | a28efbdf67dbceeb9a95f60ac0b0d856c4f55f47 (patch) | |
tree | a795f075566d2755493e501d7cb4b26db6d82a73 /gpu/command_buffer | |
parent | c5a323f5fc9ebeb1eab39c039799a51b987c33e4 (diff) | |
download | chromium_src-a28efbdf67dbceeb9a95f60ac0b0d856c4f55f47.zip chromium_src-a28efbdf67dbceeb9a95f60ac0b0d856c4f55f47.tar.gz chromium_src-a28efbdf67dbceeb9a95f60ac0b0d856c4f55f47.tar.bz2 |
Move GpuScheduler descheduled trace event to GpuScheduler for better coverage.
Review URL: https://chromiumcodereview.appspot.com/10451046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139177 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer')
-rw-r--r-- | gpu/command_buffer/service/gpu_scheduler.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gpu_scheduler.cc b/gpu/command_buffer/service/gpu_scheduler.cc index d56b727..af34f76 100644 --- a/gpu/command_buffer/service/gpu_scheduler.cc +++ b/gpu/command_buffer/service/gpu_scheduler.cc @@ -107,6 +107,7 @@ void GpuScheduler::SetScheduled(bool scheduled) { DCHECK_GE(unscheduled_count_, 0); if (unscheduled_count_ == 0) { + TRACE_EVENT_ASYNC_END1("gpu", "Descheduled", this, "GpuScheduler", this); // When the scheduler transitions from the unscheduled to the scheduled // state, cancel the task that would reschedule it after a timeout. reschedule_task_factory_.InvalidateWeakPtrs(); @@ -116,6 +117,8 @@ void GpuScheduler::SetScheduled(bool scheduled) { } } else { if (unscheduled_count_ == 0) { + TRACE_EVENT_ASYNC_BEGIN1("gpu", "Descheduled", this, + "GpuScheduler", this); #if defined(OS_WIN) // When the scheduler transitions from scheduled to unscheduled, post a // delayed task that it will force it back into a scheduled state after a |