1 SimpleCanvasStage = Utilities.createSubclass(Stage,
5 this._canvasObject = canvasObject;
9 initialize: function(benchmark, options)
11 Stage.prototype.initialize.call(this, benchmark, options);
12 this.context = this.element.getContext("2d");
21 for (var i = 0; i < count; ++i)
22 this.objects.push(new this._canvasObject(this));
26 count = Math.min(-count, this.objects.length);
27 this.objects.splice(0, count);
32 var context = this.context;
33 context.clearRect(0, 0, this.size.x, this.size.y);
34 this.objects.forEach(function(object) {
39 complexity: function()
41 return this.objects.length;