Bug 1365516 - Remove the call to AbstractThread::GetCurrent() in WebRenderImageLayer.cpp.
MozReview-Commit-ID: 5UMQuqEMZCu
--- a/gfx/layers/wr/WebRenderImageLayer.cpp
+++ b/gfx/layers/wr/WebRenderImageLayer.cpp
@@ -101,17 +101,17 @@ WebRenderImageLayer::RenderLayer(wr::Dis
// Allocate PipelineId if necessary
if (GetImageClientType() == CompositableType::IMAGE_BRIDGE &&
mPipelineId.isNothing() && !mPipelineIdRequest.Exists()) {
// Use Holder to pass this pointer to lambda.
// Static anaysis tool does not permit to pass refcounted variable to lambda.
// And we do not want to use RefPtr<WebRenderImageLayer> here.
Holder holder(this);
WrManager()->AllocPipelineId()
- ->Then(AbstractThread::GetCurrent(), __func__,
+ ->Then(AbstractThread::MainThread(), __func__,
[holder] (const wr::PipelineId& aPipelineId) {
holder->mPipelineIdRequest.Complete();
holder->mPipelineId = Some(aPipelineId);
},
[holder] (const ipc::PromiseRejectReason &aReason) {
holder->mPipelineIdRequest.Complete();
})->Track(mPipelineIdRequest);
}