Commit cdb2f8cc authored by Vasilii Sukhanov's avatar Vasilii Sukhanov Committed by Commit Bot

Revert "cc: Make UI resources use raster color space"

This reverts commit 4cabff3a.

Reason for revert: broke virtual/text-antialias/international/complex-character-based-fallback.html on Mac10.14
https://ci.chromium.org/p/chromium/builders/ci/Mac10.14%20Tests/9098

Original change's description:
> cc: Make UI resources use raster color space
>
> UI resources are rastered in sRGB, if the screen
> has a different color space, a color conversion step
> will be added to the fragment shader.
>
> This CL creates UI resources directly in the color space
> used by the final compositing step, so that
> the conversion can be skipped.
>
> Bug: 1129243
> Change-Id: Ia9659cbb993ebb16097079daf6c7e67aecf0525f
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2441932
> Commit-Queue: Daniele Castagna <dcastagna@chromium.org>
> Reviewed-by: ccameron <ccameron@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#814330}

TBR=ccameron@chromium.org,dcastagna@chromium.org

Change-Id: I7700b6b5bd8b706e17429a9bc4fb2b779aed3d94
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1129243
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2455348Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
Commit-Queue: Vasilii Sukhanov <vasilii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814593}
parent 23a34354
......@@ -4247,9 +4247,8 @@ void LayerTreeHostImpl::CreateUIResource(UIResourceId uid,
const gfx::Size source_size = bitmap.GetSize();
gfx::Size upload_size = bitmap.GetSize();
bool scaled = false;
// UIResources are assumed to be rastered in raster color space.
const gfx::ColorSpace& color_space =
GetRasterColorSpace(gfx::ContentColorUsage::kSRGB);
// UIResources are assumed to be rastered in SRGB.
const gfx::ColorSpace& color_space = gfx::ColorSpace::CreateSRGB();
if (source_size.width() > max_texture_size_ ||
source_size.height() > max_texture_size_) {
......
Markdown is supported
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