MCPcopy Create free account
hub / github.com/HumbleUI/Skija / hasNothingToDraw

Method hasNothingToDraw

shared/java/Paint.java:707–714  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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();

Callers 1

executeMethod · 0.80

Calls 3

onNativeCallMethod · 0.95
_nHasNothingToDrawMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 1

executeMethod · 0.64