| Index: cc/resources/resource_provider.cc
|
| diff --git a/cc/resources/resource_provider.cc b/cc/resources/resource_provider.cc
|
| index f5b71710b8788eefcffd0197b9a7214bb6c552a6..c3d25057c9f82e03a7ab51e4b0d934064e58c63b 100644
|
| --- a/cc/resources/resource_provider.cc
|
| +++ b/cc/resources/resource_provider.cc
|
| @@ -884,7 +884,10 @@ sk_sp<SkColorSpace> ResourceProvider::GetResourceSkColorSpace(
|
| const Resource* resource) const {
|
| if (!settings_.enable_color_correct_rendering)
|
| return nullptr;
|
| - return resource->color_space.ToSkColorSpace();
|
| + // Returning the nonlinear blended color space matches the expectation of the
|
| + // web that colors are blended in the output color space, not in a
|
| + // physically-based linear space.
|
| + return resource->color_space.ToNonlinearBlendedSkColorSpace();
|
| }
|
|
|
| void ResourceProvider::CopyToResource(ResourceId id,
|
|
|