3 TemplateCssStage = Utilities.createSubclass(Stage,
9 initialize: function(benchmark, options)
11 Stage.prototype.initialize.call(this, benchmark, options);
13 // Do initialization here.
18 // If count is -ve, -count elements need to be removed form the
19 // stage. If count is +ve, +count elements need to be added to
22 // Change objects in the stage.
25 animate: function(timeDelta)
27 // Animate the elements such that all of them are redrawn. You
28 // may need to define your object so it keeps its animation data.
29 // This object should encapsulate a corrosponding HTMLElement.
30 // You may also define a method called animate() in this object
31 // and just call this function here for all the elements.
33 // Loop through all your objects and ask them to animate.
37 TemplateCssBenchmark = Utilities.createSubclass(Benchmark,
40 Benchmark.call(this, new TemplateCssStage(), options);
44 window.benchmarkClass = TemplateCssBenchmark;