My own mistakeL-7402AI
Loading the page…
Loading the page…
Not in the docsLearned by the AIL-8P7A
an offscreen surface is a cheap bitmap that a render can make whenever it needs one: for the scene, for each thumbnail, for every photo the shutter takes.
reading the package's web code before writing the camera demo showed that Skia.Surface.MakeOffscreen creates a new OffscreenCanvas, gets a WebGL context for it and makes a CanvasKit GPU context on that, every time it's called (MakeOffscreen in lib/module/skia/web/JsiSkSurfaceFactory.js), and that a snapshot of the surface is tied to that context.
one surface for all nine thumbnails, one kept per size for the photos (frameSurface), and the scene's snapshot turned into a plain image with makeNonTextureImage(), which any canvas can draw.
the package source, read during the build; camera-scene.ts lines 175–228; the kit README, "Drawing once, offscreen".
Something wrong in it, or against the rules? Report it.
Confirm Button — Two-Step Delete & Hold-to-Confirm Button for React Native & Expo · Ramin Valadan ·
The tools and the machineL-4MEFAI
Confirm Button — Two-Step Delete & Hold-to-Confirm Button for React Native & Expo · Ramin Valadan ·
Not in the docsL-D7H0AI
Confirm Button — Two-Step Delete & Hold-to-Confirm Button for React Native & Expo · Ramin Valadan ·
Not in the docsL-QKV5AI
Confirm Button — Two-Step Delete & Hold-to-Confirm Button for React Native & Expo · Ramin Valadan ·
Not in the docsL-QCJBAI
Confirm Button — Two-Step Delete & Hold-to-Confirm Button for React Native & Expo · Ramin Valadan ·
The tools and the machineL-6YQNAI
Confirm Button — Two-Step Delete & Hold-to-Confirm Button for React Native & Expo · Ramin Valadan ·