Skip to content

Commit e1dabc8

Browse files
committed
Trim isSkiaWebSupported JSDoc per review
1 parent add2082 commit e1dabc8

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/components/Charts/SkiaWebChart/isSkiaWebSupported.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/**
22
* Probes whether the current web environment can give Skia/CanvasKit a usable WebGL surface.
33
*
4-
* CanvasKit (loaded by `WithSkiaWeb`) reads `.rangeMin` off `gl.getShaderPrecisionFormat()` without a
5-
* null check, so on GPUs where that call returns `null` it throws an uncaught
6-
* `TypeError: Cannot read properties of null (reading 'rangeMin')` during its async GL init.
7-
*
84
* The probe reuses a single long-lived WebGL context instead of creating a throwaway one on every
95
* chart mount. Creating and discarding a context per mount churns WebGL contexts, and on
106
* context-constrained mobile browsers (e.g. Android Chrome) that pressure can crash the shared GPU

0 commit comments

Comments
 (0)