Confirmed users
220
edits
| Line 10: | Line 10: | ||
ElementAnimations* ea = nsAnimationManager::GetAnimationsForCompositor(content, aProperty); | ElementAnimations* ea = nsAnimationManager::GetAnimationsForCompositor(content, aProperty); | ||
2. Check to see if async animations is enabled (Can draw by GPU), | 2. Check to see if async animations is enabled (Can draw by GPU), but only Display type of Transform and Opacity adapt OMTA (Type check at Layers::SetAnimations()). | ||
|-> aItem->CanUseAsyncAnimations(aBuilder) | |-> aItem->CanUseAsyncAnimations(aBuilder) | ||
3. Set up some extra information for transformation, so that a gfx3DMatrix can applied directly to the layer. (defined in LayersMessage.ipdlh) | 3. Set up some extra information for transformation, so that a gfx3DMatrix can applied directly to the layer. (defined in LayersMessage.ipdlh) | ||
| Line 28: | Line 28: | ||
5.1 For each segment in a anim: | 5.1 For each segment in a anim: | ||
|-> AddTransformFunctions() | |-> AddTransformFunctions() | ||
6. Update the number of animations. | 6. Update the number of generated animations. | ||
|-> aLayer->SetAnimationGeneration(a number); | |-> aLayer->SetAnimationGeneration(a number); | ||