Re-enable GraphicsContextDarkModeTests on Android.
Android appears to use a different color encoding scheme than the other platforms (ABGR vs ARGB). Retrieving the colors via *getAddr32() returns the "raw" color with the platform-specific encoding. getColor() reorders the bytes to be in ARGB no matter what platform it's on. I also used existing named constants for the colors to make the tests a bit easier to read. Bug: 850782 Change-Id: Ic756fee15fa685cafecfc21f57b2565bf8df08a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1594824 Commit-Queue: Aran Gilman <gilmanmh@google.com> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Reviewed-by:
Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#657760}
Showing
Please register or sign in to comment