Skip to content

Commit

Permalink
Issue-141903: Rename "descheduled" trace event for gpu swap to someth…
Browse files Browse the repository at this point in the history
…ing understandable

Changed Descheduled to ProcessSwap, added authors entry.

BUG=141903
TEST=


Review URL: https://chromiumcodereview.appspot.com/10967034

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160793 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
rubentopo@gmail.com committed Oct 9, 2012
1 parent 10f3650 commit ec8b63b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,4 @@ Catalin Badea <badea@adobe.com>
Joshua Lock <joshua.lock@intel.com>
Dai Chunyang <chunyang.dai@intel.com>
Joe Thomas <mhx348@motorola.com>
Ruben Terrazas <rubentopo@gmail.com>
5 changes: 3 additions & 2 deletions gpu/command_buffer/service/gpu_scheduler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ void GpuScheduler::SetScheduled(bool scheduled) {
DCHECK_GE(unscheduled_count_, 0);

if (unscheduled_count_ == 0) {
TRACE_EVENT_ASYNC_END1("gpu", "Descheduled", this, "GpuScheduler", this);
TRACE_EVENT_ASYNC_END1("gpu", "ProcessingSwap", 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();
Expand All @@ -139,7 +140,7 @@ void GpuScheduler::SetScheduled(bool scheduled) {
}
} else {
if (unscheduled_count_ == 0) {
TRACE_EVENT_ASYNC_BEGIN1("gpu", "Descheduled", this,
TRACE_EVENT_ASYNC_BEGIN1("gpu", "ProcessingSwap", this,
"GpuScheduler", this);
#if defined(OS_WIN)
// When the scheduler transitions from scheduled to unscheduled, post a
Expand Down

0 comments on commit ec8b63b

Please sign in to comment.