diff options
Diffstat (limited to 'gfx/layers/ipc/RemoteContentController.cpp')
-rw-r--r-- | gfx/layers/ipc/RemoteContentController.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gfx/layers/ipc/RemoteContentController.cpp b/gfx/layers/ipc/RemoteContentController.cpp index 54a08eed3..d71476a78 100644 --- a/gfx/layers/ipc/RemoteContentController.cpp +++ b/gfx/layers/ipc/RemoteContentController.cpp @@ -18,9 +18,6 @@ #include "mozilla/gfx/GPUProcessManager.h" #include "mozilla/Unused.h" #include "Units.h" -#ifdef MOZ_WIDGET_ANDROID -#include "AndroidBridge.h" -#endif namespace mozilla { namespace layers { @@ -90,8 +87,7 @@ RemoteContentController::HandleTap(TapType aTapType, if (NS_IsMainThread()) { HandleTapOnMainThread(aTapType, aPoint, aModifiers, aGuid, aInputBlockId); } else { - // We don't want to get the TabParent or call TabParent::SendHandleTap() from a non-main thread (this might happen - // on Android, where this is called from the Java UI thread) + // We don't want to get the TabParent or call TabParent::SendHandleTap() from a non-main thread NS_DispatchToMainThread(NewRunnableMethod<TapType, LayoutDevicePoint, Modifiers, ScrollableLayerGuid, uint64_t> (this, &RemoteContentController::HandleTapOnMainThread, aTapType, aPoint, aModifiers, aGuid, aInputBlockId)); } @@ -139,12 +135,8 @@ RemoteContentController::NotifyPinchGesture(PinchGestureInput::PinchGestureType void RemoteContentController::PostDelayedTask(already_AddRefed<Runnable> aTask, int aDelayMs) { -#ifdef MOZ_WIDGET_ANDROID - AndroidBridge::Bridge()->PostTaskToUiThread(Move(aTask), aDelayMs); -#else (MessageLoop::current() ? MessageLoop::current() : mCompositorThread)-> PostDelayedTask(Move(aTask), aDelayMs); -#endif } bool |