Skip to content

Commit 71373f3

Browse files
author
Jean-Yves Avenard
committed
Bug 1644009 - P7. Revert "Bug 1592488 - P4. Ensure an AbstractThread exists for the Compositor Thread." r=mattwoodrow
DirectTask dispatching will now be directly handled by nsThread. Differential Revision: https://phabricator.services.mozilla.com/D79091
1 parent c7ce1ad commit 71373f3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

gfx/layers/ipc/CompositorThread.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ CompositorThreadHolder* CompositorThreadHolder::GetSingleton() {
3434
}
3535

3636
CompositorThreadHolder::CompositorThreadHolder()
37-
: mCompositorThread(CreateCompositorThread()),
38-
mCompositorAbstractThread(AbstractThread::CreateXPCOMThreadWrapper(
39-
mCompositorThread, false /* aRequireTailDispatch */)) {
37+
: mCompositorThread(CreateCompositorThread()) {
4038
MOZ_ASSERT(NS_IsMainThread());
4139
}
4240

gfx/layers/ipc/CompositorThread.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class nsISerialEventTarget;
1313
class nsIThread;
1414

1515
namespace mozilla {
16-
class AbstractThread;
1716
namespace layers {
1817

1918
class CompositorThreadHolder final {
@@ -48,8 +47,7 @@ class CompositorThreadHolder final {
4847
private:
4948
~CompositorThreadHolder();
5049

51-
const nsCOMPtr<nsIThread> mCompositorThread;
52-
const RefPtr<AbstractThread> mCompositorAbstractThread;
50+
nsCOMPtr<nsIThread> mCompositorThread;
5351

5452
static already_AddRefed<nsIThread> CreateCompositorThread();
5553

0 commit comments

Comments
 (0)