diff options
Diffstat (limited to 'gfx/layers/apz/util/APZThreadUtils.cpp')
-rw-r--r-- | gfx/layers/apz/util/APZThreadUtils.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gfx/layers/apz/util/APZThreadUtils.cpp b/gfx/layers/apz/util/APZThreadUtils.cpp index 46f67d010f..e1975a2a06 100644 --- a/gfx/layers/apz/util/APZThreadUtils.cpp +++ b/gfx/layers/apz/util/APZThreadUtils.cpp @@ -6,9 +6,6 @@ #include "mozilla/layers/APZThreadUtils.h" #include "mozilla/layers/Compositor.h" -#ifdef MOZ_WIDGET_ANDROID -#include "AndroidBridge.h" -#endif namespace mozilla { namespace layers { @@ -57,15 +54,6 @@ APZThreadUtils::RunOnControllerThread(already_AddRefed<Runnable> aTask) { RefPtr<Runnable> task = aTask; -#ifdef MOZ_WIDGET_ANDROID - // This is needed while nsWindow::ConfigureAPZControllerThread is not propper - // implemented. - if (AndroidBridge::IsJavaUiThread()) { - task->Run(); - } else { - AndroidBridge::Bridge()->PostTaskToUiThread(task.forget(), 0); - } -#else if (!sControllerThread) { // Could happen on startup NS_WARNING("Dropping task posted to controller thread"); @@ -77,17 +65,12 @@ APZThreadUtils::RunOnControllerThread(already_AddRefed<Runnable> aTask) } else { sControllerThread->PostTask(task.forget()); } -#endif } /*static*/ bool APZThreadUtils::IsControllerThread() { -#ifdef MOZ_WIDGET_ANDROID - return AndroidBridge::IsJavaUiThread(); -#else return sControllerThread == MessageLoop::current(); -#endif } NS_IMPL_ISUPPORTS(GenericTimerCallbackBase, nsITimerCallback) |