forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change internal format from 0xaarrggbb to 0xrrggbbaa
Summary: The hex8 specified version is #rrggbbaa so it would be great to have the internal representation be 0xrrggbbaa to prevent confusion. This pull request changes the internals of normalizeColor. It changes a lot of lines but there isn't any big changes. Small changes: - Use | instead of + for number operations - Use x << 24 instead of x * (1 << 24) - Have hslToRgb return pre shifted number processColor is still sending colors the 0xaarrggbb format to native and tests still pass without changes. Closes facebook#5792 Reviewed By: svcscm Differential Revision: D2910589 Pulled By: vjeux fb-gh-sync-id: 6dd353f2edd5127f1762e7a57a65379d2a58e0c1
- Loading branch information
Showing
4 changed files
with
218 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.