Implement timers by posting delayed tasks
commit058d1dde8e90c99c96d43f536d57cb241bde87e6
authorskyostil@chromium.org <skyostil@chromium.org>
Tue, 2 Jun 2015 11:00:17 +0000 (2 11:00 +0000)
committerskyostil@chromium.org <skyostil@chromium.org>
Tue, 2 Jun 2015 11:00:17 +0000 (2 11:00 +0000)
treeee997ac52ccb10680c3d93ec42363b24bb940a19
parent3b48756d8587201e63c49ea322bfe12c3812f39b
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

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

git-svn-id: svn://svn.chromium.org/blink/trunk@196308 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 [deleted file]
third_party/WebKit/Source/platform/PlatformThreadData.h [deleted file]
third_party/WebKit/Source/platform/SharedTimer.cpp [deleted file]
third_party/WebKit/Source/platform/SharedTimer.h [deleted file]
third_party/WebKit/Source/platform/ThreadTimers.cpp [deleted file]
third_party/WebKit/Source/platform/ThreadTimers.h [deleted file]
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