toHardwareSafeColor

fun Int.toHardwareSafeColor(profile: HardwareRenderingProfile, alphaPolicy: AlphaPolicy = AlphaPolicy.COMPOSITE_FOR_HARDWARE, backgroundColor: Int = OPAQUE_WHITE): SafeColorResult(source)

Converts an authored color for the hardware overlay without changing the stored source color.