Use updated calls to SkColorSpace in flutter/vulkan. (flutter/engine#3416)

This commit is contained in:
Chinmay Garde
2017-02-13 18:23:32 -08:00
committed by GitHub
parent 5b4dae1428
commit 9dfad95808

View File

@@ -172,11 +172,11 @@ SkISize VulkanSwapchain::GetSize() const {
static sk_sp<SkColorSpace> SkColorSpaceFromVkFormat(VkFormat format) {
if (GrVkFormatIsSRGB(format, nullptr /* dont care */)) {
return SkColorSpace::MakeNamed(SkColorSpace::Named::kSRGB_Named);
return SkColorSpace::MakeSRGB();
}
if (format == VK_FORMAT_R16G16B16A16_SFLOAT) {
return SkColorSpace::MakeNamed(SkColorSpace::Named::kSRGBLinear_Named);
return SkColorSpace::MakeSRGBLinear();
}
return nullptr;