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

[Android] Update HostPlatformColor to support color longs #43163

Closed

Conversation

ryanlntn
Copy link
Contributor

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.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Feb 22, 2024
@ryanlntn ryanlntn force-pushed the feat/android-host-platform-color-longs branch 2 times, most recently from 8a65961 to e0d99c3 Compare March 15, 2024 10:34
@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@NickGerleman
Copy link
Contributor

Could we document what the magic numbers are doing? Maybe pull them out into constants?

@ryanlntn ryanlntn force-pushed the feat/android-host-platform-color-longs branch from e0d99c3 to 61ea51d Compare April 17, 2024 20:43
@ryanlntn
Copy link
Contributor Author

Could we document what the magic numbers are doing? Maybe pull them out into constants?

@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.

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 19,394,073 +32
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 22,767,695 +13
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: fe9942a
Branch: main

@NickGerleman
Copy link
Contributor

The shifts seem reasonably readable to me

@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

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.

@react-native-bot react-native-bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Oct 20, 2024
@react-native-bot
Copy link
Collaborator

This PR was closed because it has been stalled for 7 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants