Bug 1321644 - part 2, Remove AndroidBridge::PostTaskToUiThread from RemoteContentController.cpp r=botond
authorRandall Barker <rbarker@mozilla.com>
Thu, 01 Dec 2016 09:43:33 -0800
changeset 453567 fb7b4a449847ab2e0149a4a3b1d9f7b511414cca
parent 453566 98d6700b6e2ccd25d0c63903d73c4d4feb331404
child 453568 f520551796df689734fa8c0c02eeab4e0eb2e3da
push id39711
push userdmitchell@mozilla.com
push dateFri, 23 Dec 2016 21:59:47 +0000
reviewersbotond
bugs1321644
milestone53.0a1
Bug 1321644 - part 2, Remove AndroidBridge::PostTaskToUiThread from RemoteContentController.cpp r=botond
gfx/layers/ipc/RemoteContentController.cpp
--- a/gfx/layers/ipc/RemoteContentController.cpp
+++ b/gfx/layers/ipc/RemoteContentController.cpp
@@ -13,19 +13,16 @@
 #include "mozilla/dom/ContentParent.h"
 #include "mozilla/dom/TabParent.h"
 #include "mozilla/layers/APZCTreeManagerParent.h"  // for APZCTreeManagerParent
 #include "mozilla/layers/APZThreadUtils.h"
 #include "mozilla/layout/RenderFrameParent.h"
 #include "mozilla/gfx/GPUProcessManager.h"
 #include "mozilla/Unused.h"
 #include "Units.h"
-#ifdef MOZ_WIDGET_ANDROID
-#include "AndroidBridge.h"
-#endif
 
 namespace mozilla {
 namespace layers {
 
 using namespace mozilla::gfx;
 
 RemoteContentController::RemoteContentController()
   : mCompositorThread(MessageLoop::current())
@@ -134,22 +131,18 @@ RemoteContentController::NotifyPinchGest
       rootController->NotifyPinchGesture(aType, aGuid, aSpanChange, aModifiers);
     }
   }
 }
 
 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
 RemoteContentController::IsRepaintThread()
 {
   return MessageLoop::current() == mCompositorThread;
 }