-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Android] Update HostPlatformColor to support color longs #43163
[Android] Update HostPlatformColor to support color longs #43163
Conversation
8a65961
to
e0d99c3
Compare
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Could we document what the magic numbers are doing? Maybe pull them out into constants? |
e0d99c3
to
61ea51d
Compare
@NickGerleman I pulled out the color space and component ratios definitions into constants. Should I do similar with the bit masks/shifts? I can't decide what's more readable. |
Base commit: fe9942a |
The shifts seem reasonably readable to me |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This PR was closed because it has been stalled for 7 days with no activity. |
Summary:
This adds support for color longs to HostPlatformColor per the wide gamut color RFC.
Changelog:
[ANDROID] [ADDED] - Update HostPlatformColor to support color longs
Test Plan:
This requires changes from #43030 to build and will only break text color until those components are updated to support color long values as well. Will update with a link to that PR soon.