My original idea here was to do some drawing to ensure that the canvas is not in some special just-created state, but maybe that's unnecessary.