Skip to content

Commit e6107f7

Browse files
jrusso1020claude
andcommitted
chore: keep the comment share of the touched files from rising
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent e1602de commit e6107f7

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎packages/core/src/pageMotionBlur.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ const ACCELERATED_CANVASES_GLOBAL = "__hfAcceleratedCanvases";
1313
/**
1414
* Remember canvases html-in-canvas cannot capture: WebGL, WebGPU, or handed to an OffscreenCanvas.
1515
* Self-contained: the engine and the preview run its source ahead of every author script.
16-
* A host page that walks a same-origin preview's DOM first gives its canvases the host's
17-
* prototype, so such a host (Studio) runs it too; each canvas lands in its own window's set.
1816
*/
1917
export function installAcceleratedCanvasTracker(): void {
2018
const key = "__hfAcceleratedCanvases";

‎packages/studio/src/player/components/Player.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ describe("composition loading overlay", () => {
528528
});
529529

530530
describe("accelerated canvases", () => {
531-
it("are tracked in the studio's own window as soon as the player loads", () => {
531+
it("are tracked in Studio's window, whose prototype a preview canvas gets when Studio reaches it first", () => {
532532
expect("__hfAccelTracked" in HTMLCanvasElement.prototype.getContext).toBe(true);
533533
expect(Reflect.get(window, "__hfAcceleratedCanvases")).toBeInstanceOf(WeakSet);
534534
});

‎packages/studio/src/player/components/Player.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export function loadPlayerModule(): Promise<unknown> {
2626

2727
if (typeof window !== "undefined") void loadPlayerModule().catch(() => {});
2828

29-
// Studio's observers reach a preview's canvases before its runtime does, which gives them this
30-
// window's prototype. Tracking here too lets motion blur still see their WebGL and fall back.
3129
if (typeof window !== "undefined") installAcceleratedCanvasTracker();
3230

3331
interface PlayerProps {

0 commit comments

Comments
 (0)