openpencil/src/engine/canvaskit.ts
Danila Poyarkov 8ced3201cf Cache effect ImageFilters and reuse layer paint
Eliminates per-frame WASM allocations for shadows and blurs:
- Reusable effectLayerPaint instead of new Paint() per effect
- ImageFilter cache keyed by params (drop shadow, blur, decal blur)
- Zero allocations during SkPicture recording for cached effects
2026-03-03 10:12:02 +03:00

7 lines
112 B
TypeScript

export {
getCanvasKit,
getGpuBackend,
type CanvasKitOptions,
type GpuBackend
} from '@open-pencil/core'