JJianliang Wang[Optimize] Remove unnecessary `extern "C"`
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[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 个月前 | |
[Refactor][NAPI] Move N-API core to common/ and split JS loader into js/napi This change reorganizes N-API sources to clarify ownership and reduce coupling: - Move N-API core from bindings/napi to common/napi with updated include paths and GN targets. - Split JS-specific loader into core/runtime/js/napi (napi_loader_js.*) and add a new BUILD target for it. - Relocate Lepus worklet/test N-API bindings under core/runtime/lepus_context/napi. - Update all includes, deps, and BUILD.gn references across platforms (Android, iOS, macOS, Windows, Harmony) and tests. - Adjust third_party and renderer deps to the new targets. Previous layout mixed engine-agnostic N-API with engine- or context- specific pieces. The new structure separates common N-API from JS engine loader and Lepus context bindings, improving modularity and maintainability. AutoSubmit: True doc: https://github.com/lynx-family/lynx/discussions/281 issue: m-6787224557 | 9 个月前 | |
[Optimize] Remove unnecessary `extern "C"` `quickjs.h` itself has already added `extern "C"` for C++ sources SkipChecks:macro | 3 个月前 | |
initial commit | 1 年前 | |
initial commit | 1 年前 | |
initial commit | 1 年前 | |
initial commit | 1 年前 | |
initial commit | 1 年前 | |
[Refactor][Runtime] Rename piper namespace to runtime::js across codebase Detailed description: Rename all piper namespace references to runtime::js throughout the project Batch modification of 584 files including headers, source files, and test files Update related include paths and namespace declarations Maintain original functionality with only naming standardization changes This refactoring primarily aims to unify code naming conventions by consolidating the original piper namespace under runtime::js, making the code structure clearer and more consistent. AutoSubmit: True doc: https://github.com/lynx-family/lynx/discussions/281 issue: m-6787224557 | 8 个月前 |