mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Use updated calls to SkColorSpace in flutter/vulkan. (flutter/engine#3416)
This commit is contained in:
parent
5b4dae1428
commit
9dfad95808
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user