message: Allow OffscreenCanvas to work as CanvasResource
diff: @@ -13,11 +13,14 @@ export default class CanvasResource extends BaseImageResource
  * Used to auto-detect the type of resource.
  *
  * @static
  - * @param {*} source - The source object
  + * @param {HTMLCanvasElement|OffscreenCanvas} source - The source object
  * @return {boolean} `true` if <canvas>
  */
  static test(source)
  {
  - return (source instanceof HTMLCanvasElement);
  + return (source && (
  + source instanceof HTMLCanvasElement
  + || source instanceof window.OffscreenCanvas
  + ));
  }
  }
  