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

feat: optimize some ifs in hotpath #23

Merged
merged 3 commits into from
Mar 17, 2024

Conversation

dt665m
Copy link
Contributor

@dt665m dt665m commented Mar 16, 2024

No description provided.

@jabuwu jabuwu merged commit 9d6eef9 into jabuwu:dark_color_pma Mar 17, 2024
8 checks passed
jabuwu added a commit that referenced this pull request Mar 17, 2024
* premultiply slot color's alpha to dark color

* don't need to premultiply alpha if we set alpha to 1

* feat: optimize some ifs in hotpath (#23)

* feat: optimize some ifs in hotpath

* fix: optimize to unwrap_or_default for dark color and set 0.0 case for premultiplied alpha

* fix ci

---------

Co-authored-by: jabu <[email protected]>

* add changelog and patch bump

---------

Co-authored-by: Denis Tsai <[email protected]>
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