Rename goog.DEBUG to ol.DEBUG
This commit is contained in:
@@ -35,7 +35,7 @@ ol.renderer.webgl.defaultmapshader.Fragment.OPTIMIZED_SOURCE = 'precision medium
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.defaultmapshader.Fragment.SOURCE = goog.DEBUG ?
|
||||
ol.renderer.webgl.defaultmapshader.Fragment.SOURCE = ol.DEBUG ?
|
||||
ol.renderer.webgl.defaultmapshader.Fragment.DEBUG_SOURCE :
|
||||
ol.renderer.webgl.defaultmapshader.Fragment.OPTIMIZED_SOURCE;
|
||||
|
||||
@@ -72,7 +72,7 @@ ol.renderer.webgl.defaultmapshader.Vertex.OPTIMIZED_SOURCE = 'varying vec2 a;att
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.defaultmapshader.Vertex.SOURCE = goog.DEBUG ?
|
||||
ol.renderer.webgl.defaultmapshader.Vertex.SOURCE = ol.DEBUG ?
|
||||
ol.renderer.webgl.defaultmapshader.Vertex.DEBUG_SOURCE :
|
||||
ol.renderer.webgl.defaultmapshader.Vertex.OPTIMIZED_SOURCE;
|
||||
|
||||
@@ -92,35 +92,35 @@ ol.renderer.webgl.defaultmapshader.Locations = function(gl, program) {
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_opacity = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_opacity' : 'f');
|
||||
program, ol.DEBUG ? 'u_opacity' : 'f');
|
||||
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_projectionMatrix = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_projectionMatrix' : 'e');
|
||||
program, ol.DEBUG ? 'u_projectionMatrix' : 'e');
|
||||
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_texCoordMatrix = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_texCoordMatrix' : 'd');
|
||||
program, ol.DEBUG ? 'u_texCoordMatrix' : 'd');
|
||||
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_texture = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_texture' : 'g');
|
||||
program, ol.DEBUG ? 'u_texture' : 'g');
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_position = gl.getAttribLocation(
|
||||
program, goog.DEBUG ? 'a_position' : 'b');
|
||||
program, ol.DEBUG ? 'a_position' : 'b');
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_texCoord = gl.getAttribLocation(
|
||||
program, goog.DEBUG ? 'a_texCoord' : 'c');
|
||||
program, ol.DEBUG ? 'a_texCoord' : 'c');
|
||||
};
|
||||
|
||||
@@ -118,7 +118,7 @@ ol.renderer.webgl.ImageLayer.prototype.prepareFrame = function(frameState, layer
|
||||
if (!ol.ENABLE_RASTER_REPROJECTION) {
|
||||
var sourceProjection = imageSource.getProjection();
|
||||
if (sourceProjection) {
|
||||
goog.DEBUG && console.assert(ol.proj.equivalent(projection, sourceProjection),
|
||||
ol.DEBUG && console.assert(ol.proj.equivalent(projection, sourceProjection),
|
||||
'projection and sourceProjection are equivalent');
|
||||
projection = sourceProjection;
|
||||
}
|
||||
@@ -149,7 +149,7 @@ ol.renderer.webgl.ImageLayer.prototype.prepareFrame = function(frameState, layer
|
||||
}
|
||||
|
||||
if (image) {
|
||||
goog.DEBUG && console.assert(texture, 'texture is truthy');
|
||||
ol.DEBUG && console.assert(texture, 'texture is truthy');
|
||||
|
||||
var canvas = this.mapRenderer.getContext().getCanvas();
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ ol.renderer.webgl.Map = function(container, map) {
|
||||
preserveDrawingBuffer: false,
|
||||
stencil: true
|
||||
});
|
||||
goog.DEBUG && console.assert(this.gl_, 'got a WebGLRenderingContext');
|
||||
ol.DEBUG && console.assert(this.gl_, 'got a WebGLRenderingContext');
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -244,7 +244,7 @@ ol.renderer.webgl.Map.prototype.createLayerRenderer = function(layer) {
|
||||
} else if (ol.ENABLE_VECTOR && layer instanceof ol.layer.Vector) {
|
||||
return new ol.renderer.webgl.VectorLayer(this, layer);
|
||||
} else {
|
||||
goog.DEBUG && console.assert(false, 'unexpected layer configuration');
|
||||
ol.DEBUG && console.assert(false, 'unexpected layer configuration');
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -35,7 +35,7 @@ ol.renderer.webgl.tilelayershader.Fragment.OPTIMIZED_SOURCE = 'precision mediump
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.tilelayershader.Fragment.SOURCE = goog.DEBUG ?
|
||||
ol.renderer.webgl.tilelayershader.Fragment.SOURCE = ol.DEBUG ?
|
||||
ol.renderer.webgl.tilelayershader.Fragment.DEBUG_SOURCE :
|
||||
ol.renderer.webgl.tilelayershader.Fragment.OPTIMIZED_SOURCE;
|
||||
|
||||
@@ -72,7 +72,7 @@ ol.renderer.webgl.tilelayershader.Vertex.OPTIMIZED_SOURCE = 'varying vec2 a;attr
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
ol.renderer.webgl.tilelayershader.Vertex.SOURCE = goog.DEBUG ?
|
||||
ol.renderer.webgl.tilelayershader.Vertex.SOURCE = ol.DEBUG ?
|
||||
ol.renderer.webgl.tilelayershader.Vertex.DEBUG_SOURCE :
|
||||
ol.renderer.webgl.tilelayershader.Vertex.OPTIMIZED_SOURCE;
|
||||
|
||||
@@ -92,23 +92,23 @@ ol.renderer.webgl.tilelayershader.Locations = function(gl, program) {
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_texture = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_texture' : 'e');
|
||||
program, ol.DEBUG ? 'u_texture' : 'e');
|
||||
|
||||
/**
|
||||
* @type {WebGLUniformLocation}
|
||||
*/
|
||||
this.u_tileOffset = gl.getUniformLocation(
|
||||
program, goog.DEBUG ? 'u_tileOffset' : 'd');
|
||||
program, ol.DEBUG ? 'u_tileOffset' : 'd');
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_position = gl.getAttribLocation(
|
||||
program, goog.DEBUG ? 'a_position' : 'b');
|
||||
program, ol.DEBUG ? 'a_position' : 'b');
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
this.a_texCoord = gl.getAttribLocation(
|
||||
program, goog.DEBUG ? 'a_texCoord' : 'c');
|
||||
program, ol.DEBUG ? 'a_texCoord' : 'c');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user