Mac: Explicitly set the colorspace on SkBitmap -> CGImageRef conversions.

The color space was hardcoded as "generic rgb" in skia. This is not always correct, also skia is changing this color space around a lot currently. To protect us from their unreliable default, hardcode "generic rgb" as default on our side for now, but make it possible for clients to provide their own color space.

Use this to let tabpose and the favicon code pass in the device colorspace.

TEST=Open tabpose. Delayed thumbnails should look like backing-store backed thumbnails. The colors of favicons should now match other browsers.

Review URL:

git-svn-id: svn:// 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed