Avoid backing store color space conversions.
authorMorten Johan Sorvig <morten.sorvig@digia.com>
Tue, 4 Dec 2012 14:19:27 +0000 (15:19 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 7 Dec 2012 11:04:48 +0000 (12:04 +0100)
commit9650a5aa25b5750c571326380490c191c62fd6a1
tree3ede6d0eda1d7eb3c2c6bd09915a47df4d668e4e
parent2f6e967eb75e87e744ffbad6de89e76fc0bb0a37
Avoid backing store color space conversions.

We want the Qt backing store to be in the device color
space by default. This will avoid colour space conversions
when blitting it to screen, at the cost of a potential
loss in color accuracy.

As it turns out, CGColorSpaceCreateDeviceRGB no longer
crates a device color space but rather a generic color
space. (Since 10.4). Create the color space with a system
profile instead.

Accurate color representation needs to be supported
at some point, but this fast path should be the
default.

Change-Id: I7ebb77b36f81f66119d8c2ef464723401ec1d1e8
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/plugins/platforms/cocoa/qcocoahelpers.mm