diff options
author | cpu <cpu@chromium.org> | 2014-08-28 16:25:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-28 23:27:06 +0000 |
commit | ee89079586f3a1ad727aad4c6aaf3100e220d6e4 (patch) | |
tree | 603cc14dc1368581c182b4e9cdebfe9d9a68119b /base/pending_task.cc | |
parent | 9dc76456d19bc4c1ada2c28cf0cc74911cc74581 (diff) | |
download | chromium_src-ee89079586f3a1ad727aad4c6aaf3100e220d6e4.zip chromium_src-ee89079586f3a1ad727aad4c6aaf3100e220d6e4.tar.gz chromium_src-ee89079586f3a1ad727aad4c6aaf3100e220d6e4.tar.bz2 |
High resolution timer fix reland
On Windows the message pump code tried to manage the systemwide timer
resolution to fire delayed tasks with better than 15ms resolution but
it is buggy.
This is https://codereview.chromium.org/395913006
please see that review for rationale.
BUG=153139
TBR=jamesr,darin
TEST=included, also see bug for manual verification.
Review URL: https://codereview.chromium.org/509223002
Cr-Commit-Position: refs/heads/master@{#292493}
Diffstat (limited to 'base/pending_task.cc')
-rw-r--r-- | base/pending_task.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/base/pending_task.cc b/base/pending_task.cc index b288f28..3d78914 100644 --- a/base/pending_task.cc +++ b/base/pending_task.cc @@ -8,19 +8,14 @@ namespace base { -#if _MSC_VER >= 1700 -// This a temporary fix for compiling on VS2012. http://crbug.com/154744 -PendingTask::PendingTask() : sequence_num(-1), nestable(false) { -} -#endif - PendingTask::PendingTask(const tracked_objects::Location& posted_from, const base::Closure& task) : base::TrackingInfo(posted_from, TimeTicks()), task(task), posted_from(posted_from), sequence_num(0), - nestable(true) { + nestable(true), + is_high_res(false) { } PendingTask::PendingTask(const tracked_objects::Location& posted_from, @@ -31,7 +26,8 @@ PendingTask::PendingTask(const tracked_objects::Location& posted_from, task(task), posted_from(posted_from), sequence_num(0), - nestable(nestable) { + nestable(nestable), + is_high_res(false) { } PendingTask::~PendingTask() { |