| 225 | } |
| 226 | |
| 227 | @NotNull @Contract("_, _, _, _, _ -> this") |
| 228 | public Canvas drawLine(float x0, float y0, float x1, float y1, @NotNull Paint paint) { |
| 229 | assert paint != null : "Can’t drawLine with paint == null"; |
| 230 | Stats.onNativeCall(); |
| 231 | _nDrawLine(_ptr, x0, y0, x1, y1, Native.getPtr(paint)); |
| 232 | Reference.reachabilityFence(paint); |
| 233 | return this; |
| 234 | } |
| 235 | |
| 236 | @NotNull @Contract("_, _, _, _, _, _, _, _ -> this") |
| 237 | public Canvas drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean includeCenter, @NotNull Paint paint) { |