Commit 67134184 authored by Joel Martin's avatar Joel Martin

Always prefer JS ops if we have imageData.

All browsers with Canvas imageData are faster with JS ops instead of
canvas ops. This gives significant performance improvement in Opera.
Except for missing web-socet-js message notifications, Opera 10.60 is
now faster than firefox 3.5.
parent a93c9555
...@@ -186,13 +186,8 @@ init: function (id) { ...@@ -186,13 +186,8 @@ init: function (id) {
console.log("Using Canvas getImageData"); console.log("Using Canvas getImageData");
Canvas._imageData = Canvas._imageDataGet; Canvas._imageData = Canvas._imageDataGet;
} }
if (Util.Engine.webkit || Util.Engine.gecko) { console.log("Prefering javascript operations");
console.log("Prefering javascript operations"); Canvas.prefer_js = true;
Canvas.prefer_js = true;
} else {
console.log("Prefering Canvas operations");
Canvas.prefer_js = false;
}
Canvas._rgbxImage = Canvas._rgbxImageData; Canvas._rgbxImage = Canvas._rgbxImageData;
Canvas._cmapImage = Canvas._cmapImageData; Canvas._cmapImage = Canvas._cmapImageData;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment