Zach Bjornson
83a8b27b02
#637 use Nan::TypedArrayContents, fix a signed/unsigned comp warning
10 years ago
Michaël Zasso
2884267de4
make ImageData constructor more spec-compliant
10 years ago
Zach Bjornson
d4d3b9c724
Update to NAN 2 and node 3+ APIs
10 years ago
Zach Bjornson
7d9286638f
Support node <0.12 using kExternalPixelArray.
10 years ago
Zach Bjornson
b4a05d7892
Replace CanvasPixelArray with Uint8ClampedArray to meet spec.
Added some argument testing/manipulation to match WebKit/Moz behaviors.
Additionally benchmarked:
* branching on `if (a == 0 || a == 255)`, as it is
* not branching (always doing the alpha calculation)
* Mozilla's implementation found here: https://dxr.mozilla.org/mozilla-central/source/dom/canvas/CanvasRenderingContext2D.cpp#5083
Mozilla's is insignificantly faster (p=0.17) :) so left it as-is.
10 years ago
King Koopa
c18d777f57
Updated NAN to 1.2.0
11 years ago
Rod Vagg
9b62e5f64e
beginning nan@1.0.0 conversion
11 years ago
King Koopa
8dbdd009b5
Runs on new v8.
11 years ago
Rod Vagg
2354d9bb8c
0.11.4+ compatibility using NAN
See https://github.com/rvagg/nan
12 years ago
Infinite Whiteboard
13b8f41141
Added backwards compatibility through conditional compilation.
12 years ago
Infinite Whiteboard
14a19421d2
Patch for Node 0.11.3
12 years ago
Tj Holowaychuk
09023539c4
Checking instanceof PixelArray
15 years ago
Tj Holowaychuk
228aafec7e
Fixed constructors
15 years ago
Tj Holowaychuk
513f2a1098
Added PixelArray::constructor
15 years ago
Tj Holowaychuk
db56ec26e7
Added ImageData::constructor
15 years ago
Tj Holowaychuk
8bdac35743
Started getImageData()
15 years ago
Tj Holowaychuk
866c9cd1ce
Started PixelArray
15 years ago
Tj Holowaychuk
dd84c1bb0f
Added ImageData
15 years ago