JJianliang Wang[BugFix] Safely elevate NAPI object references
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
initial commit | 1 年前 | |
[Optimize][Canvas] Refactor NAPI buffered object registration Formerly a buffered object may be registered multiple times if it is derived from another class, which leads to a runtime error. Also the lifecyle is not automatically managed. This CL: - Introduces RAII ownership for buffered-object registration in napi_canvas_command_buffer.h and napi_canvas_command_buffer.cc, with Register() now also defining __id. - Moves generated bindings to a single-owner model so root wrappers register once, derived wrappers stop redefining __id, stop carrying duplicate object_id_, and stop manually unregistering. - Updated all generated files. AutoSubmit: true Change-Id: I49f3726f70ce28f1e57843cf3af3c0646b765336 | 6 个月前 | |
initial commit | 1 年前 | |
[Optimize][Canvas] Refactor NAPI buffered object registration Formerly a buffered object may be registered multiple times if it is derived from another class, which leads to a runtime error. Also the lifecyle is not automatically managed. This CL: - Introduces RAII ownership for buffered-object registration in napi_canvas_command_buffer.h and napi_canvas_command_buffer.cc, with Register() now also defining __id. - Moves generated bindings to a single-owner model so root wrappers register once, derived wrappers stop redefining __id, stop carrying duplicate object_id_, and stop manually unregistering. - Updated all generated files. AutoSubmit: true Change-Id: I49f3726f70ce28f1e57843cf3af3c0646b765336 | 6 个月前 | |
[Feature] Integrate weak-node-api for desktop to replace non-standard NAPI - Add @lynx-js/weak-node-api as a third-party dependency - Integrate weak-node-api into desktop-side codebase to replace custom non-standard NAPI implementations - Mobile-side code is untouched and will be migrated incrementally in future issue:m-6852187006 | 7 个月前 | |
initial commit | 1 年前 | |
initial commit | 1 年前 | |
initial commit | 1 年前 | |
[Optimize] Add new implementation for audio Add implementation and necessary binding changes for Audio. Relanded from 47deb1a0775e02f62627cfcb9bf4ba48fb6af2d5, fixing regression AutoSubmit: true SkipChecks: macro, spell | 1 年前 | |
initial commit | 1 年前 | |
initial commit | 1 年前 | |
[BugFix] Safely elevate NAPI object references - Move the elevated bridge reference into ObjectRef and recreate its weak reference while the wrapper is protected. - Add coverage for garbage collection and cloned object references. TEST: Built napi_binding_unittests_exec and passed all 7 tests. | 2 个月前 | |
[BugFix] Safely elevate NAPI object references - Move the elevated bridge reference into ObjectRef and recreate its weak reference while the wrapper is protected. - Add coverage for garbage collection and cloned object references. TEST: Built napi_binding_unittests_exec and passed all 7 tests. | 2 个月前 | |
initial commit | 1 年前 | |
initial commit | 1 年前 | |
initial commit | 1 年前 | |
[BugFix] Safely elevate NAPI object references - Move the elevated bridge reference into ObjectRef and recreate its weak reference while the wrapper is protected. - Add coverage for garbage collection and cloned object references. TEST: Built napi_binding_unittests_exec and passed all 7 tests. | 2 个月前 | |
[BugFix] Safely elevate NAPI object references - Move the elevated bridge reference into ObjectRef and recreate its weak reference while the wrapper is protected. - Add coverage for garbage collection and cloned object references. TEST: Built napi_binding_unittests_exec and passed all 7 tests. | 2 个月前 | |
[Feature] Binding implementation for GPUSupportFeatures and WGSLLanguageFeatures 1. add `HeldByParent` IDL extended attribute instead of using `SameObject` 2. support a set type value for binding and ToNAPI 3. for setlike attribute, define a set object for using in ToNapi, and define raw object to `__name` for GC 4. WGSLLanguageFeatures content is empty now, fill it after updating dawn dependency issue: issue: m-6780370165 doc: https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter SkipChecks: coding-style, macros-check, macro | 11 个月前 | |
[Optimize][Audio] Support remote AudioNode inheritance Reuse the implementations of AudioNode by inheritance instead of duplicating the methods. This will facilitate Audio effect nodes as well as reducing code size. AutoSubmit: true | 1 年前 | |
[Optimize][Binding] Refine handling of optional arguments Previously: - Argument length includes `undefined`, which does not conform to standard. - Default values handling relies on impl side, which not only adds burden to implementers, but the overload resolving can be simply wrong. This CL: - Calculates argument length according to [spec](https://webidl.spec.whatwg.org/\#js-overloads), i.e. excluding tailing `undefined`s - Handles IDL default values in the binding layer, BEFORE resolution to impls. AutoSubmit: true | 1 年前 | |
[Optimize][Canvas] Move dawn implementaion to develop branch issue: m-6780370165 SkipChecks: macro | 11 个月前 |