Lines Matching refs:cache

14265     this.cache = Object.create(null);
14272 if (this.cache[id] !== undefined) {
14273 canvasEntry = this.cache[id];
14278 this.cache[id] = canvasEntry;
14288 for (var id in this.cache) {
14289 var canvasEntry = this.cache[id];
14291 delete this.cache[id];
18519 var cache = {};
18520 cache.gl = gl;
18521 cache.canvas = canvas;
18522 cache.resolutionLocation = gl.getUniformLocation(program, 'u_resolution');
18523 cache.positionLocation = gl.getAttribLocation(program, 'a_position');
18524 cache.backdropLocation = gl.getUniformLocation(program, 'u_backdrop');
18525 cache.subtypeLocation = gl.getUniformLocation(program, 'u_subtype');
18536 smaskCache = cache;
18547 var cache = smaskCache,
18548 canvas = cache.canvas,
18549 gl = cache.gl;
18553 gl.uniform2f(cache.resolutionLocation, width, height);
18556 …gl.uniform4f(cache.resolutionLocation, properties.backdrop[0], properties.backdrop[1], properties.…
18558 gl.uniform4f(cache.resolutionLocation, 0, 0, 0, 0);
18561 gl.uniform1i(cache.subtypeLocation, properties.subtype === 'Luminosity' ? 1 : 0);
18567 gl.enableVertexAttribArray(cache.positionLocation);
18568 gl.vertexAttribPointer(cache.positionLocation, 2, gl.FLOAT, false, 0, 0);
18619 var cache = {};
18620 cache.gl = gl;
18621 cache.canvas = canvas;
18622 cache.resolutionLocation = gl.getUniformLocation(program, 'u_resolution');
18623 cache.scaleLocation = gl.getUniformLocation(program, 'u_scale');
18624 cache.offsetLocation = gl.getUniformLocation(program, 'u_offset');
18625 cache.positionLocation = gl.getAttribLocation(program, 'a_position');
18626 cache.colorLocation = gl.getAttribLocation(program, 'a_color');
18627 figuresCache = cache;
18635 var cache = figuresCache,
18636 canvas = cache.canvas,
18637 gl = cache.gl;
18641 gl.uniform2f(cache.resolutionLocation, width, height);
18741 gl.enableVertexAttribArray(cache.positionLocation);
18742 gl.vertexAttribPointer(cache.positionLocation, 2, gl.FLOAT, false, 0, 0);
18746 gl.enableVertexAttribArray(cache.colorLocation);
18747 gl.vertexAttribPointer(cache.colorLocation, 3, gl.UNSIGNED_BYTE, false, 0, 0);
18748 gl.uniform2f(cache.scaleLocation, context.scaleX, context.scaleY);
18749 gl.uniform2f(cache.offsetLocation, context.offsetX, context.offsetY);