commit | b24da2a239e0587a01b769c3e5a18ddefd07d1b7 | [log] [tgz] |
---|---|---|
author | Marc Treib <treib@chromium.org> | Tue Jan 16 09:44:26 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 16 09:44:26 2018 |
tree | c30629606f5e71cf11c9723048dba06060f8e980 | |
parent | 2ce1fe0f2b58d9eeb7d2bf78d988f618b56d31e9 [diff] |
[Mac] Use SRGB color space when converting from SkColor to CGColor This fixes flashes when opening themed or incognito NTPs: TabContentsController::updateBackgroundColorFromWindowTheme uses skia::CGColorCreateFromSkColor to convert the background color from SkColor to CGColor, which used the "Generic RGB" color space before. This does not match SRGB, which is what the NTP (or any WebContents) uses, as far as I can tell. This CL fixes the discrepancy by making CGColorCreateFromSkColor use SRGB. Bug: 21798, 254361, 719236 Change-Id: I14b03690f585d266b6329d6b19b37ee8ac36c6ce Reviewed-on: https://chromium-review.googlesource.com/842646 Reviewed-by: Justin Novosad <junov@chromium.org> Reviewed-by: ccameron <ccameron@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#529390}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .