Bug 1148583 - Dispatch touch events before composites. r=kats

This commit is contained in:
Mason Chang 2015-03-30 08:12:47 -07:00
parent 42384b14fb
commit d124e63e1e

View File

@ -332,6 +332,8 @@ CompositorVsyncObserver::Composite(TimeStamp aVsyncTimestamp)
mCurrentCompositeTask = nullptr;
}
DispatchTouchEvents(aVsyncTimestamp);
if (mNeedsComposite && mCompositorParent) {
mNeedsComposite = false;
mCompositorParent->CompositeCallback(aVsyncTimestamp);
@ -339,8 +341,6 @@ CompositorVsyncObserver::Composite(TimeStamp aVsyncTimestamp)
} else if (mVsyncNotificationsSkipped++ > gfxPrefs::CompositorUnobserveCount()) {
UnobserveVsync();
}
DispatchTouchEvents(aVsyncTimestamp);
}
void