1. paintworkletglobalscope api: registerpaint