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

Method clipRegion

shared/java/Canvas.java:1237–1246  ·  view source on GitHub ↗
(@NotNull Region r, @NotNull ClipMode mode)

Source from the content-addressed store, hash-verified

1235 }
1236
1237 @NotNull @Contract("_, _ -> this")
1238 public Canvas clipRegion(@NotNull Region r, @NotNull ClipMode mode) {
1239 assert _ptr != 0 : "Canvas is closed";
1240 assert r != null : "Can’t clipRegion with r == null";
1241 assert mode != null : "Can’t clipRegion with mode == null";
1242 Stats.onNativeCall();
1243 _nClipRegion(_ptr, Native.getPtr(r), mode.ordinal());
1244 ReferenceUtil.reachabilityFence(r);
1245 return this;
1246 }
1247
1248 @NotNull @Contract("_ -> this")
1249 public Canvas clipRegion(@NotNull Region r) {

Callers 5

drawLeftMethod · 0.80
drawRightMethod · 0.80
drawCanvasMethod · 0.80
drawRegionsMethod · 0.80

Calls 4

onNativeCallMethod · 0.95
_nClipRegionMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected