Bug 986359 part 3 - Add AutoResolveRefLayers before calling TransformShadowTree; r=mattwoodrow

This commit is contained in:
Brian Birtles 2014-03-22 05:59:57 +08:00
Родитель d961380bc0
Коммит bd02c4b352
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -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();