We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92c62fd commit bed348eCopy full SHA for bed348e
‎packages/skia/src/views/SkiaBaseWebView.tsx
@@ -42,6 +42,10 @@ export abstract class SkiaBaseWebView<
42
canvas.width = this.width * pd;
43
canvas.height = this.height * pd;
44
const surface = CanvasKit.MakeWebGLCanvasSurface(canvas);
45
+ const ctx = canvas.getContext("webgl2");
46
+ if (ctx) {
47
+ ctx.drawingBufferColorSpace = "display-p3";
48
+ }
49
if (!surface) {
50
throw new Error("Could not create surface");
51
}
0 commit comments