@glimt/record 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/record.js CHANGED
@@ -362,6 +362,7 @@ function toLowerCase(str) {
362
362
  }
363
363
  const ORIGINAL_ATTRIBUTE_NAME = "__rrweb_original__";
364
364
  function is2DCanvasBlank(canvas) {
365
+ console.log("Creating context with willReadFrequently:", canvas);
365
366
  const ctx = canvas.getContext("2d", {
366
367
  willReadFrequently: true
367
368
  });
@@ -371,6 +372,8 @@ function is2DCanvasBlank(canvas) {
371
372
  for (let y = 0; y < canvas.height; y += chunkSize) {
372
373
  const getImageData = ctx.getImageData;
373
374
  const originalGetImageData = ORIGINAL_ATTRIBUTE_NAME in getImageData ? getImageData[ORIGINAL_ATTRIBUTE_NAME] : getImageData;
375
+ console.log("Calling getImageData on ctx:", ctx);
376
+ console.trace();
374
377
  const pixelBuffer = new Uint32Array(
375
378
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
376
379
  originalGetImageData.call(