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

Method setVolatile

shared/java/Path.java:308–312  ·  view source on GitHub ↗

Specifies whether Path is volatile; whether it will be altered or discarded by the caller after it is drawn. Path by default have volatile set false, allowing SkBaseDevice to attach a cache of data which speeds repeated drawing. Mark temporary paths, discarded or modified after use, as vo

(boolean isVolatile)

Source from the content-addressed store, hash-verified

306 * @return this
307 */
308 public Path setVolatile(boolean isVolatile) {
309 Stats.onNativeCall();
310 _nSetVolatile(_ptr, isVolatile);
311 return this;
312 }
313
314 /**
315 * <p>Tests if line between Point pair is degenerate.</p>

Callers 2

checksMethod · 0.80
drawInterpolateMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nSetVolatileMethod · 0.95

Tested by 1

checksMethod · 0.64