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