MCPcopy Create free account
hub / github.com/JetBrains/skija / isVolatile

Method isVolatile

shared/java/Path.java:282–289  ·  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

280 * @return true if caller will alter Path after drawing
281 */
282 public boolean isVolatile() {
283 try {
284 Stats.onNativeCall();
285 return _nIsVolatile(_ptr);
286 } finally {
287 Reference.reachabilityFence(this);
288 }
289 }
290
291 /**
292 * <p>Specifies whether Path is volatile; whether it will be altered or discarded

Callers 2

checksMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nIsVolatileMethod · 0.95

Tested by 1

checksMethod · 0.64