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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user