Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1071)

Unified Diff: cc/test/scheduler_test_common.cc

Issue 12408028: cc: Delay start of scrollbar animation setNeedsRedraw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to 188682 Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | cc/thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/scheduler_test_common.cc
diff --git a/cc/test/scheduler_test_common.cc b/cc/test/scheduler_test_common.cc
index 9f399c7237db4c3ce35f902be1c73fefd71c5318..ebef8b0ea1b761697914044eff0d2d6846a386cc 100644
--- a/cc/test/scheduler_test_common.cc
+++ b/cc/test/scheduler_test_common.cc
@@ -31,17 +31,17 @@ void FakeThread::runPendingTask()
void FakeThread::PostTask(base::Closure cb)
{
- PostDelayedTask(cb, 0);
+ PostDelayedTask(cb, base::TimeDelta());
}
-void FakeThread::PostDelayedTask(base::Closure cb, long long delay)
+void FakeThread::PostDelayedTask(base::Closure cb, base::TimeDelta delay)
{
if (m_runPendingTaskOnOverwrite && hasPendingTask())
runPendingTask();
ASSERT_FALSE(hasPendingTask());
m_pendingTask.reset(new base::Closure(cb));
- m_pendingTaskDelay = delay;
+ m_pendingTaskDelay = delay.InMilliseconds();
}
bool FakeThread::BelongsToCurrentThread() const
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | cc/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698