Skip to content

[Optimize] Use platform-owned native render resource ids#7523

Open
ShouruiSong wants to merge 1 commit into
developfrom
shadow/p/ShouruiSong/native_render_resource_id
Open

[Optimize] Use platform-owned native render resource ids#7523
ShouruiSong wants to merge 1 commit into
developfrom
shadow/p/ShouruiSong/native_render_resource_id

Conversation

@ShouruiSong

Copy link
Copy Markdown
Collaborator

No description provided.

Native UI Render text and image display-list operations now reference platform-owned paint resource ids instead of fragment ids. Fragment behaviors keep the last image request key or text bundle identity and request a new platform resource only when that identity changes.

Android and iOS now keep resource registries in their renderer contexts, preserve owner ids for event and legacy lookup paths, and let display-list appliers release text and image resources after active display lists stop referencing them. The Fragment Layer Render architecture note and platform API snapshots were updated to match the new contract.

TEST: tools/env.sh clang-format -i for changed C++, Objective-C++, and Java files

TEST: tools/env.sh git lynx check

TEST: ./out/Default/fragment_test_exec --gtest_filter=DisplayListBuilderTest.DrawImageOperation:DisplayListBuilderTest.DrawImageWithBoxIndex

TEST: ./out/Default/dom_unittest_exec --gtest_filter=FragmentTest.TestUpdateLayoutAndDefineBoxAndDrawImage:TextFragmentBehaviorTest.*

TEST: tools/env.sh ninja -C out/Default dom_unittest_exec

TEST: ANDROID_SERIAL=11161FDD4001F3 ./gradlew :LynxAndroid:connectedNoasanDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.lynx.tasm.behavior.render.DisplayListApplierTest built Java and native targets, then device install was blocked by INSTALL_FAILED_DEPRECATED_SDK_VERSION because the package targetSdk is 22 on Android 14

TEST: xcodebuild build-for-testing for LynxRendererContextUnitTest and LynxDisplayListApplierUnitTest was attempted, but the workspace failed while copying missing source header lynx/core/runtime/js/bindings/api_invoke_ctrl.h referenced by Pods/Lynx.xcodeproj

AutoSubmit: true
@jianliang00 jianliang00 force-pushed the shadow/p/ShouruiSong/native_render_resource_id branch from e999b8d to e091b54 Compare June 26, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant