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

Method setVolatile

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

968 * @return this
969 */
970 @NotNull @Contract("_ -> this")
971 public Path setVolatile(boolean isVolatile) {
972 Stats.onNativeCall();
973 _nSetVolatile(_ptr, isVolatile);
974 return this;
975 }
976
977 /**
978 * <p>Exchanges the verb array, Point array, weights, and FillMode with other.

Callers 2

checksMethod · 0.45
drawPathOnceMethod · 0.45

Calls 2

onNativeCallMethod · 0.95
_nSetVolatileMethod · 0.95

Tested by 1

checksMethod · 0.36