(drawlist: Uint8Array)
| 75 | } |
| 76 | |
| 77 | async requestFrame(drawlist: Uint8Array): Promise<void> { |
| 78 | if (this.stopped) throw new Error("LatchingBackend: stopped"); |
| 79 | this.frameCount++; |
| 80 | this.totalFrameBytes += drawlist.byteLength; |
| 81 | |
| 82 | try { |
| 83 | await this.inner.requestFrame(drawlist); |
| 84 | } catch (err) { |
| 85 | const e = err instanceof Error ? err : new Error(String(err)); |
| 86 | while (this.waiters.length > 0) this.waiters.shift()?.reject(e); |
| 87 | throw e; |
| 88 | } |
| 89 | |
| 90 | const w = this.waiters.shift(); |
| 91 | if (w) w.resolve(); |
| 92 | } |
| 93 | |
| 94 | pollEvents(): Promise<import("@rezi-ui/core").BackendEventBatch> { |
| 95 | return this.inner.pollEvents(); |
nothing calls this directly
no test coverage detected