Pass along potentially modified data
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@
|
|||||||
"metalsmith": "1.6.0",
|
"metalsmith": "1.6.0",
|
||||||
"metalsmith-templates": "0.7.0",
|
"metalsmith-templates": "0.7.0",
|
||||||
"nomnom": "1.8.0",
|
"nomnom": "1.8.0",
|
||||||
"pixelworks": "^0.8.0",
|
"pixelworks": "^0.9.0",
|
||||||
"rbush": "1.3.5",
|
"rbush": "1.3.5",
|
||||||
"temp": "0.8.1",
|
"temp": "0.8.1",
|
||||||
"walk": "2.3.4",
|
"walk": "2.3.4",
|
||||||
|
|||||||
@@ -269,21 +269,21 @@ ol.source.Raster.prototype.composeFrame_ = function(frameState, callback) {
|
|||||||
ol.source.RasterEventType.BEFOREOPERATIONS, frameState, data));
|
ol.source.RasterEventType.BEFOREOPERATIONS, frameState, data));
|
||||||
|
|
||||||
this.worker_.process(imageDatas, data,
|
this.worker_.process(imageDatas, data,
|
||||||
this.onWorkerComplete_.bind(this, frameState, data, callback));
|
this.onWorkerComplete_.bind(this, frameState, callback));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when pixel processing is complete.
|
* Called when pixel processing is complete.
|
||||||
* @param {olx.FrameState} frameState The frame state.
|
* @param {olx.FrameState} frameState The frame state.
|
||||||
* @param {Object} data The user data.
|
|
||||||
* @param {function(Error)} callback Called when rendering is complete.
|
* @param {function(Error)} callback Called when rendering is complete.
|
||||||
* @param {Error} err Any error during processing.
|
* @param {Error} err Any error during processing.
|
||||||
* @param {ImageData} output The output image data.
|
* @param {ImageData} output The output image data.
|
||||||
|
* @param {Object} data The user data.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.source.Raster.prototype.onWorkerComplete_ =
|
ol.source.Raster.prototype.onWorkerComplete_ =
|
||||||
function(frameState, data, callback, err, output) {
|
function(frameState, callback, err, output, data) {
|
||||||
if (err) {
|
if (err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user