This function has to deal with: 1. Accelerated IOSurface based GraphicsContext 2. Unaccelerated GraphicsContext 3. CGBitmapContext based context 4. DisplayRecorder based GraphicsContext We need to get the correct colorSpace() in all these cases. This is work towards bug 245858.
rdar://105525603
Pull request: https://github.com/WebKit/WebKit/pull/10194
Committed 260471@main (5170cf0d951e): <https://commits.webkit.org/260471@main> Reviewed commits have been landed. Closing PR #10194 and removing active labels.