mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
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:
parent
b7f2a67b3b
commit
b62f1b8765
@ -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(
|
Maybe<CSSPoint> AsyncPanZoomController::FindSnapPointNear(
|
||||||
const CSSPoint& aDestination, nsIScrollableFrame::ScrollUnit aUnit) {
|
const CSSPoint& aDestination, nsIScrollableFrame::ScrollUnit aUnit) {
|
||||||
mRecursiveMutex.AssertCurrentThreadIn();
|
mRecursiveMutex.AssertCurrentThreadIn();
|
||||||
|
@ -1305,17 +1305,11 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Set an extra offset for testing async scrolling.
|
* Set an extra offset for testing async scrolling.
|
||||||
*/
|
*/
|
||||||
void SetTestAsyncScrollOffset(const CSSPoint& aPoint)
|
void SetTestAsyncScrollOffset(const CSSPoint& aPoint);
|
||||||
{
|
|
||||||
mTestAsyncScrollOffset = aPoint;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Set an extra offset for testing async scrolling.
|
* Set an extra offset for testing async scrolling.
|
||||||
*/
|
*/
|
||||||
void SetTestAsyncZoom(const LayerToParentLayerScale& aZoom)
|
void SetTestAsyncZoom(const LayerToParentLayerScale& aZoom);
|
||||||
{
|
|
||||||
mTestAsyncZoom = aZoom;
|
|
||||||
}
|
|
||||||
|
|
||||||
void MarkAsyncTransformAppliedToContent()
|
void MarkAsyncTransformAppliedToContent()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user