Commit Graph

23 Commits

Author SHA1 Message Date
janekptacijarabaci c1c638ab88 HTML - img - srcset - does not react to resize/viewport changes 2018-07-25 07:43:25 +08:00
trav90 acf8008679 Add some new methods to AbstractThread
These are easier to use and more consistent with the semantics of AbstractThread::Dispatch.
2018-07-25 07:11:48 +08:00
trav90 1d17b3107d Implement direct tasks 2018-07-25 07:03:34 +08:00
trav90 e413aa107a Switch nsIThread implementation of AbstractThread::IsCurrentThreadIn() to use PRThreads 2018-07-25 07:03:26 +08:00
trav90 4c926cfb2f Implement tail dispatch on the main thread 2018-07-25 06:58:12 +08:00
trav90 dfc6198675 Tighten up a couple existing assertions 2018-07-25 06:58:04 +08:00
trav90 4a837c3711 Remove AbstractThread::InTailDispatch
This is unused and unnecessary now that we pass this explicitly during dispatch.
2018-07-25 06:57:58 +08:00
trav90 b11500bddd Stop manually passing TaskDispatchers everywhere 2018-07-25 06:57:56 +08:00
trav90 dfc7504069 Remove MaybeTailDispatch
This is now the default behavior.
2018-07-25 06:57:53 +08:00
trav90 78e189b54a Do tail dispatch automatically 2018-07-25 06:57:52 +08:00
trav90 a3d351f76a Adjust tail dispatching assertions 2018-07-25 06:57:50 +08:00
trav90 b6bb9afb37 Move the GetCurrent TLS logic into AbstractThread 2018-07-25 06:57:47 +08:00
trav90 afb41fac1c Fix build bustage 2018-07-25 06:57:33 +08:00
trav90 834def9678 Move dispatch failure handling into dispatch itself
This is nicer than scattering the failure handling to each callsite.
2018-07-25 06:56:56 +08:00
trav90 70322d85c2 Detemplatize nsIThread wrapper and move it into AbstractThread.cpp 2018-07-25 06:56:54 +08:00
trav90 c8a958e5c7 Remove AbstractThread::Create
Atomicy would be broken if we accidentally had 2 AbstractThread instances associated with the same nsIThread (such as the main thread).
2018-07-25 06:56:16 +08:00
trav90 87a4cf6376 Use TailDispatch for the MDSM's task queue 2018-07-25 06:55:39 +08:00
trav90 42bb7c8c2c Implement the ability to assert tail dispatch
In order to make sure that the MDSM properly dispatches everything via tail dispatch, we want verification that is more robust than simple inspection.
2018-07-25 06:55:36 +08:00
trav90 533987a47d Implement the ability to get the currently running task queue
This will be useful for asserting things.
2018-07-25 06:55:30 +08:00
trav90 3090135f8e Do static initialization explicitly 2018-07-25 06:55:27 +08:00
trav90 b6cdd50380 Remove wrapper-style AbstractThreads for MediaTaskQueue and have callers pass an AbstractThread directly to promise APIs 2018-07-25 06:52:28 +08:00
trav90 702d802110 Add a convenience/efficiently routine to get an AbstractThread for the main thread 2018-07-25 06:52:23 +08:00
trav90 4e69a065ee Implement AbstractThread
AbstractThread is a simplification of the existing MediaPromise code that guarantees that two events will not run at the same time - either because it's a single thread or because it's a task queue.
2018-07-25 06:51:34 +08:00