This sample test WebCodec hardwareAcceleration: deny's software decoder to reproduce a performance issue in YUV texture loading that occurs with texImage2d.
The best way to reproduce this is running it in VMWare. But running Chrome with --disable-gpu also works too to see the performance issue.
Video of performance in VMWare
There are 3 pages that test 3 paths to draw the yuv texture from webcodec: