You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 23dbec7
Browse filesBrowse the repository at this point in the historyBrowse files
Brings in #144-#149. Conflict resolution notes:
* #147 (V8 14 native bridge) overlapped almost entirely with the V8 14
migration this branch already carries. Both sides fix the same API break;
master does it with dual-version shims (canvas::GetAlignedPointer,
canvas::Receiver, CANVAS_FAST_FUNCTION, #if V8_MAJOR_VERSION >= 14) so one
tree can build against V8 10.3 and 14, while this branch targets a single
vendored V8 14.9 (tools/scripts/download-v8.sh) and calls the native APIs
directly. 118 of the 127 conflicting sources were that difference alone --
after rewriting master's shims into this branch's idiom, 112 compared
byte-identical -- so those keep this branch's spelling and the now-unused
shim block is dropped from Common.h.
* Master's shims also compile fast API calls out on V8 >= 14
(CANVAS_FAST_FUNCTION -> v8::CFunction{}, c_function -> nullptr). V8 14.9
still declares both FunctionTemplate::New(..., const CFunction*) and
NewWithCFunctionOverloads, and this branch's fast paths are built against
it, so taking that would have silently disabled every fast call in the
binding layer. Helpers.h keeps this branch's version; the four
CANVAS_FAST_FUNCTION call sites that auto-merged into
OES_vertex_array_objectImpl and WEBGL_draw_buffersImpl -- no conflict was
raised for those -- are restored to v8::CFunction::Make.
* Master's *Array fast overloads are all guarded #if V8_MAJOR_VERSION < 14,
so they are dead on 14 and equivalent to this branch having removed them.
* #149 (ImageData double free) applies unchanged. canvas_native_image_data_get_data
borrows its argument and returns a U8Buffer holding a second refcounted
handle to the same pixels, so ImageDataBuffer must release only the buffer --
~ImageDataImpl already releases the ImageData. The comment is reworded from
master's, which described the buffer as owning a clone of the pixel storage;
it is a shared handle, and that is what makes the JS data view live.
* Package versions stay on the 3.0.0-alpha line.
* canvas-release.aar keeps this branch's binary; it predates the Android
render fixes in 638a265 and needs rebuilding from the merged sources.
0 commit comments