maybeUpdateShadowLayer

fun maybeUpdateShadowLayer(context: DrawContext, paint: Paint, backgroundColor: Int)

Checks whether the applied shadow layer needs to be updated.