Remove need of ICC profiles in the renderer process
Change zero-copy to specify IOSurface color profiles using
SetColorSpaceMetadataCHROMIUM rather than calling SetColorSpace
on the GpuMemoryBuffer directly.
The SetColorSpaceMetadataCHROMIUM path ends up calling
gl::GLImageIOSurface::SetColorSpace, which uses the
gfx::DisplayICCProfiles structure to ensure that we use low power
profiles when possible.
This removes the need for
- gfx::ICCProfile::FromCacheMac
- Sending gfx::ICCProfiles from the browser to the renderer in
the content::ScreenInfo
- Note that content::ScreenInfo::icc_profile was not ever
actually read
- Sending it over IPC would result it being added to the cache
read by gfx::ICCProfile::FromCacheMac
- mojo and IPC support of gfx::ICCProfile
Bug: 869570
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I814496a5fffc8da38b4b59d7d2cc055dc47cd52b
Reviewed-on: https://chromium-review.googlesource.com/1159233
Commit-Queue: ccameron <ccameron@chromium.org>
Reviewed-by:
Avi Drissman <avi@chromium.org>
Reviewed-by:
Daniel Cheng <dcheng@chromium.org>
Reviewed-by:
Sunny Sachanandani <sunnyps@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580066}
Showing
Please register or sign in to comment