Confirmed users
138
edits
(→Roc) |
(→Bas) |
||
| Line 179: | Line 179: | ||
HardwareSurface *Surface(); | HardwareSurface *Surface(); | ||
}; | }; | ||
// This class controls animations on objects, any class can be made to | |||
// implement it, but we'd most likely provide some standard implementations. | |||
// Any state it wants to maintain is contained on an implementation level. | |||
class IAnimator | |||
{ | |||
// Called by the compositor when starting a rendering cycle, with | |||
// the elapsed time. | |||
virtual void AdvanceTime(double aTime); | |||
// This assigns the animator to a frame and registers with its compositor. | |||
void Assign(nsIFrame *aFrame); | |||
} | |||