@Override protected void cairoRectangle(long pointer, double x, double y, double width, double height) { try { lock(); super.cairoRectangle(pointer, x, y, width, height); } finally { unlock(); } }