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

Method drawPath

shared/java/Canvas.java:453–463  ·  view source on GitHub ↗
(@NotNull Path path, @NotNull Paint paint)

Source from the content-addressed store, hash-verified

451 }
452
453 @NotNull @Contract("_, _ -> this")
454 public Canvas drawPath(@NotNull Path path, @NotNull Paint paint) {
455 assert _ptr != 0 : "Canvas is closed";
456 assert path != null : "Can’t drawPath with path == null";
457 assert paint != null : "Can’t drawPath with paint == null";
458 Stats.onNativeCall();
459 _nDrawPath(_ptr, Native.getPtr(path), Native.getPtr(paint));
460 ReferenceUtil.reachabilityFence(path);
461 ReferenceUtil.reachabilityFence(paint);
462 return this;
463 }
464
465 /**
466 * Draws path and closes it immediately

Callers 5

drawBitmapCanvasMethod · 0.95
ImageFiltersSceneMethod · 0.95
baseMethod · 0.45
drawMethod · 0.45

Calls 4

onNativeCallMethod · 0.95
_nDrawPathMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 2

baseMethod · 0.36
drawMethod · 0.36