|
|
@ -1258,7 +1258,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { |
|
|
|
return CanvasGraphics; |
|
|
|
return CanvasGraphics; |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
if (!isWorker) { |
|
|
|
function checkPutBinaryImageDataCompatibility() { |
|
|
|
// Feature detection if the browser can use an Uint8Array directly as imgData.
|
|
|
|
// Feature detection if the browser can use an Uint8Array directly as imgData.
|
|
|
|
var canvas = document.createElement('canvas'); |
|
|
|
var canvas = document.createElement('canvas'); |
|
|
|
canvas.width = 1; |
|
|
|
canvas.width = 1; |
|
|
@ -1293,3 +1293,6 @@ if (!isWorker) { |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (!isWorker) { |
|
|
|
|
|
|
|
checkPutBinaryImageDataCompatibility(); |
|
|
|
|
|
|
|
} |
|
|
|