Returns the recording context being used by the Surface. @return the recording context, if available; null otherwise
()
| 561 | * @return the recording context, if available; null otherwise |
| 562 | */ |
| 563 | @Nullable |
| 564 | public DirectContext getRecordingContext() { |
| 565 | try { |
| 566 | Stats.onNativeCall(); |
| 567 | long ptr = _nGetRecordingContext(_ptr); |
| 568 | return ptr == 0 ? null : new DirectContext(ptr); |
| 569 | } finally { |
| 570 | Reference.reachabilityFence(this); |
| 571 | } |
| 572 | } |
| 573 | |
| 574 | /** |
| 575 | * <p>Returns Canvas that draws into Surface.</p> |