Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 031b81b8 authored by Greg Daniel's avatar Greg Daniel
Browse files

Make sure we set the vulkan color type in SkiaVulkanPipeline.

Test: manual build and testing.
Change-Id: I00317569d456646ab3328cab276511327fe39047
parent d538e6b8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -126,6 +126,12 @@ bool SkiaVulkanPipeline::setSurface(Surface* surface, SwapBehavior swapBehavior,
        mVkSurface = mVkManager.createSurface(surface, colorMode);
    }

    if (colorMode == ColorMode::SRGB) {
        mSurfaceColorType = SkColorType::kN32_SkColorType;
    } else if (colorMode == ColorMode::WideColorGamut) {
        mSurfaceColorType = SkColorType::kRGBA_F16_SkColorType;
    }

    return mVkSurface != nullptr;
}