@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.
@@ -396,6 +396,7 @@ function toLowerCase(str) {
396
396
  }
397
397
  const ORIGINAL_ATTRIBUTE_NAME = "__rrweb_original__";
398
398
  function is2DCanvasBlank(canvas) {
399
+ console.log("Creating context with willReadFrequently:", canvas);
399
400
  const ctx = canvas.getContext("2d", {
400
401
  willReadFrequently: true
401
402
  });
@@ -405,6 +406,8 @@ function is2DCanvasBlank(canvas) {
405
406
  for (let y = 0; y < canvas.height; y += chunkSize) {
406
407
  const getImageData = ctx.getImageData;
407
408
  const originalGetImageData = ORIGINAL_ATTRIBUTE_NAME in getImageData ? getImageData[ORIGINAL_ATTRIBUTE_NAME] : getImageData;
409
+ console.log("Calling getImageData on ctx:", ctx);
410
+ console.trace();
408
411
  const pixelBuffer = new Uint32Array(
409
412
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
410
413
  originalGetImageData.call(