(function() { WebGLStage = Utilities.createSubclass(Stage, function(element, options) { Stage.call(this); }, { initialize: function(benchmark, options) { Stage.prototype.initialize.call(this, benchmark, options); this._numTriangles = 0; this._bufferSize = 0; this._gl = this.element.getContext("webgl"); var gl = this._gl; gl.clearColor(0.5, 0.5, 0.5, 1); // Create the vertex shader object. var vertexShader = gl.createShader(gl.VERTEX_SHADER); // The source code for the shader is extracted from the