зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1379243 P6 Override Pre/Post dispatch methods in ExternalRunnableWrapper so it can be used off main thread. r=baku
This commit is contained in:
Родитель
e266f48ec0
Коммит
1677104487
|
@ -240,6 +240,19 @@ private:
|
|||
~ExternalRunnableWrapper()
|
||||
{ }
|
||||
|
||||
virtual bool
|
||||
PreDispatch(WorkerPrivate* aWorkerPrivate) override
|
||||
{
|
||||
// Silence bad assertions.
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void
|
||||
PostDispatch(WorkerPrivate* aWorkerPrivate, bool aDispatchResult) override
|
||||
{
|
||||
// Silence bad assertions.
|
||||
}
|
||||
|
||||
virtual bool
|
||||
WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче