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

Issue 918473002: Process pending delayed tasks in kMsgHaveWork (Closed)

Created:
5 years, 10 months ago by jbauman
Modified:
5 years, 7 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, sadrul, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Process pending delayed tasks in kMsgHaveWork With 1 win32 timer we can only get a callback every 10ms, and since the callback only processes one message, that means the queue could keep growing if delayed tasks are posted faster than that rate, even if they're processed very quickly. To prevent that, schedule a kMsgHaveWork if there's 0ms until the next delayed task should run, and run a delayed task in the kMsgHaveWork handler. BUG=454333 TEST=chrome resizes smoothly Committed: https://crrev.com/9316d3b983530169e6c50d61fa87eeebecd8dcfd Cr-Commit-Position: refs/heads/master@{#330816}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -40 lines) Patch
M base/message_loop/message_pump_win.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/message_loop/message_pump_win.cc View 1 2 3 chunks +48 lines, -40 lines 0 comments Download

Messages

Total messages: 30 (6 generated)
jbauman
This seems to work, but I'm not certain it's the correct approach. Also let me ...
5 years, 7 months ago (2015-05-12 22:18:50 UTC) #2
danakj
+cpu
5 years, 7 months ago (2015-05-12 23:51:08 UTC) #4
cpu_(ooo_6.6-7.5)
iiinteresting. Lets see if james wants to opine here. Also bruce was lamenting something around ...
5 years, 7 months ago (2015-05-13 01:27:17 UTC) #6
jamesr
One risk here is if we end up always having a posted message in the ...
5 years, 7 months ago (2015-05-13 17:09:18 UTC) #7
brucedawson
While Windows sets uElapse to a minimum of 10 we will sometimes get even lower ...
5 years, 7 months ago (2015-05-13 18:33:54 UTC) #8
jbauman
On 2015/05/13 17:09:18, jamesr wrote: > One risk here is if we end up always ...
5 years, 7 months ago (2015-05-13 18:42:02 UTC) #9
jamesr
On 2015/05/13 18:42:02, jbauman wrote: > On 2015/05/13 17:09:18, jamesr wrote: > > One risk ...
5 years, 7 months ago (2015-05-13 19:24:49 UTC) #10
jbauman
On 2015/05/13 19:24:49, jamesr wrote: > On 2015/05/13 18:42:02, jbauman wrote: > > On 2015/05/13 ...
5 years, 7 months ago (2015-05-13 19:41:19 UTC) #11
jamesr
On 2015/05/13 19:41:19, jbauman wrote: > On 2015/05/13 19:24:49, jamesr wrote: > > On 2015/05/13 ...
5 years, 7 months ago (2015-05-13 19:47:20 UTC) #12
jar (doing other things)
Drive-by comment (invited by cpu). YMMV. https://codereview.chromium.org/918473002/diff/20001/base/message_loop/message_pump_win.cc File base/message_loop/message_pump_win.cc (right): https://codereview.chromium.org/918473002/diff/20001/base/message_loop/message_pump_win.cc#newcode325 base/message_loop/message_pump_win.cc:325: state_->delegate->DoDelayedWork(&delayed_work_time_); Note that ...
5 years, 7 months ago (2015-05-13 20:01:21 UTC) #14
jamesr
On 2015/05/13 20:01:21, jar (doing other things) wrote: > Drive-by comment (invited by cpu). YMMV. ...
5 years, 7 months ago (2015-05-13 20:03:37 UTC) #15
jbauman
On 2015/05/13 20:01:21, jar (doing other things) wrote: > Drive-by comment (invited by cpu). YMMV. ...
5 years, 7 months ago (2015-05-13 20:14:28 UTC) #16
cpu_(ooo_6.6-7.5)
for completeness https://code.google.com/p/chromium/issues/detail?id=487724
5 years, 7 months ago (2015-05-13 20:16:53 UTC) #17
jar (doing other things)
On 2015/05/13 20:14:28, jbauman wrote: > On 2015/05/13 20:01:21, jar (doing other things) wrote: > ...
5 years, 7 months ago (2015-05-13 21:10:01 UTC) #18
jbauman
On 2015/05/13 21:10:01, jar (doing other things) wrote: > On 2015/05/13 20:14:28, jbauman wrote: > ...
5 years, 7 months ago (2015-05-13 21:17:11 UTC) #19
jar (doing other things)
On 2015/05/13 21:17:11, jbauman wrote: > On 2015/05/13 21:10:01, jar (doing other things) wrote: > ...
5 years, 7 months ago (2015-05-14 02:08:29 UTC) #20
jamesr
Things are also different now that we draw from delayed tasks and not from WM_PAINT.
5 years, 7 months ago (2015-05-14 02:57:06 UTC) #21
jbauman
On 2015/05/14 02:08:29, jar (doing other things) wrote: > On 2015/05/13 21:17:11, jbauman wrote: > ...
5 years, 7 months ago (2015-05-15 02:15:41 UTC) #22
cpu_(ooo_6.6-7.5)
we'll find you tomorrow, see if we can do a high bandwidth data exchange via ...
5 years, 7 months ago (2015-05-19 01:52:46 UTC) #23
cpu_(ooo_6.6-7.5)
Ok, we tried mightily to give John a better thing but all the things we ...
5 years, 7 months ago (2015-05-19 23:40:30 UTC) #24
jbauman
https://codereview.chromium.org/918473002/diff/20001/base/message_loop/message_pump_win.cc File base/message_loop/message_pump_win.cc (right): https://codereview.chromium.org/918473002/diff/20001/base/message_loop/message_pump_win.cc#newcode343 base/message_loop/message_pump_win.cc:343: // A bit gratuitous to set delayed_work_time_ again, but ...
5 years, 7 months ago (2015-05-20 01:31:35 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/918473002/40001
5 years, 7 months ago (2015-05-20 20:55:44 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-20 22:27:01 UTC) #29
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 22:27:48 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9316d3b983530169e6c50d61fa87eeebecd8dcfd
Cr-Commit-Position: refs/heads/master@{#330816}

Powered by Google App Engine
This is Rietveld 408576698