Bug 1071241 - Call ComputeRotation before TransformShadowTree. r=mwoodrow, a=bajaj
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Tue, 30 Sep 2014 10:07:05 -0400
changeset 225616 6aa3e380165fea27c4ee7e7e9bd19afde39c5c86
parent 225615 6ae4ca55a6d9ae4a1e32fb8693aeca6eb5dbd0b2
child 225617 167b548389d3ec57bf3866fcc61750a6dcfa10c1
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmwoodrow, bajaj
bugs1071241
milestone34.0a2
Bug 1071241 - Call ComputeRotation before TransformShadowTree. r=mwoodrow, a=bajaj This is need so that the rotation transform is available at transform time. Without this rotation is delayed a frame.
gfx/layers/ipc/CompositorParent.cpp
--- a/gfx/layers/ipc/CompositorParent.cpp
+++ b/gfx/layers/ipc/CompositorParent.cpp
@@ -680,26 +680,26 @@ CompositorParent::CompositeToTarget(Draw
     if (mCompositionManager->ReadyForCompose()) {
       mForceCompositionTask->Cancel();
       mForceCompositionTask = nullptr;
     } else {
       return;
     }
   }
 
+  mCompositionManager->ComputeRotation();
+
   TimeStamp time = mIsTesting ? mTestTime : mLastCompose;
   bool requestNextFrame = mCompositionManager->TransformShadowTree(time);
   if (requestNextFrame) {
     ScheduleComposition();
   }
 
   RenderTraceLayers(mLayerManager->GetRoot(), "0000");
 
-  mCompositionManager->ComputeRotation();
-
 #ifdef MOZ_DUMP_PAINTING
   static bool gDumpCompositorTree = false;
   if (gDumpCompositorTree) {
     printf_stderr("Painting --- compositing layer tree:\n");
     mLayerManager->Dump();
   }
 #endif
   mLayerManager->SetDebugOverlayWantsNextFrame(false);