mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
Issue #1053 - Part 3a: Remove Android conditionals from /gfx
This commit is contained in:
parent
7167c960d0
commit
753251e54c
43 changed files with 32 additions and 1708 deletions
|
|
@ -369,16 +369,6 @@ CompositorVsyncScheduler::ScheduleComposition()
|
|||
if (mAsapScheduling) {
|
||||
// Used only for performance testing purposes
|
||||
PostCompositeTask(TimeStamp::Now());
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
} else if (mNeedsComposite >= 2 && mIsObservingVsync) {
|
||||
// uh-oh, we already requested a composite at least twice so far, and a
|
||||
// composite hasn't happened yet. It is possible that the vsync observation
|
||||
// is blocked on the main thread, so let's just composite ASAP and not
|
||||
// wait for the vsync. Note that this should only ever happen on Fennec
|
||||
// because there content runs in the same process as the compositor, and so
|
||||
// content can actually block the main thread in this process.
|
||||
PostCompositeTask(TimeStamp::Now());
|
||||
#endif
|
||||
} else {
|
||||
SetNeedsComposite();
|
||||
}
|
||||
|
|
@ -953,11 +943,6 @@ CompositorBridgeParent::ResumeComposition()
|
|||
MonitorAutoLock lock(mResumeCompositionMonitor);
|
||||
|
||||
if (!mCompositor->Resume()) {
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
// We can't get a surface. This could be because the activity changed between
|
||||
// the time resume was scheduled and now.
|
||||
__android_log_print(ANDROID_LOG_INFO, "CompositorBridgeParent", "Unable to renew compositor surface; remaining in paused state");
|
||||
#endif
|
||||
lock.NotifyAll();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue