function onSnapshotLoaded(rect, snapshot)
    {
        if (!snapshot) {
            callback();
            return;
        }
        snapshot.requestImage(null, null, 1, onGotImage);
        snapshot.dispose();
    }
@param {?Array.<number>} rect
@param {?WebInspector.PaintProfilerSnapshot} snapshot