зеркало из https://github.com/mozilla/gecko-dev.git
Bug 986359 part 3 - Add AutoResolveRefLayers before calling TransformShadowTree; r=mattwoodrow
This commit is contained in:
Родитель
d961380bc0
Коммит
bd02c4b352
|
@ -761,6 +761,7 @@ CompositorParent::ShadowLayersUpdated(LayerTransactionParent* aLayerTree,
|
|||
// scheduled in order to better match the behavior under regular sampling
|
||||
// conditions.
|
||||
if (mIsTesting && root && mCurrentCompositeTask) {
|
||||
AutoResolveRefLayers resolve(mCompositionManager);
|
||||
bool requestNextFrame =
|
||||
mCompositionManager->TransformShadowTree(mTestTime);
|
||||
if (!requestNextFrame) {
|
||||
|
@ -790,6 +791,7 @@ CompositorParent::SetTestSampleTime(LayerTransactionParent* aLayerTree,
|
|||
|
||||
// Update but only if we were already scheduled to animate
|
||||
if (mCompositionManager && mCurrentCompositeTask) {
|
||||
AutoResolveRefLayers resolve(mCompositionManager);
|
||||
bool requestNextFrame = mCompositionManager->TransformShadowTree(aTime);
|
||||
if (!requestNextFrame) {
|
||||
CancelCurrentCompositeTask();
|
||||
|
|
Загрузка…
Ссылка в новой задаче