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

Method isVolatile

shared/java/Path.java:474–482  ·  view source on GitHub ↗

Returns true if the path is volatile; it will not be altered or discarded by the caller after it is drawn. Path by default have volatile set false, allowing Surface to attach a cache of data which speeds repeated drawing. If true, Surface may not speed repeated drawing. @return tru

()

Source from the content-addressed store, hash-verified

472 * @return true if caller will alter Path after drawing
473 */
474 @Contract(pure = true)
475 public boolean isVolatile() {
476 try {
477 Stats.onNativeCall();
478 return _nIsVolatile(_ptr);
479 } finally {
480 ReferenceUtil.reachabilityFence(this);
481 }
482 }
483
484 /**
485 * <p>Return a copy of {@link Path} with isVolatile indicating whether it

Callers 2

checksMethod · 0.80

Calls 3

onNativeCallMethod · 0.95
_nIsVolatileMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 1

checksMethod · 0.64