RESOLVED FIXED 38276
[Chromium] callOnMainThread should equate to MessageLoop::PostTask
https://bugs.webkit.org/show_bug.cgi?id=38276
Summary [Chromium] callOnMainThread should equate to MessageLoop::PostTask
Darin Fisher (:fishd, Google)
Reported 2010-04-28 11:21:26 PDT
[Chromium] callOnMainThread should equate to MessageLoop::PostTask Presently, callOnMainThread is implemented using an intermediate queue, and MessageLoop::PostTask is used to process that queue in batches. This adds ordering problems which cause flaky behavior in Chrome as callOnMainThread and MessageLoop::PostTask are not necessarily FIFO. It is also a potential source of jank as while we are processing the queue, we do not let other tasks run on the thread. It would be better to let the MessageLoop be the scheduler for all callbacks to the main thread. Chromium bug is here: http://code.google.com/p/chromium/issues/detail?id=42751 Chromium-side pre-req patch is here: http://codereview.chromium.org/1794005/show
Attachments
v1 patch (5.71 KB, patch)
2010-04-28 11:23 PDT, Darin Fisher (:fishd, Google)
levin: review+
fishd: commit-queue-
Darin Fisher (:fishd, Google)
Comment 1 2010-04-28 11:23:39 PDT
Created attachment 54591 [details] v1 patch
Darin Fisher (:fishd, Google)
Comment 2 2010-04-28 13:36:15 PDT
Note You need to log in before you can comment on or make changes to this bug.