Skip to content

Commit

Permalink
Bug 986359 part 3 - Add AutoResolveRefLayers before calling Transform…
Browse files Browse the repository at this point in the history
…ShadowTree; r=mattwoodrow
  • Loading branch information
birtles committed Mar 21, 2014
1 parent 277ad86 commit f921c04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gfx/layers/ipc/CompositorParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit f921c04

Please sign in to comment.