feat(libSceNKWebKit): implement basic CSS filter operation exports #24172
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24172"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Nino4you on 2026-11-20T09:05:40Z.
What
Implement the ten unimplemented CSS basic filter operation exports for
WebCore::BasicColorMatrixFilterOperationandWebCore::BasicComponentTransferFilterOperationinlibSceNKWebKit, following pinned WebKitFilterOperation.h,FilterOperation.cpp,ColorMatrix.h, andAnimationUtilities.hat commitc55364d53f971f63a709976f168d932d558b8909:WebCore::BasicColorMatrixFilterOperation(GRAYSCALE,SEPIA,SATURATE,HUE_ROTATE):_ZN7WebCore31BasicColorMatrixFilterOperation6createEdNS_15FilterOperation13OperationTypeE_ZN7WebCore31BasicColorMatrixFilterOperationC1EdNS_15FilterOperation13OperationTypeE_ZN7WebCore31BasicColorMatrixFilterOperationC2EdNS_15FilterOperation13OperationTypeE_ZNK7WebCore31BasicColorMatrixFilterOperation14transformColorERNS_5SRGBAIfEE_ZN7WebCore31BasicColorMatrixFilterOperation5blendEPKNS_15FilterOperationEdbWebCore::BasicComponentTransferFilterOperation(OPACITY,INVERT,CONTRAST,BRIGHTNESS):_ZN7WebCore37BasicComponentTransferFilterOperation6createEdNS_15FilterOperation13OperationTypeE_ZN7WebCore37BasicComponentTransferFilterOperationC1EdNS_15FilterOperation13OperationTypeE_ZN7WebCore37BasicComponentTransferFilterOperationC2EdNS_15FilterOperation13OperationTypeE_ZNK7WebCore37BasicComponentTransferFilterOperation14transformColorERNS_5SRGBAIfEE_ZN7WebCore37BasicComponentTransferFilterOperation5blendEPKNS_15FilterOperationEdbRemoves the ten throwing stubs from
Export.cppandinclude/LegacyExports.hpp, declares the typed SysV signatures and 8-byte non-trivially-destructibleWebCore::BasicFilterOperationRef<T>return wrapper ininclude/BasicFilterOperationExports.hpp(included fromlibSceNKWebKit.hpp), addstests/BasicFilterOperations.cpp(nkwebkit_basicfilteroperations_tests), and records technical debt indocs/dev/debt/changes/feat-nkwebkit-basic-filter-operations.md.Tested
Linux x86-64 (Debian 12, GCC 12.2.0, Ninja Release,
BUILD_TESTING=ON), baseupstream/maine825fa1492:BasicFilterOperations.cpp.o,Export.cpp.o,tests/BasicFilterOperations.cpp.o,WtfMemory.cpp.o, andBmalloc.cpp.ocleanly with 0 warnings (fulllibSceNKWebKitlink on GCC 12.2 hits pre-existingDragImageAbi.hppunion default-constructor error).BasicFilterOperations.cpp.o+tests/BasicFilterOperations.cpp.o+WtfMemory.cpp.o+Bmalloc.cpp.oagainstlibSceJsc.prxandlibc.prxand ran the test binary: passed (exit 0; verified static signatures,create/C1/C2, vtable dispatch, all 8 filter types intransformColorincluding clamping and unrecognized types,blendfor null/matching/blendToPassthrough/mismatched 16-byte header next toPROT_NONEguard page + refcount retain/release, and null/unmapped/read-only guest pointer rejection preservingerrno).ctest --test-dir build -R public_headers -V: 65/65 passed (public_headersaudit + all 64public_headers_compile_*batches).python3 tools/debt_fold.py --check: passed.python3 tools/check_test_registration.py build: passed.python3 tools/check_conventions.py --base upstream/main: all conventions checks passed (0 errors, 0 warnings).python3 tools/guest_pointer_audit.py libSceNKWebKit: 0 findings inBasicFilterOperations.cpp.tools/pr_overlap.py --names(all 10 exportsopen: none) andtools/pr_overlap.py --branch feat/nkwebkit-basic-filter-operations: 0 overlapping exports or new files.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T09:07:43Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
bbd9f6a80f:tools/check_conventions.pypassed.nkwebkit_basicfilteroperations_testsbuilt cleanly.nkwebkit_basicfilteroperations):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/BasicFilterOperations.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T09:23:09Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
bbd9f6a80f7b922e42e3c922cc5ff0907c9ab591through the pinnedrepo_read.pyreader; I did not run commands or tests. The author reports Linux x86-64 tests and checks in the PR description; those results were not independently verified. I read the full new implementation, API header, test file, debt note, and the changed include line. ForExport.cppandLegacyExports.hpp, I read the affected regions;Export.cppwas excluded from the review folder because it was too large.Results
Negative control
Not run; this review session did not run tests or modify code under test.
Findings
Blocking
None.
Non-blocking
docs/dev/debt/changes/feat-nkwebkit-basic-filter-operations.md:5).Sources
Not verified
I did not run the reported build, test binary, or other checks, and did not verify Windows, console, or title behavior.
Export.cppwas read only around affected removals;LegacyExports.hppwas read around the affected declarations. The remaining changed code was read in full.To get this to a good state
Nothing is required. Optional: compare the ABI, vtable layout, and floating-point behavior with a console module, then update the recorded debt if verified.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T22:27:35Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change based on the source inspected; console ABI and floating-point parity remain unverified.
What I ran
Reviewed head
c380286b9940228054c6e861ac6cd96e7be30ec6. I did not run commands or tests. The description reports Linux build and test results; those were not independently run.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
Not verified
No tests or builds were run. Windows, console, and title behavior were not verified. Read changed source and test logic, declarations, layout definitions, debt note, and relevant diff hunks.
Export.cppwas excluded from the review folder because it was too large; its removal hunks were inspected indiff.patch.LegacyExports.hppwas 2,124 lines and only the relevant diff hunks and a context range were inspected. The test file was 567 lines; its new test cases were inspected in the diff, not as a full file.To get this to a good state
Nothing is required. Optional: compare the ABI and floating-point behavior with a console module.