peachsim 0.1.2272 → 0.1.2273
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-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +8 -8
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +3 -3
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +8 -8
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2 -2
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +10 -8
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2 -2
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/text-metric-policy.d.ts +45 -0
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/live-frame-mirror.d.ts +9 -2
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-wire-protocol.d.ts +69 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-wire-server.d.ts +21 -0
- package/package.json +1 -1
- package/src/nitro-adapter.lock.json +237 -237
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-distribution.lock.json +8 -8
- package/src/turbo-runtime.lock.json +17 -17
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2273 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -3100,7 +3100,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
3100
3100
|
var init_swift_standin_digest = __esm({
|
|
3101
3101
|
"src/swift-standin-digest.ts"() {
|
|
3102
3102
|
"use strict";
|
|
3103
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
3103
|
+
STANDIN_SOURCE_DIGEST = true ? "c4178088419ff254271d3b739cc0d5c196fb4044efb839fd0bf5675b2bde1327" : standinSourceDigest();
|
|
3104
3104
|
}
|
|
3105
3105
|
});
|
|
3106
3106
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2273 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -11,10 +11,6 @@ export declare const SF_PRO_VERTICAL_METRICS: {
|
|
|
11
11
|
lineGap: number;
|
|
12
12
|
unitsPerEm: number;
|
|
13
13
|
};
|
|
14
|
-
export declare function iosEmojiFontMetrics(fontSize: number, systemFont: boolean): {
|
|
15
|
-
ascent: number;
|
|
16
|
-
descent: number;
|
|
17
|
-
};
|
|
18
14
|
export declare function iosEmojiGlyphBearing(fontSize: number, systemFont: boolean): number;
|
|
19
15
|
export declare const SF_PRO_VARIANT_FONT_FAMILY = "SF Pro Variant";
|
|
20
16
|
export declare const SF_PRO_ROUNDED_FONT_FAMILY = "SF Pro Rounded";
|
|
@@ -120,7 +116,6 @@ export interface FontVerticalMetrics {
|
|
|
120
116
|
}
|
|
121
117
|
export declare function registerEngineFontVerticalMetrics(family: string, metrics: FontVerticalMetrics): void;
|
|
122
118
|
export declare function getRegisteredFontVerticalMetrics(family: string | undefined, fontWeight?: unknown, fontStyle?: unknown): FontVerticalMetrics | undefined;
|
|
123
|
-
export declare function resolveCustomFontBaselineOffset(metrics: FontVerticalMetrics, fontSize: number, lineHeight: unknown, skiaBaseline: number, runAscenderRise?: number | null): number;
|
|
124
119
|
export declare function resetRegisteredFontFamilies(): void;
|
|
125
120
|
export declare function resolveFontVariantFeatures(fontVariant: readonly string[] | undefined): string[];
|
|
126
121
|
export declare function needsSystemVariantFace(fontVariant: readonly string[] | undefined, fontFamily: string | undefined, caseSensitiveForms?: true): boolean;
|
|
@@ -254,6 +254,8 @@ export declare function setGpuSceneFramesHeld(held: boolean): void;
|
|
|
254
254
|
export declare function shouldSkipLiveFramePublish(channelId: string): boolean;
|
|
255
255
|
export declare function clearLiveFrameInflight(channelId: string): void;
|
|
256
256
|
export declare function storeLiveFrame(channelId: string, bitmap: ImageFrameSource): void;
|
|
257
|
+
export declare function presentLiveFrameImage(channelId: string, image: SkImage | null): void;
|
|
258
|
+
export declare function noteLiveFrameLayerPresent(channelId: string): void;
|
|
257
259
|
export declare function clearLiveFrame(channelId: string): void;
|
|
258
260
|
export declare function storeWebViewFrame(surfaceId: string, generation: number, instanceId: string, bitmap: ImageBitmap, contentSize: {
|
|
259
261
|
width: number;
|
|
@@ -26,7 +26,6 @@ export declare function firstLineRunAscender(runs: {
|
|
|
26
26
|
ascenderAboveRoot: number;
|
|
27
27
|
}[] | null, firstLineEnd: number): number | null;
|
|
28
28
|
export declare function iosParagraphBaselineOffset(input: ParagraphBaselineInputs): number | null;
|
|
29
|
-
export declare function iosFirstTextLineCenter(input: ParagraphBaselineInputs, capHeight: number): number | null;
|
|
30
29
|
export interface TextGuides {
|
|
31
30
|
firstTextLineCenter: number;
|
|
32
31
|
firstTextBaseline: number;
|
|
@@ -25,3 +25,48 @@ export declare function iosSystemLineHeightAdjustment(fontSize: number): number;
|
|
|
25
25
|
export declare function iosSystemMeasuredHeightTrim(fontSize: number, pixel: number): number;
|
|
26
26
|
export declare function iosSystemLineHeight(fontSize: number): number;
|
|
27
27
|
export declare function iosNaturalLineHeight(ascender: number, descender: number, unitsPerEm: number, fontSize: number): number;
|
|
28
|
+
export declare function iosEmojiFontMetrics(fontSize: number, systemFont: boolean): {
|
|
29
|
+
ascent: number;
|
|
30
|
+
descent: number;
|
|
31
|
+
};
|
|
32
|
+
export declare const IOS_BASELINE: {
|
|
33
|
+
readonly flags: 0;
|
|
34
|
+
readonly fontSize: 1;
|
|
35
|
+
readonly firstLineBaseline: 2;
|
|
36
|
+
readonly lineCount: 3;
|
|
37
|
+
readonly firstLineAscender: 4;
|
|
38
|
+
readonly paragraphLeading: 5;
|
|
39
|
+
readonly paragraphLineHeight: 6;
|
|
40
|
+
readonly firstFragmentY: 7;
|
|
41
|
+
readonly textFontScale: 8;
|
|
42
|
+
readonly contentHeight: 9;
|
|
43
|
+
readonly deviceScale: 10;
|
|
44
|
+
readonly fieldLineTop: 11;
|
|
45
|
+
readonly hostContentTop: 12;
|
|
46
|
+
readonly hostContentHeight: 13;
|
|
47
|
+
readonly styleLineAscent: 14;
|
|
48
|
+
readonly styleLineHeight: 15;
|
|
49
|
+
readonly ascender: 16;
|
|
50
|
+
readonly descender: 17;
|
|
51
|
+
readonly unitsPerEm: 18;
|
|
52
|
+
readonly styleAscender: 19;
|
|
53
|
+
readonly styleDescender: 20;
|
|
54
|
+
readonly styleUnitsPerEm: 21;
|
|
55
|
+
readonly naturalLineHeight: 22;
|
|
56
|
+
};
|
|
57
|
+
export declare const IOS_BASELINE_UIKIT_LABEL: number;
|
|
58
|
+
export declare const IOS_BASELINE_SWIFTUI_TEXT: number;
|
|
59
|
+
export declare const IOS_BASELINE_CORE_TEXT_LINE: number;
|
|
60
|
+
export declare const IOS_BASELINE_FIELD_LINE: number;
|
|
61
|
+
export declare const IOS_BASELINE_UIKIT_LABEL_CENTERED_SHRINK: number;
|
|
62
|
+
export declare const IOS_BASELINE_TEXTKIT_LEADING_ABOVE: number;
|
|
63
|
+
export declare const IOS_BASELINE_EXPLICIT_LINE_HEIGHT: number;
|
|
64
|
+
export declare const IOS_BASELINE_FIRST_LINE_HAS_EMOJI: number;
|
|
65
|
+
export declare const IOS_BASELINE_SYSTEM_FONT: number;
|
|
66
|
+
export declare const IOS_BASELINE_MINIMUM_SCALE_FACTOR: number;
|
|
67
|
+
export declare const IOS_BASELINE_STYLE_LINE_ASCENT: number;
|
|
68
|
+
export declare const IOS_BASELINE_STYLE_LINE_HEIGHT: number;
|
|
69
|
+
export declare function iosBaselineInputs(): Float64Array;
|
|
70
|
+
export declare function readIosParagraphBaselineOffset(): number | null;
|
|
71
|
+
export declare function readIosCompressedBaseline(): number | null;
|
|
72
|
+
export declare function readIosTextGuides(capHeight: number, lastLineBaseline: number): [firstTextLineCenter: number, firstTextBaseline: number, lastTextBaseline: number];
|
|
@@ -62,6 +62,7 @@ export interface WebGpuTextureDescriptorPort {
|
|
|
62
62
|
readonly sampleCount?: number;
|
|
63
63
|
readonly mipLevelCount?: number;
|
|
64
64
|
readonly dimension?: GPUTextureDimension;
|
|
65
|
+
readonly viewFormats?: GPUTextureFormat[];
|
|
65
66
|
}
|
|
66
67
|
export interface WebGpuBufferDescriptorPort {
|
|
67
68
|
readonly label?: string;
|
|
@@ -5,6 +5,7 @@ import type { GPUUploadTrace } from './compositor-protocol.d.ts';
|
|
|
5
5
|
import type { RenderTree } from './compositor-runtime/render-tree.d.ts';
|
|
6
6
|
import type { WebGpuGraphiteSubmissionBudget } from './webgpu-frame-transaction.d.ts';
|
|
7
7
|
import type { WebGpuReadbackKind } from './webgpu-readback-scheduler.d.ts';
|
|
8
|
+
import type { WebGpuWireServer, WebGpuWireServerOptions } from './webgpu-wire-server.d.ts';
|
|
8
9
|
import type { FontMgr, Image as SkImage, Surface } from 'canvaskit-wasm';
|
|
9
10
|
export type CompositorGpuBackendKind = 'graphite' | 'ganesh';
|
|
10
11
|
export type CompositorFrameKind = 'display' | 'capture' | 'auxiliary';
|
|
@@ -154,6 +155,7 @@ export interface CompositorGpuBackend {
|
|
|
154
155
|
readonly programDevice: GPUDevice | null;
|
|
155
156
|
createProgramTarget(display: CompositorGpuDisplay, generation: number, width: number, height: number): CompositorGpuTarget;
|
|
156
157
|
programTexture(target: CompositorGpuTarget): GPUTexture;
|
|
158
|
+
createWebGpuWire(options: Pick<WebGpuWireServerOptions, 'post' | 'presentLayer'>): WebGpuWireServer | null;
|
|
157
159
|
targetImage(target: CompositorGpuTarget): SkImage;
|
|
158
160
|
readonly admissionLimit: number;
|
|
159
161
|
tryAdmit(source: GpuFrameSource, graphiteSubmissionBudget?: WebGpuGraphiteSubmissionBudget, defer?: boolean, urgent?: boolean): CompositorGpuAdmissionDecision;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ImageFrameSource } from './image-pixel-contract.d.ts';
|
|
2
|
+
import type { WebGpuWireFromRenderer, WebGpuWireToRenderer } from './webgpu-wire-protocol.d.ts';
|
|
2
3
|
export interface RemoteLiveFrameIdentity {
|
|
3
4
|
sessionId: string;
|
|
4
5
|
seq: number;
|
|
@@ -11,7 +12,7 @@ export type LiveFrameMirrorEnvelope = {
|
|
|
11
12
|
captureRequestId?: number;
|
|
12
13
|
remoteFrame?: RemoteLiveFrameIdentity;
|
|
13
14
|
};
|
|
14
|
-
export type LiveFramePortMessage = {
|
|
15
|
+
export type LiveFramePortMessage = WebGpuWireToRenderer | {
|
|
15
16
|
type: 'liveFrameMirror';
|
|
16
17
|
payload: LiveFrameMirrorEnvelope;
|
|
17
18
|
} | {
|
|
@@ -20,8 +21,10 @@ export type LiveFramePortMessage = {
|
|
|
20
21
|
} | {
|
|
21
22
|
type: 'sceneLiveFrameSnapshot';
|
|
22
23
|
surfaceId: string;
|
|
24
|
+
} | {
|
|
25
|
+
type: 'sceneLiveFrameRecordStop';
|
|
23
26
|
};
|
|
24
|
-
export type LiveFramePortReply = {
|
|
27
|
+
export type LiveFramePortReply = WebGpuWireFromRenderer | {
|
|
25
28
|
type: 'liveFrameAcked';
|
|
26
29
|
channelId: string;
|
|
27
30
|
} | {
|
|
@@ -31,6 +34,10 @@ export type LiveFramePortReply = {
|
|
|
31
34
|
} | {
|
|
32
35
|
type: 'sceneLiveFrameSnapshotDone';
|
|
33
36
|
error?: string;
|
|
37
|
+
} | {
|
|
38
|
+
type: 'liveFrameRecorded';
|
|
39
|
+
channelId: string;
|
|
40
|
+
bitmap: ImageFrameSource;
|
|
34
41
|
};
|
|
35
42
|
type PostMessage = (msg: Extract<LiveFramePortMessage, {
|
|
36
43
|
type: 'liveFrameMirror';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export type WebGpuWireId = number;
|
|
2
|
+
export type WebGpuWireCommand = readonly unknown[];
|
|
3
|
+
export interface WebGpuWireObjectRef {
|
|
4
|
+
readonly $: WebGpuWireId;
|
|
5
|
+
}
|
|
6
|
+
export declare function isWebGpuWireObjectRef(value: unknown): value is WebGpuWireObjectRef;
|
|
7
|
+
export interface WebGpuWireAdapterSnapshot {
|
|
8
|
+
readonly features: readonly string[];
|
|
9
|
+
readonly limits: Readonly<Record<string, number>>;
|
|
10
|
+
readonly info: Readonly<Record<string, string | number | boolean | undefined>>;
|
|
11
|
+
}
|
|
12
|
+
export interface WebGpuWireErrorRecord {
|
|
13
|
+
readonly type: 'validation' | 'out-of-memory' | 'internal' | 'pipeline';
|
|
14
|
+
readonly message: string;
|
|
15
|
+
readonly reason?: 'validation' | 'internal';
|
|
16
|
+
}
|
|
17
|
+
export interface WebGpuWireCompilationMessage {
|
|
18
|
+
readonly message: string;
|
|
19
|
+
readonly type: GPUCompilationMessageType;
|
|
20
|
+
readonly lineNum: number;
|
|
21
|
+
readonly linePos: number;
|
|
22
|
+
readonly offset: number;
|
|
23
|
+
readonly length: number;
|
|
24
|
+
}
|
|
25
|
+
export type WebGpuWireReplyValue = {
|
|
26
|
+
readonly kind: 'adapter';
|
|
27
|
+
readonly adapter: WebGpuWireAdapterSnapshot | null;
|
|
28
|
+
} | {
|
|
29
|
+
readonly kind: 'device';
|
|
30
|
+
} | {
|
|
31
|
+
readonly kind: 'done';
|
|
32
|
+
} | {
|
|
33
|
+
readonly kind: 'mapped';
|
|
34
|
+
readonly bytes: ArrayBuffer;
|
|
35
|
+
} | {
|
|
36
|
+
readonly kind: 'scope';
|
|
37
|
+
readonly error: WebGpuWireErrorRecord | null;
|
|
38
|
+
} | {
|
|
39
|
+
readonly kind: 'compilation';
|
|
40
|
+
readonly messages: readonly WebGpuWireCompilationMessage[];
|
|
41
|
+
};
|
|
42
|
+
export type WebGpuWireToRenderer = {
|
|
43
|
+
readonly type: 'gpuWireOpen';
|
|
44
|
+
readonly presented: SharedArrayBuffer;
|
|
45
|
+
} | {
|
|
46
|
+
readonly type: 'gpuWireBatch';
|
|
47
|
+
readonly commands: readonly WebGpuWireCommand[];
|
|
48
|
+
};
|
|
49
|
+
export type WebGpuWireFromRenderer = {
|
|
50
|
+
readonly type: 'gpuWireReply';
|
|
51
|
+
readonly request: number;
|
|
52
|
+
readonly value?: WebGpuWireReplyValue;
|
|
53
|
+
readonly error?: WebGpuWireErrorRecord | {
|
|
54
|
+
readonly type: 'operation' | 'type' | 'abort';
|
|
55
|
+
readonly message: string;
|
|
56
|
+
};
|
|
57
|
+
} | {
|
|
58
|
+
readonly type: 'gpuWireUncapturedError';
|
|
59
|
+
readonly device: WebGpuWireId;
|
|
60
|
+
readonly error: WebGpuWireErrorRecord;
|
|
61
|
+
} | {
|
|
62
|
+
readonly type: 'gpuWireDeviceLost';
|
|
63
|
+
readonly device: WebGpuWireId;
|
|
64
|
+
readonly reason: GPUDeviceLostReason;
|
|
65
|
+
readonly message: string;
|
|
66
|
+
};
|
|
67
|
+
export declare function isWebGpuWireFromRenderer(value: unknown): value is WebGpuWireFromRenderer;
|
|
68
|
+
export declare function webGpuCanvasChannel(contextId: number): string;
|
|
69
|
+
export declare const WEBGPU_WIRE_CANVAS_TEXTURES = 3;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type WebGpuWireFromRenderer, type WebGpuWireToRenderer } from './webgpu-wire-protocol.d.ts';
|
|
2
|
+
import type { GraphiteCanvasKitModule, GraphiteDeviceContext } from './canvaskit-webgpu.d.ts';
|
|
3
|
+
import type { LiveFramePixels } from './image-pixel-contract.d.ts';
|
|
4
|
+
import type { WebGpuFrameTransactionOwner } from './webgpu-frame-transaction.d.ts';
|
|
5
|
+
import type { Image as SkImage } from 'canvaskit-wasm';
|
|
6
|
+
export interface WebGpuWireServerOptions {
|
|
7
|
+
readonly canvasKit: GraphiteCanvasKitModule;
|
|
8
|
+
readonly deviceContext: GraphiteDeviceContext;
|
|
9
|
+
readonly transactionOwner: WebGpuFrameTransactionOwner;
|
|
10
|
+
readonly post: (message: WebGpuWireFromRenderer, transfer: Transferable[]) => void;
|
|
11
|
+
readonly presentLayer: (channelId: string, image: SkImage | null) => void;
|
|
12
|
+
}
|
|
13
|
+
export type WebGpuWireFrameRecorder = (channelId: string, frame: LiveFramePixels) => void;
|
|
14
|
+
export declare class WebGpuWireServer {
|
|
15
|
+
#private;
|
|
16
|
+
constructor(options: WebGpuWireServerOptions);
|
|
17
|
+
receive(message: WebGpuWireToRenderer): void;
|
|
18
|
+
dispose(): void;
|
|
19
|
+
setRecorder(recorder: WebGpuWireFrameRecorder | null): void;
|
|
20
|
+
readFront(channelId: string): Promise<LiveFramePixels> | null;
|
|
21
|
+
}
|