diff options
author | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 08:58:51 +0000 |
---|---|---|
committer | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 08:58:51 +0000 |
commit | c5324208455858b3393a3e1887366f858c588a2d (patch) | |
tree | f6bc89be1a437d7aa1c6fbd5c0dc98ad2b3ff5b4 /base/message_loop.cc | |
parent | 08de3cde4d95e9c962aee2386d7297d561404513 (diff) | |
download | chromium_src-c5324208455858b3393a3e1887366f858c588a2d.zip chromium_src-c5324208455858b3393a3e1887366f858c588a2d.tar.gz chromium_src-c5324208455858b3393a3e1887366f858c588a2d.tar.bz2 |
Reapply r1633 (which was reverted by r1635), with some additional modifications. Consolidate all timer resolution code to time.h, and always depend on TimeTicks::Now for 1ms resolution.
Review URL: http://codereview.chromium.org/1806
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1893 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.cc')
-rw-r--r-- | base/message_loop.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/base/message_loop.cc b/base/message_loop.cc index fffeb09..ee33aa1 100644 --- a/base/message_loop.cc +++ b/base/message_loop.cc @@ -68,19 +68,6 @@ MessageLoop::MessageLoop(Type type) DCHECK(!tls_index_.Get()) << "should only have one message loop per thread"; tls_index_.Set(this); - // TODO(darin): This does not seem like the best place for this code to live! -#if defined(OS_WIN) - // We've experimented with all sorts of timers, and initially tried - // to avoid using timeBeginPeriod because it does affect the system - // globally. However, after much investigation, it turns out that all - // of the major plugins (flash, windows media 9-11, and quicktime) - // already use timeBeginPeriod to increase the speed of the clock. - // Since the browser must work with these plugins, the browser already - // needs to support a fast clock. We may as well use this ourselves, - // as it really is the best timer mechanism for our needs. - timeBeginPeriod(1); -#endif - // TODO(darin): Choose the pump based on the requested type. #if defined(OS_WIN) if (type_ == TYPE_DEFAULT) { @@ -119,11 +106,6 @@ MessageLoop::~MessageLoop() { delayed_work_queue_.pop(); delete task; } - -#if defined(OS_WIN) - // Match timeBeginPeriod() from construction. - timeEndPeriod(1); -#endif } void MessageLoop::AddDestructionObserver(DestructionObserver *obs) { |