Bug 1328658 - Notify main thread of a failed attempt to start an APZ scrollbar drag. r=kats,tnikkel

MozReview-Commit-ID: ERm1sVNfoKL
This commit is contained in:
Botond Ballo
2017-01-27 18:02:22 -05:00
parent a9323edf9f
commit c65e635354
20 changed files with 183 additions and 27 deletions

View File

@@ -244,6 +244,21 @@ RemoteContentController::NotifyFlushComplete()
}
}
void
RemoteContentController::NotifyAsyncScrollbarDragRejected(const FrameMetrics::ViewID& aScrollId)
{
if (MessageLoop::current() != mCompositorThread) {
// We have to send messages from the compositor thread
mCompositorThread->PostTask(NewRunnableMethod<FrameMetrics::ViewID>(this,
&RemoteContentController::NotifyAsyncScrollbarDragRejected, aScrollId));
return;
}
if (mCanSend) {
Unused << SendNotifyAsyncScrollbarDragRejected(aScrollId);
}
}
void
RemoteContentController::ActorDestroy(ActorDestroyReason aWhy)
{