@param shader how geometry is filled with color; if null, color is used instead @see https://fiddle.skia.org/c/@Color_Filter_Methods @see https://fiddle.skia.org/c/@Paint_setShader</a
(@Nullable Shader shader)
| 485 | * @see <a href="https://fiddle.skia.org/c/@Paint_setShader">https://fiddle.skia.org/c/@Paint_setShader</a> |
| 486 | */ |
| 487 | @NotNull @Contract("_ -> this") |
| 488 | public Paint setShader(@Nullable Shader shader) { |
| 489 | try { |
| 490 | Stats.onNativeCall(); |
| 491 | _nSetShader(_ptr, Native.getPtr(shader)); |
| 492 | return this; |
| 493 | } finally { |
| 494 | Reference.reachabilityFence(shader); |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | /** |
| 499 | * @return {@link ColorFilter} or null |
no test coverage detected