Notifies that Surface contents will be changed by code outside of Skia. Subsequent calls to generationID() return a different value. @see https://fiddle.skia.org/c/@Surface_notifyContentWillChange
(ContentChangeMode mode)
| 547 | * @see <a href="https://fiddle.skia.org/c/@Surface_notifyContentWillChange">https://fiddle.skia.org/c/@Surface_notifyContentWillChange</a> |
| 548 | */ |
| 549 | public void notifyContentWillChange(ContentChangeMode mode) { |
| 550 | try { |
| 551 | Stats.onNativeCall(); |
| 552 | _nNotifyContentWillChange(_ptr, mode.ordinal()); |
| 553 | } finally { |
| 554 | Reference.reachabilityFence(this); |
| 555 | } |
| 556 | } |
| 557 | |
| 558 | /** |
| 559 | * <p>Returns the recording context being used by the Surface.</p> |