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

Commit 88c8a560 authored by Greg Daniel's avatar Greg Daniel Committed by Android (Google) Code Review
Browse files

Merge "Make sure we set the vulkan color type in SkiaVulkanPipeline."

parents 64245b44 031b81b8
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;
}