Skip to content

Optimize Linux GTK dirty pixel conversion - #434

Merged
ctate merged 1 commit into
mainfrom
ctate/gtk-dirty-conversion-43e0b2dd
Sep 14, 2026
Merged

ctate merged 1 commit into
mainfrom
ctate/gtk-dirty-conversion-43e0b2dd

Conversation

@ctate

@ctate ctate commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Linux GTK now uses retained damage metadata to limit RGBA8-to-premultiplied-ARGB32 conversion to affected device pixels. First presentations, resized or reallocated buffers, and invalid damage inputs retain the full-conversion fallback, while valid rectangles are normalized, scaled, rounded outward, and clipped safely.

A GTK-independent pixel helper and focused C regression suite cover conversion correctness, stride padding, buffer reuse, edge cases, and preservation of untouched pixels; the focused step is also wired into zig build test.

Linux GTK now uses retained damage metadata to limit RGBA8-to-premultiplied-ARGB32 conversion to affected device pixels. First presentations, resized or reallocated buffers, and invalid damage inputs retain the full-conversion fallback, while valid rectangles are normalized, scaled, rounded outward, and clipped safely.

A GTK-independent pixel helper and focused C regression suite cover conversion correctness, stride padding, buffer reuse, edge cases, and preservation of untouched pixels; the focused step is also wired into `zig build test`.

Factory-Run: 43e0b2dd7071a93d10b5410937a13e50
Co-authored-by: Sepehr Safari <25853688+sepehr-safari@users.noreply.github.com>
@vercel

vercel Bot commented Sep 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
native-sdk Ready Ready Preview, v0 Sep 14, 2026 3:33pm UTC
native-sdk-schema Ready Ready Preview, v0 Sep 14, 2026 3:33pm UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant