Commit 0adc14d8 authored by Morten Johan Sørvig's avatar Morten Johan Sørvig
Browse files

macOS: Don’t color convert the backing store

The backing store was assigned the sRGB color profile
as an unintended side effect of the QImage -> CGImage
conversion function refactoring in ac899f6d

. This
caused Core Graphics to add a color convert step, which
in some cases caused performance issues.

Restore fast, previous behavior by assigning the target
display color profile to the backing store image.

Color correctness is still a goal, but we’ll add API
for it and make it opt-in.

Task-number: QTBUG-61384
Change-Id: I107f06a881a34fa711b386265d8dc2edfb246624
Reviewed-by: default avatarTor Arne Vestbø <tor.arne.vestbo@qt.io>
parent c7766a41
No related merge requests found
Showing with 8 additions and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment