Skip to content

imaging_skia: use native Skia layers for masks#11

Open
jrmoulton wants to merge 1 commit into
forest-rs:mainfrom
jrmoulton:push-lpoznrtnsyxr
Open

imaging_skia: use native Skia layers for masks#11
jrmoulton wants to merge 1 commit into
forest-rs:mainfrom
jrmoulton:push-lpoznrtnsyxr

Conversation

@jrmoulton
Copy link
Copy Markdown
Contributor

performance is improved.

The snapshot tests for luminance masks differ by 5000 pixels but visually I can't see the difference. I'm inclined to think that the native skia rendering is more likely to be correct

@jrmoulton jrmoulton force-pushed the push-lpoznrtnsyxr branch from 693ec83 to a06a447 Compare April 1, 2026 07:32
Comment thread imaging_skia/src/lib.rs
self.mask_cache.borrow_mut().clear();
}
/// No-op retained for API compatibility after native Skia masking removed realized mask caches.
pub fn clear_cached_masks(&mut self) {}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this no-op compatibility thing. And can remove the associated tests as well ...

@waywardmonkeys
Copy link
Copy Markdown
Contributor

Also please update the screenshot test here...

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.

2 participants