perf(frontend): draw-blurhash workerの結果をpostMessageする際にImageBitmapを移譲する (#16330)

This commit is contained in:
tamaina 2025-07-30 09:30:07 +09:00 committed by GitHub
parent 48246bd166
commit b660769288
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -18,5 +18,5 @@ onmessage = (event) => {
render(event.data.hash, canvas);
const bitmap = canvas.transferToImageBitmap();
postMessage({ id: event.data.id, bitmap });
postMessage({ id: event.data.id, bitmap }, [bitmap]);
};

View File

@ -18,5 +18,5 @@ onmessage = (event) => {
render(event.data.hash, canvas);
const bitmap = canvas.transferToImageBitmap();
postMessage({ id: event.data.id, bitmap });
postMessage({ id: event.data.id, bitmap }, [bitmap]);
};