Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoupling renderer from decoder #124

Merged
merged 15 commits into from Mar 12, 2022
Merged

Decoupling renderer from decoder #124

merged 15 commits into from Mar 12, 2022

Conversation

onevcat
Copy link
Owner

@onevcat onevcat commented Mar 11, 2022

This fixes #123

Added an APNGImageRenderer which is bound to the image view. It replaces the rendering part which was originally in APNGDecoder. By creating this new renderer type, we can decouple the image representation from the actually rendering process of the image. This allows a same APNGImage used in different image views, and there is no limitation on single, exclusion owner in the image.

@onevcat onevcat merged commit 6b01154 into master Mar 12, 2022
@onevcat onevcat deleted the renderer branch March 12, 2022 14:01
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.

It is difficult to reuse the APNGImage data created once.
1 participant