Revert of Implement timers by posting delayed tasks (patchset #21 id:400001 of https...
commit0ac02b9a38b8c3858a9405ac2a08297d49a11e97
authorskyostil@chromium.org <skyostil@chromium.org>
Tue, 2 Jun 2015 14:26:02 +0000 (2 14:26 +0000)
committerskyostil@chromium.org <skyostil@chromium.org>
Tue, 2 Jun 2015 14:26:02 +0000 (2 14:26 +0000)
tree40ee04afe750f8f190f41051b8d6bb826e73528b
parentba9cff2182465acf92d56fac8ec5d268583a2b27
Revert of Implement timers by posting delayed tasks (patchset #21 id:400001 of https://codereview.chromium.org/1134523002/)

Reason for revert:
Reverting once again because this makes ScriptContextSetTest.LifeCycle leak:

http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/12840/steps/extensions_unittests%20%28with%20patch%29/logs/stdio

The reason is that many of these tests do things backwards: they first initialize Blink and then create a message loop. This means we can't create a real scheduler for Blink and have to jump through hoops to make things work. We could extend this mock scheduler to properly clean things up, but I think I'll instead try to get rid of the mock scheduler completely.

Original issue's description:
> Implement timers by posting delayed tasks
>
> This patch refactors TimerBase to post tasks delayed tasks and
> deletes the now-obsolete timer heap and shared timer mechanism.
>
> ATTN Sheriffs: If there are weird layout test flakes all of a
> sudden, this patch may be the cause since the interleaving of
> timers with other posted tasks will change.
>
> Original patch by Alex Clarke <alexclarke@chromium.org>.
>
> BUG=463143,416362,480522
>
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196308

TBR=alexclarke@chromium.org,erikcorry@chromium.org,jochen@chromium.org,kinuko@chromium.org,rmcilroy@chromium.org,sigbjornf@opera.com,jchaffraix@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=463143,416362,480522

Review URL: https://codereview.chromium.org/1162903005

git-svn-id: svn://svn.chromium.org/blink/trunk@196317 bbb929c8-8fbe-4397-9dbb-9b2b20218538
18 files changed:
third_party/WebKit/Source/core/Init.cpp
third_party/WebKit/Source/core/fetch/ResourceTest.cpp
third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
third_party/WebKit/Source/core/workers/WorkerThread.cpp
third_party/WebKit/Source/core/workers/WorkerThread.h
third_party/WebKit/Source/platform/PlatformThreadData.cpp [new file with mode: 0644]
third_party/WebKit/Source/platform/PlatformThreadData.h [new file with mode: 0644]
third_party/WebKit/Source/platform/SharedTimer.cpp [new file with mode: 0644]
third_party/WebKit/Source/platform/SharedTimer.h [new file with mode: 0644]
third_party/WebKit/Source/platform/ThreadTimers.cpp [new file with mode: 0644]
third_party/WebKit/Source/platform/ThreadTimers.h [new file with mode: 0644]
third_party/WebKit/Source/platform/Timer.cpp
third_party/WebKit/Source/platform/Timer.h
third_party/WebKit/Source/platform/TimerTest.cpp
third_party/WebKit/Source/platform/blink_platform.gypi
third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp
third_party/WebKit/Source/web/tests/TextFinderTest.cpp
third_party/WebKit/public/platform/Platform.h