diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 05:45:21 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 05:45:21 +0000 |
commit | a5e2f25995613c9f6082c1cf13df3df199a68120 (patch) | |
tree | 8eec46483f892c9b14ec264baba2c63503d3538f /base/message_loop.cc | |
parent | f2548845971c2f58e5da00d2b8677d5f1158d94a (diff) | |
download | chromium_src-a5e2f25995613c9f6082c1cf13df3df199a68120.zip chromium_src-a5e2f25995613c9f6082c1cf13df3df199a68120.tar.gz chromium_src-a5e2f25995613c9f6082c1cf13df3df199a68120.tar.bz2 |
Try only re-scheduling work when HandleWorkMessage is called.
TBR=jar
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@930 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.cc')
-rw-r--r-- | base/message_loop.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/message_loop.cc b/base/message_loop.cc index f91a6c9..b920167 100644 --- a/base/message_loop.cc +++ b/base/message_loop.cc @@ -406,6 +406,8 @@ void MessageLoop::DidChangeNextTimerExpiry() { bool MessageLoop::DoWork() { if (ProcessNextDeferredTask()) { + // TODO(darin): Temporarily moved into MessagePumpWin::HandleWorkMessage. +#if 0 // Let the MessagePump know that we may have more work to do. It is // tempting to only call this function if our work queue is not empty, but // doing so is insufficient. The issue is that ReloadWorkQueue does not @@ -414,6 +416,7 @@ bool MessageLoop::DoWork() { // very low cost (in the case where it is redundant), so we don't worry // about optimizing away spurious ScheduleWork calls. pump_->ScheduleWork(); +#endif return true; } return false; |