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 327224 fb7b4a449847ab2e0149a4a3b1d9f7b511414cca
parent 327223 98d6700b6e2ccd25d0c63903d73c4d4feb331404
child 327225 f520551796df689734fa8c0c02eeab4e0eb2e3da
push id31122
push userphilringnalda@gmail.com
push dateSun, 25 Dec 2016 00:51:37 +0000
treeherdermozilla-central@1156db49e976 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbotond
bugs1321644
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;
 }