Returns true if Paint prevents all drawing; otherwise, the Paint may or may not allow drawing. Returns true if, for example, BlendMode combined with alpha computes a new alpha of zero. @return true if Paint prevents all drawing @see <a href="https://fiddle.skia.org/c/@Paint_nothing
()
| 705 | * @see <a href="https://fiddle.skia.org/c/@Paint_nothingToDraw">https://fiddle.skia.org/c/@Paint_nothingToDraw</a> |
| 706 | */ |
| 707 | public boolean hasNothingToDraw() { |
| 708 | try { |
| 709 | Stats.onNativeCall(); |
| 710 | return _nHasNothingToDraw(_ptr); |
| 711 | } finally { |
| 712 | ReferenceUtil.reachabilityFence(this); |
| 713 | } |
| 714 | } |
| 715 | |
| 716 | public static native long _nGetFinalizer(); |
| 717 | public static native long _nMake(); |