summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer
diff options
context:
space:
mode:
authorjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-26 04:29:31 +0000
committerjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-26 04:29:31 +0000
commita28efbdf67dbceeb9a95f60ac0b0d856c4f55f47 (patch)
treea795f075566d2755493e501d7cb4b26db6d82a73 /gpu/command_buffer
parentc5a323f5fc9ebeb1eab39c039799a51b987c33e4 (diff)
downloadchromium_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.cc3
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