geojs 1.10.2 → 1.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # GeoJS Change Log
2
2
 
3
+ ## Version 1.10.3
4
+
5
+ ### Performance improvements
6
+
7
+ - Reduce the time it takes to switch texture interpolation ([#1230](../../pull/1230))
8
+
3
9
  ## Version 1.10.2
4
10
 
5
11
  ### Improvements
package/geo.js CHANGED
@@ -27866,7 +27866,7 @@ module.exports = sceneObject;
27866
27866
  * @constant
27867
27867
  * @type {string}
27868
27868
  */
27869
- module.exports = "8a83afdb7516115b52119da8bfe845e7def699dd";
27869
+ module.exports = "8d01f4a68bc4d89c1612e1d19e1805f8e555669b";
27870
27870
 
27871
27871
  /***/ }),
27872
27872
 
@@ -41026,7 +41026,7 @@ module.exports = vectorFeature;
41026
41026
  * @constant
41027
41027
  * @type {string}
41028
41028
  */
41029
- module.exports = "1.10.2";
41029
+ module.exports = "1.10.3";
41030
41030
 
41031
41031
  /***/ }),
41032
41032
 
@@ -45695,7 +45695,21 @@ var webgl_quadFeature = function webgl_quadFeature(arg) {
45695
45695
 
45696
45696
  m_quads.imgQuads.forEach(function (quad) {
45697
45697
  if (quad.image && quad.texture && quad.texture.nearestPixel() !== nearestPixel) {
45698
+ /* This could just be
45699
+ * quad.texture.setNearestPixel(nearestPixel);
45700
+ * but that needlessly redecodes the image. Instead, just change the
45701
+ * the interpolation flags, then change the nearestPixel value
45702
+ * without triggering a complete re-setup. */
45703
+ renderState.m_context.bindTexture(vgl.GL.TEXTURE_2D, quad.texture.textureHandle());
45704
+ renderState.m_context.texParameteri(vgl.GL.TEXTURE_2D, vgl.GL.TEXTURE_MIN_FILTER, nearestPixel ? vgl.GL.NEAREST : vgl.GL.LINEAR);
45705
+ renderState.m_context.texParameteri(vgl.GL.TEXTURE_2D, vgl.GL.TEXTURE_MAG_FILTER, nearestPixel ? vgl.GL.NEAREST : vgl.GL.LINEAR);
45706
+ renderState.m_context.bindTexture(vgl.GL.TEXTURE_2D, null);
45707
+ var oldmod = quad.texture.modified;
45708
+
45709
+ quad.texture.modified = function () {};
45710
+
45698
45711
  quad.texture.setNearestPixel(nearestPixel);
45712
+ quad.texture.modified = oldmod;
45699
45713
  }
45700
45714
  });
45701
45715
  }
package/geo.lean.js CHANGED
@@ -27866,7 +27866,7 @@ module.exports = sceneObject;
27866
27866
  * @constant
27867
27867
  * @type {string}
27868
27868
  */
27869
- module.exports = "8a83afdb7516115b52119da8bfe845e7def699dd";
27869
+ module.exports = "8d01f4a68bc4d89c1612e1d19e1805f8e555669b";
27870
27870
 
27871
27871
  /***/ }),
27872
27872
 
@@ -41026,7 +41026,7 @@ module.exports = vectorFeature;
41026
41026
  * @constant
41027
41027
  * @type {string}
41028
41028
  */
41029
- module.exports = "1.10.2";
41029
+ module.exports = "1.10.3";
41030
41030
 
41031
41031
  /***/ }),
41032
41032
 
@@ -45695,7 +45695,21 @@ var webgl_quadFeature = function webgl_quadFeature(arg) {
45695
45695
 
45696
45696
  m_quads.imgQuads.forEach(function (quad) {
45697
45697
  if (quad.image && quad.texture && quad.texture.nearestPixel() !== nearestPixel) {
45698
+ /* This could just be
45699
+ * quad.texture.setNearestPixel(nearestPixel);
45700
+ * but that needlessly redecodes the image. Instead, just change the
45701
+ * the interpolation flags, then change the nearestPixel value
45702
+ * without triggering a complete re-setup. */
45703
+ renderState.m_context.bindTexture(vgl.GL.TEXTURE_2D, quad.texture.textureHandle());
45704
+ renderState.m_context.texParameteri(vgl.GL.TEXTURE_2D, vgl.GL.TEXTURE_MIN_FILTER, nearestPixel ? vgl.GL.NEAREST : vgl.GL.LINEAR);
45705
+ renderState.m_context.texParameteri(vgl.GL.TEXTURE_2D, vgl.GL.TEXTURE_MAG_FILTER, nearestPixel ? vgl.GL.NEAREST : vgl.GL.LINEAR);
45706
+ renderState.m_context.bindTexture(vgl.GL.TEXTURE_2D, null);
45707
+ var oldmod = quad.texture.modified;
45708
+
45709
+ quad.texture.modified = function () {};
45710
+
45698
45711
  quad.texture.setNearestPixel(nearestPixel);
45712
+ quad.texture.modified = oldmod;
45699
45713
  }
45700
45714
  });
45701
45715
  }