Pass along potentially modified data

This commit is contained in:
Tim Schaub
2015-07-02 13:45:09 -06:00
parent ef90f5a097
commit 9d28549b2b
2 changed files with 4 additions and 4 deletions

View File

@@ -38,7 +38,7 @@
"metalsmith": "1.6.0",
"metalsmith-templates": "0.7.0",
"nomnom": "1.8.0",
"pixelworks": "^0.8.0",
"pixelworks": "^0.9.0",
"rbush": "1.3.5",
"temp": "0.8.1",
"walk": "2.3.4",

View File

@@ -269,21 +269,21 @@ ol.source.Raster.prototype.composeFrame_ = function(frameState, callback) {
ol.source.RasterEventType.BEFOREOPERATIONS, frameState, 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.
* @param {olx.FrameState} frameState The frame state.
* @param {Object} data The user data.
* @param {function(Error)} callback Called when rendering is complete.
* @param {Error} err Any error during processing.
* @param {ImageData} output The output image data.
* @param {Object} data The user data.
* @private
*/
ol.source.Raster.prototype.onWorkerComplete_ =
function(frameState, data, callback, err, output) {
function(frameState, callback, err, output, data) {
if (err) {
callback(err);
return;