Bug 1432637 - Schedule a composite when setting test properties on an APZC. r=botond

Scheduling a composition sets the mNeedsComposite flag in the compositor
scheduler, so that advancing the time via advanceTimeAndRefresh doesn't
do an early-exit.

MozReview-Commit-ID: KvldsCCY0SD

--HG--
extra : rebase_source : e661e430c36553ce95d7798b4bc95ffaab48ab90
This commit is contained in:
Kartikaya Gupta 2018-01-23 17:21:58 -05:00
Родитель b7f2a67b3b
Коммит b62f1b8765
2 изменённых файлов: 16 добавлений и 8 удалений

Просмотреть файл

@ -4416,6 +4416,20 @@ void AsyncPanZoomController::ShareCompositorFrameMetrics()
}
}
void
AsyncPanZoomController::SetTestAsyncScrollOffset(const CSSPoint& aPoint)
{
mTestAsyncScrollOffset = aPoint;
ScheduleComposite();
}
void
AsyncPanZoomController::SetTestAsyncZoom(const LayerToParentLayerScale& aZoom)
{
mTestAsyncZoom = aZoom;
ScheduleComposite();
}
Maybe<CSSPoint> AsyncPanZoomController::FindSnapPointNear(
const CSSPoint& aDestination, nsIScrollableFrame::ScrollUnit aUnit) {
mRecursiveMutex.AssertCurrentThreadIn();

Просмотреть файл

@ -1305,17 +1305,11 @@ public:
/**
* Set an extra offset for testing async scrolling.
*/
void SetTestAsyncScrollOffset(const CSSPoint& aPoint)
{
mTestAsyncScrollOffset = aPoint;
}
void SetTestAsyncScrollOffset(const CSSPoint& aPoint);
/**
* Set an extra offset for testing async scrolling.
*/
void SetTestAsyncZoom(const LayerToParentLayerScale& aZoom)
{
mTestAsyncZoom = aZoom;
}
void SetTestAsyncZoom(const LayerToParentLayerScale& aZoom);
void MarkAsyncTransformAppliedToContent()
{