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

Method beforeDraw

examples/scenes/src/SwingScene.java:165–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 }
164
165 public void beforeDraw() {
166 if (canvasMatrix != matrix || canvasClip != clip) {
167 canvas.restore();
168 canvas.save();
169 canvas.concat(matrix);
170 if (clip != null)
171 canvas.clipRect(Rect.makeXYWH(clip.x, clip.y, clip.width, clip.height));
172 canvasMatrix = matrix;
173 canvasClip = clip;
174 }
175 }
176
177 public void log(String format, Object... args) {
178 // System.out.println(indent + String.format(format, args));

Callers 6

drawStringMethod · 0.95
fillMethod · 0.95
drawLineMethod · 0.95
fillRectMethod · 0.95
fillPolygonMethod · 0.95
drawImageMethod · 0.95

Calls 4

restoreMethod · 0.80
saveMethod · 0.80
concatMethod · 0.80
clipRectMethod · 0.45

Tested by

no test coverage detected